You are not logged in.

#1 2012-10-31 17:22:58

backreed
Member
Registered: 2011-12-07
Posts: 9

Gnome 3.6 Dark Adwaita not working for GTK2 and QT apps

Hi,
with 3.6 update you can select adwaita and ''choose darker applications theme" in gnome-tweak-tool, and it works for gtk3 applications. But, it isn't working for GTK2 and QT applications. In /usr/share/themes/Adwaita in gtk3 there is the gtk-dark.css....

But the adwaita dark for gtk2 (and consequently for QT) has to be written from scratch to match the new theme. Or there is something that i'm missing? Maybe a very similar theme that is really near to the new gtk3?

Thanks in advance

Last edited by backreed (2012-10-31 17:23:17)

Offline

#2 2012-10-31 17:36:53

Silex89
Member
From: Osorno, Los Lagos - Chile
Registered: 2011-10-16
Posts: 179

Re: Gnome 3.6 Dark Adwaita not working for GTK2 and QT apps

Hi there smile

Try installing gtk-chtheme, that app will allow you to set the theme for GTK2 programs

Best of Luck


"The way your heart sounds makes all the difference" John Myung

I love Dream Theater! ImL
Best Guitar Solo Ever

Offline

#3 2012-10-31 17:41:16

backreed
Member
Registered: 2011-12-07
Posts: 9

Re: Gnome 3.6 Dark Adwaita not working for GTK2 and QT apps

Thanks, butIt's not working. I prefer indeed lxappearance (but it does the same); obtain the same result using qtconfig fro QT apps. So, GTK2 (and QT) theme are really needed!

Offline

#4 2012-11-01 09:36:25

big_bum
Member
From: Bucharest,Romania,Europe,World
Registered: 2011-08-29
Posts: 47

Re: Gnome 3.6 Dark Adwaita not working for GTK2 and QT apps

It seems like Gnome 3.6 doesn't offer the dark theme for gtk2. I have the same problem. Tried some themes from gnome-look and deviantart, they don't look very good.

Offline

#5 2012-11-01 15:54:17

big_bum
Member
From: Bucharest,Romania,Europe,World
Registered: 2011-08-29
Posts: 47

Re: Gnome 3.6 Dark Adwaita not working for GTK2 and QT apps

You could try this http://pastebin.com/Lv54kc75
I've managed to edit a gtkrc. It looks OK for me.

Offline

#6 2012-11-03 12:00:01

kant-o
Member
Registered: 2012-11-03
Posts: 1

Re: Gnome 3.6 Dark Adwaita not working for GTK2 and QT apps

I had the same issue, but I solved it in the following way:

  1. I have backed up the file gtk.css in /usr/share/themes/Adwaita/gtk-3.0 into gtk.css.back (in case something goes wrong);

  2. I copied the file gtk-dark.css to gtk.css;

  3. I backed up the file gtkrc in /usr/share/themes/Adwaita/gtk-2.0 into gtkrc.back (just in case);

  4. I opened the file gtkrc and pasted a code similar to the one I include below. Notice that I changed the background color to match that of the dark adwaita gtk, though the previous one was very similar:

# Color scheme originally contributed by Franco Gotusso as Clearlooks-DarkOrange
# Based on Clearlooks-DarkCoffee by Chibi and edited by bvc as Clearlooks-DarkCoffee2

style "clearlooks-default"
{
  GtkMenuItem::selected_shadow_type = none
  GtkWidget::interior_focus = 1
  GtkButton::default_border = { 3, 3, 3, 3 }
  GtkButton::default_outside_border = { 3, 3, 3, 3 }
  GtkRange::trough_border = 2

  GtkWidget::focus_padding = 1

  GtkPaned::handle_size = 6

  GtkRange::slider_width = 15
  GtkRange::stepper_size = 15
  GtkScrollbar::min_slider_length = 30
  GtkCheckButton::indicator_size = 12
  GtkMenuBar::internal-padding = 0

  GtkTreeView::expander_size = 14
  GtkExpander::expander_size = 16

  GtkTreeView::odd_row_color = "#404040"

  GtkWidget::cursor_color           = "#72706E"
  GtkWidget::secondary_cursor_color = "#72706E"

  xthickness = 1
  ythickness = 1

  fg[NORMAL]        = "#d2cfcc" #Main window text
  fg[PRELIGHT]      = "#E9E9E9" #Highlighted widget text
  fg[ACTIVE]        = "#ADA59D" #Inactive widget text
  fg[SELECTED]      = "#E9E9E9"
  fg[INSENSITIVE]   = "#A18989"

  bg[NORMAL]        = "#393f3f" #Backround
  bg[PRELIGHT]      = "#3465A4" #Highlight Widget
  bg[ACTIVE]        = "#2E3232" #Selected Widget
  bg[SELECTED]      = "#3465A4" #The box words are usually in
  bg[INSENSITIVE]   = "#282B2B" #Not active buttons
  base[NORMAL]      = "#4F524F" #Text area widgets
  base[PRELIGHT]    = "#313131" #Check and radio button background
  base[ACTIVE]      = "#313636" #Unfocused Select
  base[SELECTED]    = "#2F4C6D" #Selected Text area item, and that bar over the tabs.
  base[INSENSITIVE] = "#f5f2ee" #

  text[NORMAL]      = "#EEEEEC" #Text area widget text.
  text[PRELIGHT]    = "#E9E9E9" #
  text[ACTIVE]      = "#ADA59D" #
  text[SELECTED]    = "#E9E9E9" #Selected Text area widget text.
  text[INSENSITIVE] = "#757575" #

engine "clearlooks"
   {
#    sunkenmenubar    	= 1       # 0 = disable, 1 = enable
#    menuitemstyle     	= 1       # 0 = flat, 1 = 3d-ish (button)
#    listviewitemstyle 	= 1       # 0 = flat, 1 = 3d-ish (gradient)
#    progressbarstyle  	= 0       # 0 = candy bar, 1 = flat
  }
}

