Commit 02dbbb92 authored by fezacakir's avatar fezacakir
Browse files

Update gtk-2.0/gtkrc, gtk-2.0/hacks.rc, gtk-2.0/main.rc, gtk-2.0/apps.rc files

parent b0431f8b
# vim:set ft=gtkrc ts=2 sw=2 sts=2 ai et:
#
# This file, unlike hacks.rc, contains legitimate cases we need to handle, e.g.
# custom widgets, programs giving us a chance to alter their UI to fit more with
# the theme or stuff that is supposed to look different, like panels.
# TODO: This could really look nicer
style "gimp_spin_scale" {
# Spin background
bg[NORMAL] = @base_color
engine "pixmap" {
image {
function = BOX
state = NORMAL
detail = "spinbutton_up"
overlay_file = "assets/spin-up.png"
overlay_stretch = FALSE
}
image {
function = BOX
state = PRELIGHT
detail = "spinbutton_up"
overlay_file = "assets/spin-up.png"
overlay_stretch = FALSE
}
image {
function = BOX
state = ACTIVE
detail = "spinbutton_up"
overlay_file = "assets/spin-up.png"
overlay_stretch = FALSE
}
image {
function = BOX
state = INSENSITIVE
detail = "spinbutton_up"
overlay_file = "assets/spin-up-insensitive.png"
overlay_stretch = FALSE
}
image {
function = BOX
state = NORMAL
detail = "spinbutton_down"
overlay_file = "assets/spin-down.png"
overlay_stretch = FALSE
}
image {
function = BOX
state = PRELIGHT
detail = "spinbutton_down"
overlay_file = "assets/spin-down.png"
overlay_stretch = FALSE
}
image {
function = BOX
state = ACTIVE
detail = "spinbutton_down"
overlay_file = "assets/spin-down.png"
overlay_stretch = FALSE
}
image {
function = BOX
state = INSENSITIVE
detail = "spinbutton_down"
overlay_file = "assets/spin-down-insensitive.png"
overlay_stretch = FALSE
}
}
}
style "chrome_gtk_frame" {
ChromeGtkFrame::frame-color = @window_color
ChromeGtkFrame::frame-gradient-color = @window_color
ChromeGtkFrame::inactive-frame-color = @bg_color
ChromeGtkFrame::incognito-frame-color = "#cbd2d9"
ChromeGtkFrame::incognito-frame-gradient-color = "#cbd2d9"
ChromeGtkFrame::incognito-inactive-frame-color = mix (0.5, @bg_color, "#cbd2d9")
}
# Disable spin button assets for GimpSpinScale
class "GimpSpinScale" style "gimp_spin_scale"
# Chromium lets us define some colours and settings for better integration
class "ChromeGtkFrame" style "chrome_gtk_frame"
# Based on Bridge by ScionicSpectre
# vim:set ts=2 sw=2 sts=2 ai et:
#
# This is the GTK+ 2 version of Adwaita. It's whole purpose is to look as the
# GTK+ 3 version as much as possible until GTK+ 2 dies completely.
#
# Note: comments for explaining styles are on the bottom of each file beside the
# widget matches.
# Declare the colours used throughout the theme.
# There shouldn't be any fiddling with them in the theme files themselves in
# order to not mess up the dark theme.
# Text/base
gtk-color-scheme = "text_color:black\nbase_color:white"
# Foreground/background
gtk-color-scheme = "fg_color:#2e3436\nbg_color:#d7ebff"
# Selected foreground/background
gtk-color-scheme = "selected_fg_color:#ffffff\nselected_bg_color:#3584e4"
# Insensitive foreground/background
gtk-color-scheme = "insensitive_fg_color:#8b8e8f\ninsensitive_bg_color:#f1f1f1"
# Menus
gtk-color-scheme = "menu_color:#0fa5ff"
# Links
gtk-color-scheme = "link_color:#2a76c6\nvisited_link_color:#215d9c"
# Treeview headers
gtk-color-scheme = "column_header_color:#979a9b\nhover_column_header_color:#636769"
# Window decoration
gtk-color-scheme = "window_color:#d7ebff"
# Tooltips
gtk-color-scheme = "tooltip_fg_color:#ffffff\ntooltip_bg_color:#343434"
# Set GTK settings
gtk-auto-mnemonics = 1
gtk-primary-button-warps-slider = 1
# And hand over the control to the theme files
include "main.rc"
include "apps.rc"
include "hacks.rc"
include "menubar-toolbar/menubar-toolbar.rc"
# vim:set ft=gtkrc ts=2 sw=2 sts=2 ai et:
#
# This file contains horrible hacks to make this theme work with some programs
# This is mostly due to the limitations of gtk2 but sometimes its the fault of
# the programs themselves. Not going to point fingers.
#
# Either way, it's a WONTFIX for both, hence this horrible file.
style "toplevel_hack" {
engine "adwaita" {}
}
style "chrome_entry" {
base[NORMAL] = @base_color
base[INSENSITIVE] = @base_color
}
style "vim_notebook" {
bg[NORMAL] = @base_color
bg[ACTIVE] = @insensitive_bg_color
}
# Vim puts an eventbox between the tab and the label and colours it,
# we need to handle that
widget "vim-main-window*GtkNotebook.GtkEventBox" style "vim_notebook"
# (he)xchat input box
class "SexySpellEntry" style:highest "normal_entry"
# Chromium uses base as the fill colour of its own entries
# This would be fine but Gtk+ uses it to fill the surrounding space, so its set to bg
# That results in Chromium using it for the fill, so we need to handle that
widget_class "*Chrom*<GtkEntry>" style "chrome_entry"
# Hack to be able to match widgets in LibreOffice
class "GtkWindow" style "toplevel_hack"
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment