Sekai-ichi Skrevet 28. april 2012 Del Skrevet 28. april 2012 (endret) Prøver å få til liten font i menubaren. Prøvde GTk2 måtene å gjøre det på, men funket ikke. Har så liten padding som mulig, men menubaren er likevel for stor. CSS /* this controls the general appearance of the menubar */ .menubar { border-color:@selected_bg_color; border-style:solid; background-color: #FFFFFF; border-width: 0 0 0 0; -GtkWidget-window-dragging: true; -GtkMenuBar-internal-padding: 0; .menubar .menuitem { border-width: 0; border-style: none; padding: 0 5; border-image:none; color: #E04613; } /* remove the image from the prelight areas */ .menubar .menuitem:prelight { background-image: none; background-color: @menu_bg_color; border-radius: 0; } .menubar .menuitem *:prelight { color: @menu_fg_color; } .menuitem { -GtkMenuItem-arrow-scaling: 0.4; -adwaita-menuitem-arrow-color: @menu_controls_color; padding: 4; color: @menu_text_color; } .menuitem:active, .menuitem *:active, .menuitem:prelight, .menuitem *:prelight { background-color: @dark_bg_color; color: @menu_text_color; } .menuitem:insensitive, .menuitem *:insensitive { color: mix (@menu_fg_color, @menu_bg_color, 0.6); } .menuitem .accelerator:insensitive { color: mix (@menu_fg_color, @menu_bg_color, 0.7); } .menuitem .accelerator { color: alpha (@menu_fg_color, 0.4); } .menuitem .accelerator:prelight, .menuitem .accelerator:active { color: alpha (@menu_fg_color, 0.3); } .menuitem.separator { color: @menu_separator; -GtkSeparatorMenuItem-horizontal-padding: 0; } .menuitem.check, .menuitem.radio, .menuitem.check:insensitive, .menuitem.radio:insensitive { background-image: none; background-color: alpha(@theme_base_color, 0.0); } .menuitem.check:active { background-image: url("assets/check2.png"); } .menuitem.check:active:prelight { background-image: url("assets/check2.png"); } .menuitem.check:active:insensitive { background-image: url("assets/check2.png"); } .menuitem.check:inconsistent { background-image: url("assets/check3.png"); } .menuitem.check:inconsistent:insensitive { background-image: url("assets/check3.png"); } .menuitem.radio:active { background-image: url("assets/radio2.png"); } .menuitem.radio:active:prelight { background-image: url("assets/radio2.png"); } .menuitem.radio:active:insensitive { background-image: url("assets/radio2.png"); } .menuitem.radio:inconsistent { background-image: url("assets/radio3.png"); } .menuitem.radio:inconsistent:insensitive { background-image: url("assets/radio3.png"); } /*************** * Menu Button * ***************/ .button.menuitem.menubar:active, .button.menuitem.menubar *:active { color: @theme_text_color; background-image: none; background-color: @menu_bg_color; border-radius: 5 5 0 0; border-image: none; border-width: 1 1 0 1; border-color: shade(@button_border, 1.30); border-style: solid; } Engine er Adwaita. Endret 28. april 2012 av Sekai-ichi Lenke til kommentar
Anbefalte innlegg
Opprett en konto eller logg inn for å kommentere
Du må være et medlem for å kunne skrive en kommentar
Opprett konto
Det er enkelt å melde seg inn for å starte en ny konto!
Start en kontoLogg inn
Har du allerede en konto? Logg inn her.
Logg inn nå