style "clearlooks-wide" = "clearlooks-default"
{
  xthickness = 2
  ythickness = 2
  bg[NORMAL]   = "#414141"
  bg[PRELIGHT] = "#494949"
}

style "clearlooks-button" = "clearlooks-wide"
{
  bg[NORMAL]   = "#414141"
  bg[PRELIGHT] = "#494949"
}

style "clearlooks-notebook" = "clearlooks-wide"
{
  bg[NORMAL] = "#404040"
  bg[ACTIVE] = "#303030"
}

style "clearlooks-tasklist" = "clearlooks-default"
{
  xthickness = 5
  ythickness = 3
}

style "clearlooks-menu" = "clearlooks-default"
{
  xthickness = 2
  ythickness = 1
  bg[NORMAL] = "#404040"
}

style "clearlooks-menu-item" = "clearlooks-default"
{
  xthickness = 2
  ythickness = 3
  fg[PRELIGHT]   = "#E9E9E9"
  text[PRELIGHT] = "#E9E9E9"
  base[PRELIGHT] = "#3465A4"
  base[SELECTED] = "#3465A4"
}

style "clearlooks-menu-itembar" = "clearlooks-default"
{
  xthickness = 3
  ythickness = 3
}

style "clearlooks-tree" = "clearlooks-default"
{
  xthickness = 2
  ythickness = 2
}

style "clearlooks-frame-title" = "clearlooks-default"
{
  fg[NORMAL] = "#e2dfdc"
}

style "clearlooks-panel" = "clearlooks-default"
{
  xthickness = 3
  ythickness = 3
}

style "clearlooks-tooltips" = "clearlooks-default"
{
  xthickness = 4
  ythickness = 4
  bg[NORMAL] = "#3465A4"
}

style "clearlooks-progressbar"	= "clearlooks-default"
{
  xthickness = 1
  ythickness = 1
   fg[PRELIGHT]  		= "#e2dfdc"
   bg[NORMAL] 			= "#2d1d11"
}

style "clearlooks-combo" = "clearlooks-default"
{
  xthickness = 1
  ythickness = 2
  fg[NORMAL]    		= "#141414"
  fg[PRELIGHT]    		= "#ed7013"
  fg[ACTIVE]     		= "#e2dfdc"
  bg[NORMAL]			= "#414141"
  bg[PRELIGHT]			= "#494949"
}

style "clearlooks-scrollbar" = "clearlooks-default"
{
  fg[NORMAL]    		= "#141414"
  fg[PRELIGHT]    		= "#e2dfdc"
  fg[ACTIVE]     		= "#e2dfdc"
  bg[NORMAL]			= "#414141"
  bg[PRELIGHT]			= "#494949"
}

style "clearlooks-spin" = "clearlooks-wide"
{
  fg[NORMAL]    		= "#141414"
  fg[PRELIGHT]			= "#e2dfdc"
  fg[ACTIVE]			= "#e2dfdc"
  bg[PRELIGHT]    		= "#414141"
  bg[ACTIVE]     		= "#494949"
}

class "GtkWidget" style "clearlooks-default"
class "GtkRange" style "clearlooks-wide"
class "GtkFrame" style "clearlooks-wide"
class "GtkSpinButton" style "clearlooks-spin"
class "GtkStatusbar" style "clearlooks-wide"
class "GtkMenu" style "clearlooks-menu"
class "GtkMenuItem" style "clearlooks-menu-item"
widget_class "*MenuItem.*" style "clearlooks-menu-item"
class "GtkEntry" style "clearlooks-wide"
widget_class "*.tooltips.*.GtkToggleButton" style "clearlooks-tasklist"
widget_class "*.GtkTreeView.GtkButton" style "clearlooks-tree"
widget_class "*.GtkCTree.GtkButton" style "clearlooks-tree"
widget_class "*.GtkList.GtkButton" style "clearlooks-tree"
widget_class "*.GtkCList.GtkButton" style "clearlooks-tree"
widget_class "*.GtkFrame.GtkLabel" style "clearlooks-frame-title"
widget_class "BasePWidget.GtkEventBox.GtkTable.GtkFrame" style "clearlooks-panel"
widget "gtk-tooltips" style "clearlooks-tooltips"
class "GtkNotebook" style "clearlooks-notebook"
class "GtkProgressBar" style "clearlooks-progressbar"
widget_class "*.GtkComboBox.GtkButton" style "clearlooks-combo"
widget_class "*.GtkCombo.GtkButton" style "clearlooks-combo"
class "GtkButton" style "clearlooks-button"
class "GtkScrollbar" style "clearlooks-scrollbar"

I based this solution on several posts and messages I found on the Internet on this topic. All credits go to them. Hope this helps.

Offline

Board footer

Powered by FluxBB