Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am using IceWM, Crux theme for GTK+, the config of Crux is:
Code:
gtk_color_scheme = "fg_color:#000;bg_color:#d3d7cf;base_color:#fff;text_color:#000;selected_bg_color:#2C72C7;selected_fg_color:#fff;tooltip_bg_color:#F5F5B5;tooltip_fg_color:#000"
style "default"
{
fg[NORMAL] = @fg_color # was 000000 --> OK
fg[PRELIGHT] = @fg_color # was 000000 --> OK
fg[SELECTED] = @selected_fg_color # was ffffff --> OK
fg[ACTIVE] = @fg_color # was 000000 --> OK
fg[INSENSITIVE] = darker (@bg_color) # was 888a85 --> ??
bg[NORMAL] = @bg_color # was d3d7cf --> NO?
bg[PRELIGHT] = shade (1.02, @bg_color) # was ededeb --> NO?
bg[SELECTED] = @selected_bg_color # was 75507b --> OK
bg[INSENSITIVE] = @bg_color # was c4c6c0 --> OK?
bg[ACTIVE] = shade (0.9, @bg_color) # was a3a69f --> ??
base[NORMAL] = @base_color # was ffffff --> OK
base[PRELIGHT] = shade (0.95, @bg_color) # was 000000 --> NO?
base[ACTIVE] = shade (0.9, @selected_bg_color) # undefined
base[SELECTED] = @selected_bg_color # 75507b --> OK
base[INSENSITIVE] = @bg_color # dddddd --> NO
text[NORMAL] = @text_color # was 000000 --> OK
text[PRELIGHT] = @text_color # was 000000 --> OK
text[ACTIVE] = @selected_fg_color # was 000000 --> OK
text[SELECTED] = @selected_fg_color # was undefined
text[INSENSITIVE] = darker (@bg_color) # was 888a85 --> ??
GtkRange::slider_width = 13
GtkRange::stepper_size = 13
GtkRange::trough_border = 1
GtkScale::slider_width = 12
GtkScale::stepper_size = 12
GtkScale::trough_border = 0
GtkScale::slider_length = 16
GtkCheckButton::indicator_size = 12
GtkCheckButton::indicator_spacing = 3
GtkCheckMenuItem::indicator_size = 10
GtkOptionMenu::indicator_size = { 11, 6 }
GtkOptionMenu::indicator_spacing = { 30, 5, 2, 2 }
GtkScrollbar::min_slider_length = 25
engine "crux-engine" { }
}
# common default
class "GtkWidget" style "default"
# Style used for (prelighted) menu items
style "menuitem"
{
fg[PRELIGHT] = @selected_fg_color # was 000000 --> OK
bg[PRELIGHT] = @selected_bg_color # was 75507b --> OK
}
class "GtkMenuItem" style "menuitem"
widget_class "*.*MenuItem.*" style "menuitem"
style "menu"
{
xthickness = 3
}
# This enables gradiented menu backgrounds
class "GtkMenu" style "menu"
style "entry"
{
xthickness = 3
ythickness = 3
# Slightly lighter so that the selection will be visible properly
bg[SELECTED] = mix(0.85, @selected_bg_color, @base_color)
engine "crux-engine"
{
thickness = 3
}
}
# some extra padding around text entries, so the focus marking fits
class "GtkEntry" style "entry"
class "GtkText" style "entry"
style "trough"
{
bg[NORMAL] = shade (0.9, @bg_color)
# fg[PRELIGHT] is used for the text underneath the bar.
fg[PRELIGHT] = @selected_fg_color
}
class "GtkProgressBar" style "trough"
style "statusbar"
{
xthickness = 3
ythickness = 3
}
class "GtkStatusbar" style "statusbar"
style "crux-tooltips"
{
xthickness = 4
ythickness = 4
bg[NORMAL] = @tooltip_bg_color
fg[NORMAL] = @tooltip_fg_color
}
# The window of the tooltip is called "gtk-tooltip"
################################
# FIXME:
# This will not work if one embeds eg. a button into the tooltip.
# As far as I can tell right now we will need to rework the theme
# quite a bit to get this working correctly.
# (It will involve setting different priorities, etc.)
################################
widget "gtk-tooltip*" style "crux-tooltips"
# Work around for http://bugzilla.gnome.org/show_bug.cgi?id=382646
# Note that the work around assumes that the combobox is _not_ in
# appears-as-list mode.
# This style does not affect GtkComboBoxEntry, it does have an effect
# on comboboxes in appears-as-list mode though.
style "crux-text-is-fg-color-workaround"
{
text[NORMAL] = @fg_color
text[PRELIGHT] = @fg_color
text[SELECTED] = @selected_fg_color
text[ACTIVE] = @fg_color
text[INSENSITIVE] = darker (@bg_color)
}
widget_class "*.<GtkComboBox>.<GtkCellView>" style "crux-text-is-fg-color-workaround"
style "crux-menuitem-text-is-fg-color-workaround"
{
text[NORMAL] = @fg_color
text[PRELIGHT] = @selected_fg_color
text[SELECTED] = @selected_fg_color
text[ACTIVE] = @fg_color
text[INSENSITIVE] = darker (@bg_color)
}
widget "*.gtk-combobox-popup-menu.*" style "crux-menuitem-text-is-fg-color-workaround"
# Work around the usage of GtkLabel inside GtkListItems to display text.
# This breaks because the label is shown on a background that is based on the
# base color set.
style "crux-fg-is-text-color-workaround"
{
fg[NORMAL] = @text_color
fg[PRELIGHT] = @text_color
fg[ACTIVE] = @selected_fg_color
fg[SELECTED] = @selected_fg_color
fg[INSENSITIVE] = darker (@bg_color)
}
widget_class "*<GtkListItem>*" style "crux-fg-is-text-color-workaround"
# The same problem also exists for GtkCList and GtkCTree
# Only match GtkCList and not the parent widgets, because that would also change the headers.
widget_class "*<GtkCList>" style "crux-fg-is-text-color-workaround"
I need to remove menus' gradient and leave all other gradients.
I didn't know if you were trying to change the color gradient of the menu backgrounds, the kind of gradient of the background or what.
I am not famliar with Ice.
Did you see in that file
Code:
# This enables gradiented menu backgrounds
class "GtkMenu" style "menu"
style "entry"
{
xthickness = 3
ythickness = 3
# Slightly lighter so that the selection will be visible properly
bg[SELECTED] = mix(0.85, @selected_bg_color, @base_color)
Or are you looking for somethng like
Code:
menu.hilite: flat gradient vertical
menu.hilite.color: darkred
menu.hilite.colorTo: maroon
menu.hilite.textColor: white
If so you'll have to find out where ICE keeps it's config files.
Gtk themes take care of the app txt, foregrounds, buttons etc. A WM theme takes care of window headers, titles, menus etc.
Sorry I don't know how Ice does that.
Fluxbox for example has a seperate styles config file apart from ~/.gtk*rc and ~/.themes that defines how menus, headers, menu frames, menu titles look.
Fluxbox for example has a seperate styles config file apart from ~/.gtk*rc and ~/.themes that defines how menus, headers, menu frames, menu titles look.
Are you talking about the menus like when you right-click the titlebar or the desktop?
Because I'm talking about the menu bar in applications (this is what I thought the OP was talking about).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.