aboutsummaryrefslogtreecommitdiff
path: root/common/gtk-2.0/main.rc
diff options
context:
space:
mode:
authorHorst31802016-05-30 22:35:54 +0200
committerHorst31802016-05-30 22:35:54 +0200
commit543d5a9a26acd8c3f2c7e89a63c5d58b5c8cfef0 (patch)
tree8da76a9eccc1fd06d7a164e0b32d4bf7084ccc2a /common/gtk-2.0/main.rc
parente4f382c4274018b29419e64af65d660ad24b9d6d (diff)
downloadsolarc-theme-543d5a9a26acd8c3f2c7e89a63c5d58b5c8cfef0.tar.gz
solarc-theme-543d5a9a26acd8c3f2c7e89a63c5d58b5c8cfef0.tar.xz
solarc-theme-543d5a9a26acd8c3f2c7e89a63c5d58b5c8cfef0.zip
gtk2: fix entry styling (fix #547)
Diffstat (limited to 'common/gtk-2.0/main.rc')
-rw-r--r--common/gtk-2.0/main.rc172
1 files changed, 19 insertions, 153 deletions
diff --git a/common/gtk-2.0/main.rc b/common/gtk-2.0/main.rc
index 18da44a..1d22cbb 100644
--- a/common/gtk-2.0/main.rc
+++ b/common/gtk-2.0/main.rc
@@ -981,110 +981,70 @@ style "entry" {
ythickness = 4
base[NORMAL] = @base_color
+ base[ACTIVE] = @base_color
base[INSENSITIVE] = @insensitive_bg_color
engine "pixmap" {
image {
function = SHADOW
- detail = "entry"
state = NORMAL
- shadow = IN
- file = "assets/entry-border-bg.png"
- border = { 12, 12, 12, 12 }
+ detail = "entry"
+ file = "assets/entry-bg.png"
+ border = {6, 6, 6, 6}
stretch = TRUE
}
image {
function = SHADOW
+ state = ACTIVE
detail = "entry"
- state = INSENSITIVE
- shadow = IN
- file = "assets/entry-border-disabled-bg.png"
- border = { 12, 12, 12, 12 }
+ file = "assets/entry-active-bg.png"
+ border = {6, 6, 6, 6}
stretch = TRUE
}
image {
function = SHADOW
+ state = INSENSITIVE
detail = "entry"
- state = ACTIVE
- file = "assets/entry-border-active-bg.png"
- border = { 12, 12, 12, 12 }
+ file = "assets/entry-disabled-bg.png"
+ border = {6, 6, 6, 6}
stretch = TRUE
}
-
- image {
- function = FLAT_BOX
- detail = "entry_bg"
- state = NORMAL
- overlay_file = "assets/null.png"
- overlay_border = { 0, 0, 0, 0 }
- overlay_stretch = TRUE
- }
-
- image {
- function = FLAT_BOX
- detail = "entry_bg"
- state = ACTIVE
- overlay_file = "assets/null.png"
- overlay_border = { 0, 0, 0, 0 }
- overlay_stretch = TRUE
- }
}
}
style "notebook_entry" {
- xthickness = 6
engine "pixmap" {
image {
function = SHADOW
- detail = "entry"
state = NORMAL
- shadow = IN
- file = "assets/notebook-entry-border-bg.png"
- border = { 12, 12, 12, 12 }
+ detail = "entry"
+ file = "assets/entry-notebook.png"
+ border = {6, 6, 6, 6}
stretch = TRUE
}
image {
function = SHADOW
+ state = ACTIVE
detail = "entry"
- state = INSENSITIVE
- shadow = IN
- file = "assets/notebook-entry-border-disabled-bg.png"
- border = { 12, 12, 12, 12 }
+ file = "assets/entry-active-notebook.png"
+ border = {6, 6, 6, 6}
stretch = TRUE
}
image {
function = SHADOW
+ state = INSENSITIVE
detail = "entry"
- state = ACTIVE
- file = "assets/notebook-entry-border-active-bg.png"
- border = { 12, 12, 12, 12 }
+ file = "assets/entry-disabled-notebook.png"
+ border = {6, 6, 6, 6}
stretch = TRUE
}
-
- image {
- function = FLAT_BOX
- detail = "entry_bg"
- state = NORMAL
- overlay_file = "assets/null.png"
- overlay_border = { 0, 0, 0, 0 }
- overlay_stretch = TRUE
- }
-
- image {
- function = FLAT_BOX
- detail = "entry_bg"
- state = ACTIVE
- overlay_file = "assets/null.png"
- overlay_border = { 0, 0, 0, 0 }
- overlay_stretch = TRUE
- }
}
}
@@ -1629,92 +1589,6 @@ style "gimp_spin_scale" {
}
}
-style "libreoffice_entry" {
-
- engine "pixmap" {
-
- image {
- function = FLAT_BOX
- detail = "entry_bg"
- state = NORMAL
- overlay_file = "assets/entry-border-fill.png"
- overlay_border = { 0, 0, 0, 0 }
- overlay_stretch = TRUE
- }
-
- image {
- function = FLAT_BOX
- detail = "entry_bg"
- state = ACTIVE
- overlay_file = "assets/entry-border-fill.png"
- overlay_border = { 0, 0, 0, 0 }
- overlay_stretch = TRUE
- }
-
- image {
- function = SHADOW
- detail = "entry"
- state = NORMAL
- shadow = IN
- file = "assets/entry-border-bg-solid.png"
- border = { 12, 12, 12, 12 }
- stretch = TRUE
- }
-
- image {
- function = SHADOW
- detail = "entry"
- state = ACTIVE
- file = "assets/entry-border-active-bg-solid.png"
- border = { 12, 12, 12, 12 }
- stretch = TRUE
- }
- }
-}
-
-style "standalone_entry" {
-
- engine "pixmap" {
-
- image {
- function = FLAT_BOX
- detail = "entry_bg"
- state = NORMAL
- file = "assets/entry-border-fill.png"
- stretch = TRUE
- border = { 0, 0, 0, 0 }
- }
-
- image {
- function = FLAT_BOX
- detail = "entry_bg"
- state = ACTIVE
- file = "assets/entry-border-fill.png"
- stretch = TRUE
- border = { 0, 0, 0, 0 }
- }
-
- image {
- function = SHADOW
- detail = "entry"
- state = NORMAL
- shadow = IN
- file = "assets/entry-border-bg-solid.png"
- border = { 12, 12, 12, 12 }
- stretch = TRUE
- }
-
- image {
- function = SHADOW
- detail = "entry"
- state = ACTIVE
- file = "assets/entry-border-active-bg-solid.png"
- border = { 12, 12, 12, 12 }
- stretch = TRUE
- }
- }
-}
-
style "notebook" {
xthickness = 5
@@ -2434,10 +2308,6 @@ widget_class "*<GimpToolbox>*<GtkFrame>" style "gimp_
widget_class "*Chrom*Button*" style "button"
widget_class "*<GtkCustomMenu>*<GtkCustomMenuItem>*" style "chrome_menu_item"
-# We use this weird selector to target an offscreen entry as created
-# by Chrome/Chromium to derive the style for its toolbar
-widget_class "<GtkEntry>" style "standalone_entry"
-
# Eclipse/SWT
widget "gtk-tooltips*" style "eclipse-tooltips"
widget "*swt-toolbar-flat" style "null"
@@ -2445,10 +2315,6 @@ widget "*swt-toolbar-flat" style "null"
# Openoffice, Libreoffice
class "GtkWindow" style "toplevel_hack"
widget "*openoffice-toplevel*" style "ooo_stepper_hack"
-widget "*openoffice-toplevel*GtkEntry" style "libreoffice_entry"
-widget "*openoffice-toplevel*GtkSpinButton" style "libreoffice_entry"
-widget "*libreoffice-toplevel*GtkEntry" style "libreoffice_entry"
-widget "*libreoffice-toplevel*GtkSpinButton" style "libreoffice_entry"
# Xfce
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"