mirror of https://github.com/buggins/dlangui.git
console theme improvements
This commit is contained in:
parent
3bb6d95cbb
commit
b5f4bc38eb
|
@ -257,7 +257,7 @@ extern (C) int UIAppMain(string[] args) {
|
||||||
// create main menu
|
// create main menu
|
||||||
|
|
||||||
MenuItem mainMenuItems = new MenuItem();
|
MenuItem mainMenuItems = new MenuItem();
|
||||||
MenuItem fileItem = new MenuItem(new Action(1, "MENU_FILE"));
|
MenuItem fileItem = new MenuItem(new Action(1, "MENU_FILE"c));
|
||||||
fileItem.add(new Action(ACTION_FILE_OPEN, "MENU_FILE_OPEN"c, "document-open", KeyCode.KEY_O, KeyFlag.Control));
|
fileItem.add(new Action(ACTION_FILE_OPEN, "MENU_FILE_OPEN"c, "document-open", KeyCode.KEY_O, KeyFlag.Control));
|
||||||
fileItem.add(new Action(ACTION_FILE_SAVE, "MENU_FILE_SAVE"c, "document-save", KeyCode.KEY_S, KeyFlag.Control));
|
fileItem.add(new Action(ACTION_FILE_SAVE, "MENU_FILE_SAVE"c, "document-save", KeyCode.KEY_S, KeyFlag.Control));
|
||||||
MenuItem openRecentItem = new MenuItem(new Action(13, "MENU_FILE_OPEN_RECENT", "document-open-recent"));
|
MenuItem openRecentItem = new MenuItem(new Action(13, "MENU_FILE_OPEN_RECENT", "document-open-recent"));
|
||||||
|
|
|
@ -413,7 +413,7 @@ class UrlImageTextButton : ImageTextButton {
|
||||||
//_label.styleId = STYLE_BUTTON_LABEL;
|
//_label.styleId = STYLE_BUTTON_LABEL;
|
||||||
//_label.textFlags(TextFlag.Underline);
|
//_label.textFlags(TextFlag.Underline);
|
||||||
_label.styleId = "BUTTON_LABEL_LINK";
|
_label.styleId = "BUTTON_LABEL_LINK";
|
||||||
padding(Rect(3,3,3,3));
|
static if (BACKEND_GUI) padding(Rect(3,3,3,3));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -423,7 +423,7 @@ class LinkButton : ImageTextButton {
|
||||||
super(a);
|
super(a);
|
||||||
styleId = null;
|
styleId = null;
|
||||||
_label.styleId = "BUTTON_LABEL_LINK";
|
_label.styleId = "BUTTON_LABEL_LINK";
|
||||||
padding(Rect(3,3,3,3));
|
static if (BACKEND_GUI) padding(Rect(3,3,3,3));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -188,21 +188,24 @@
|
||||||
backgroundImageId="tab_btn_dark_down"
|
backgroundImageId="tab_btn_dark_down"
|
||||||
/>
|
/>
|
||||||
<style id="TAB_UP_DARK"
|
<style id="TAB_UP_DARK"
|
||||||
backgroundImageId="dock_window_caption_background"
|
|
||||||
layoutWidth="FILL_PARENT"
|
layoutWidth="FILL_PARENT"
|
||||||
|
margins="1,0,1,0"
|
||||||
|
backgroundColor="#000000"
|
||||||
>
|
>
|
||||||
</style>
|
</style>
|
||||||
<style id="TAB_UP_BUTTON_DARK"
|
<style id="TAB_UP_BUTTON_DARK"
|
||||||
|
backgroundColor="#000000"
|
||||||
padding="1,0,1,0"
|
padding="1,0,1,0"
|
||||||
backgroundImageId="tab_btn_dark_up"
|
|
||||||
>
|
>
|
||||||
<length id="overlap" value="2"/>
|
<state state_selected="true" backgroundColor="#000080"/>
|
||||||
</style>
|
</style>
|
||||||
<style id="TAB_UP_BUTTON_DARK_TEXT"
|
<style id="TAB_UP_BUTTON_TEXT_DARK"
|
||||||
textColor="#000000"
|
textColor="#808080"
|
||||||
align="Center"
|
align="Center"
|
||||||
|
margins="1,0,1,0"
|
||||||
>
|
>
|
||||||
<state state_selected="false" state_window_focused="false" state_hovered="false" textColor="#9c9c9c"/>
|
<state state_selected="true" textColor="#FFFFFF"/>
|
||||||
|
<state state_hovered="true" textColor="#808000"/>
|
||||||
</style>
|
</style>
|
||||||
<style id="TAB_UP"
|
<style id="TAB_UP"
|
||||||
layoutWidth="FILL_PARENT"
|
layoutWidth="FILL_PARENT"
|
||||||
|
@ -225,7 +228,7 @@
|
||||||
<style id="TAB_HOST"
|
<style id="TAB_HOST"
|
||||||
layoutWidth="FILL_PARENT"
|
layoutWidth="FILL_PARENT"
|
||||||
layoutHeight="FILL_PARENT"
|
layoutHeight="FILL_PARENT"
|
||||||
backgroundColor="#000080"
|
backgroundColor="#000000"
|
||||||
/>
|
/>
|
||||||
<style id="TAB_WIDGET"
|
<style id="TAB_WIDGET"
|
||||||
backgroundColor="#000000"
|
backgroundColor="#000000"
|
||||||
|
@ -376,7 +379,7 @@
|
||||||
margins="0,0,0,0"
|
margins="0,0,0,0"
|
||||||
/>
|
/>
|
||||||
<style id="DOCK_WINDOW"
|
<style id="DOCK_WINDOW"
|
||||||
backgroundImageId="dock_window_background"
|
backgroundColor="#000000"
|
||||||
layoutWidth="FILL_PARENT"
|
layoutWidth="FILL_PARENT"
|
||||||
layoutHeight="FILL_PARENT"
|
layoutHeight="FILL_PARENT"
|
||||||
padding="0,0,0,0"
|
padding="0,0,0,0"
|
||||||
|
@ -409,7 +412,7 @@
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<style id="TOOLBAR_HOST"
|
<style id="TOOLBAR_HOST"
|
||||||
backgroundImageId="toolbar_host_background"
|
backgroundColor="#000000"
|
||||||
layoutWidth="FILL_PARENT"
|
layoutWidth="FILL_PARENT"
|
||||||
layoutHeight="WRAP_CONTENT"
|
layoutHeight="WRAP_CONTENT"
|
||||||
padding="0,0,0,0"
|
padding="0,0,0,0"
|
||||||
|
@ -427,9 +430,10 @@
|
||||||
layoutWidth="WRAP_CONTENT"
|
layoutWidth="WRAP_CONTENT"
|
||||||
layoutHeight="WRAP_CONTENT"
|
layoutHeight="WRAP_CONTENT"
|
||||||
margins="1,0,1,0"
|
margins="1,0,1,0"
|
||||||
|
minHeight="3"
|
||||||
/>
|
/>
|
||||||
<style id="TOOLBAR_BUTTON"
|
<style id="TOOLBAR_BUTTON"
|
||||||
backgroundImageId="toolbar_button_background"
|
backgroundImageId="btn_background"
|
||||||
align="Center"
|
align="Center"
|
||||||
margins="0,0,0,0"
|
margins="0,0,0,0"
|
||||||
padding="0,0,0,0"
|
padding="0,0,0,0"
|
||||||
|
@ -437,7 +441,7 @@
|
||||||
<state state_enabled="false" alpha="160" backgroundImageId="@null"/>
|
<state state_enabled="false" alpha="160" backgroundImageId="@null"/>
|
||||||
</style>
|
</style>
|
||||||
<style id="TOOLBAR_CONTROL"
|
<style id="TOOLBAR_CONTROL"
|
||||||
backgroundImageId="toolbar_control_background"
|
backgroundColor="#000000"
|
||||||
align="Center"
|
align="Center"
|
||||||
margins="0,0,0,0"
|
margins="0,0,0,0"
|
||||||
padding="0,0,0,0"
|
padding="0,0,0,0"
|
||||||
|
|
Loading…
Reference in New Issue