mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
CtrlLib: ChGtk patch of menu in dark themes (andrei_natanael)
git-svn-id: svn://ultimatepp.org/upp/trunk@1265 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
3b5892cd1a
commit
531bb9aa9a
1 changed files with 5 additions and 6 deletions
|
|
@ -1126,8 +1126,6 @@ void ChHostSkin()
|
|||
static int shadowtype;
|
||||
static GtkWidget *top_item;
|
||||
static GtkWidget *menu_item;
|
||||
Color menu_topitemtext_color[4];
|
||||
ChGtkColor(menu_topitemtext_color, 0);
|
||||
if(!popup) {
|
||||
gtk_widget_style_get(bar, "shadow_type", &shadowtype, NULL);
|
||||
top_item = gtk_menu_item_new_with_label("M");
|
||||
|
|
@ -1167,10 +1165,10 @@ void ChHostSkin()
|
|||
ChGtkNew(top_item, "menuitem", GTK_BOX);
|
||||
if(gtk_major_version > 2 || (gtk_major_version == 2 && gtk_minor_version >= 1))
|
||||
sw = GtkInt("selected_shadow_type");
|
||||
s.topitemtext[0] = menu_topitemtext_color[0];
|
||||
s.topitemtext[1] = menu_topitemtext_color[1];
|
||||
s.topitemtext[2] = menu_topitemtext_color[2];
|
||||
SColorMenuText_Write(menu_topitemtext_color[0]);
|
||||
s.topitemtext[0] = ChGtkColor(0, bar);
|
||||
s.topitemtext[1] = ChGtkColor(1, bar);
|
||||
s.topitemtext[2] = ChGtkColor(2, bar);
|
||||
SColorMenuText_Write(s.topitemtext[1]);
|
||||
s.topitem[1] = s.topitem[0];
|
||||
GtkCh(s.topitem[2], sw, GTK_STATE_PRELIGHT);
|
||||
s.topitemtext[2] = ChGtkColor(2, top_item);
|
||||
|
|
@ -1263,3 +1261,4 @@ END_UPP_NAMESPACE
|
|||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue