PDA

View Full Version : [CLOSED] Desktop cosmetic problem, no urgencecy for now



feanor91
May 23, 2012, 1:17 PM
Hello

Me and my client preffer the old style desktop of Ext.Net 1.3. I dig into taskbar css but was not able to find how to change start button or the taskbar look. Is there a way to achieve that (I don't know, a theming thing for example)?

Daniil
May 23, 2012, 6:30 PM
Hi,

Desktop TaskBar has been totally reworked, now it's just a Toolbar and nested Toolbars. So, there is no option to get the old-style view back.

But, certainly, you can stylize via CSS.

Here is some example which, hopefully, should help you to start.

Example

<%@ Page Language="C#" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>

<!DOCTYPE html>

<html>
<head runat="server">
<title>Ext.NET v2 Example</title>

<style type="text/css">
.my-taskbar {
background-color: blue;
background-image: none;
}

.my-taskbar .ux-start-button .x-btn-inner {
color: white;
}

.my-taskbar .ux-start-button-icon {
background-image: url(resources/images/test.png) !important;
}
</style>
</head>
<body>
<ext:ResourceManager runat="server" />

<ext:Desktop ID="Desktop1" runat="server">
<Modules>
<ext:DesktopModule ModuleID="DesktopModule1" AutoRun="true">
<Window>
<ext:Window runat="server" Title="Greeting" Html="Hello!" Closable="false" />
</Window>
</ext:DesktopModule>
</Modules>
<TaskBar runat="server" Cls="my-taskbar" HideQuickStart="true">
<CustomConfig>
<%-- We will add a respective property for TaskBar --%>
<ext:ConfigItem Name="startBtnText" Value="Hello!" Mode="Value" />
</CustomConfig>
</TaskBar>
</ext:Desktop>
</body>
</html>

On your site I would also look at:
<Ext.Net.2 sources root>\Ext.Net\Build\Ext.Net\ux\desktop\js\TaskBar.js

You will understand better how it works.

feanor91
May 24, 2012, 6:49 AM
Hello

Thanks for your reply. Now, I know where to search.