diff --git a/configuration.nix b/configuration.nix index 5b138da..e40f217 100755 --- a/configuration.nix +++ b/configuration.nix @@ -53,7 +53,7 @@ security.rtkit.enable = true; # Enable touchpad support (enabled default in most desktopManager). - services.xserver.libinput.enable = true; + services.libinput.enable = true; hardware.uinput.enable = true; hardware.bluetooth.enable = true; # enables support for Bluetooth diff --git a/home-modules/assets/gtk-2.0/apps.rc b/home-modules/assets/gtk-2.0/apps.rc new file mode 100644 index 0000000..530e72f --- /dev/null +++ b/home-modules/assets/gtk-2.0/apps.rc @@ -0,0 +1,92 @@ +# 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/pan-up-alt.png" + overlay_stretch = FALSE + } + + image { + function = BOX + state = PRELIGHT + detail = "spinbutton_up" + overlay_file = "assets/pan-up.png" + overlay_stretch = FALSE + } + + image { + function = BOX + state = ACTIVE + detail = "spinbutton_up" + overlay_file = "assets/pan-up.png" + overlay_stretch = FALSE + } + + image { + function = BOX + state = INSENSITIVE + detail = "spinbutton_up" + overlay_file = "assets/pan-up-alt-disabled.png" + overlay_stretch = FALSE + } + + image { + function = BOX + state = NORMAL + detail = "spinbutton_down" + overlay_file = "assets/pan-down-alt.png" + overlay_stretch = FALSE + } + + image { + function = BOX + state = PRELIGHT + detail = "spinbutton_down" + overlay_file = "assets/pan-down.png" + overlay_stretch = FALSE + } + + image { + function = BOX + state = ACTIVE + detail = "spinbutton_down" + overlay_file = "assets/pan-down.png" + overlay_stretch = FALSE + } + + image { + function = BOX + state = INSENSITIVE + detail = "spinbutton_down" + overlay_file = "assets/pan-down-alt-disabled.png" + overlay_stretch = FALSE + } + } +} + +style "chrome_gtk_frame" { + ChromeGtkFrame::frame-color = @titlebar_bg_color + ChromeGtkFrame::inactive-frame-color = @titlebar_bg_color + ChromeGtkFrame::incognito-frame-color = @titlebar_bg_color + ChromeGtkFrame::incognito-inactive-frame-color = @titlebar_bg_color + + ChromeGtkFrame::frame-gradient-size = 0 +} + +# 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" diff --git a/home-modules/assets/gtk-2.0/assets/border.png b/home-modules/assets/gtk-2.0/assets/border.png new file mode 100644 index 0000000..20d503b Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/border.png differ diff --git a/home-modules/assets/gtk-2.0/assets/button-active.png b/home-modules/assets/gtk-2.0/assets/button-active.png new file mode 100644 index 0000000..ca25ccc Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/button-active.png differ diff --git a/home-modules/assets/gtk-2.0/assets/button-disabled.png b/home-modules/assets/gtk-2.0/assets/button-disabled.png new file mode 100644 index 0000000..6578ba7 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/button-disabled.png differ diff --git a/home-modules/assets/gtk-2.0/assets/button-hover.png b/home-modules/assets/gtk-2.0/assets/button-hover.png new file mode 100644 index 0000000..66e1fdd Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/button-hover.png differ diff --git a/home-modules/assets/gtk-2.0/assets/button.png b/home-modules/assets/gtk-2.0/assets/button.png new file mode 100644 index 0000000..3fe12c7 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/button.png differ diff --git a/home-modules/assets/gtk-2.0/assets/checkbox-checked-active.png b/home-modules/assets/gtk-2.0/assets/checkbox-checked-active.png new file mode 100644 index 0000000..ac453b2 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/checkbox-checked-active.png differ diff --git a/home-modules/assets/gtk-2.0/assets/checkbox-checked-disabled.png b/home-modules/assets/gtk-2.0/assets/checkbox-checked-disabled.png new file mode 100644 index 0000000..a7c963a Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/checkbox-checked-disabled.png differ diff --git a/home-modules/assets/gtk-2.0/assets/checkbox-checked-hover.png b/home-modules/assets/gtk-2.0/assets/checkbox-checked-hover.png new file mode 100644 index 0000000..088add4 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/checkbox-checked-hover.png differ diff --git a/home-modules/assets/gtk-2.0/assets/checkbox-checked.png b/home-modules/assets/gtk-2.0/assets/checkbox-checked.png new file mode 100644 index 0000000..26a3842 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/checkbox-checked.png differ diff --git a/home-modules/assets/gtk-2.0/assets/checkbox-mixed-active.png b/home-modules/assets/gtk-2.0/assets/checkbox-mixed-active.png new file mode 100644 index 0000000..5fc556d Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/checkbox-mixed-active.png differ diff --git a/home-modules/assets/gtk-2.0/assets/checkbox-mixed-disabled.png b/home-modules/assets/gtk-2.0/assets/checkbox-mixed-disabled.png new file mode 100644 index 0000000..f34d8c8 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/checkbox-mixed-disabled.png differ diff --git a/home-modules/assets/gtk-2.0/assets/checkbox-mixed-hover.png b/home-modules/assets/gtk-2.0/assets/checkbox-mixed-hover.png new file mode 100644 index 0000000..cb9417e Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/checkbox-mixed-hover.png differ diff --git a/home-modules/assets/gtk-2.0/assets/checkbox-mixed.png b/home-modules/assets/gtk-2.0/assets/checkbox-mixed.png new file mode 100644 index 0000000..8453542 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/checkbox-mixed.png differ diff --git a/home-modules/assets/gtk-2.0/assets/checkbox-unchecked-active.png b/home-modules/assets/gtk-2.0/assets/checkbox-unchecked-active.png new file mode 100644 index 0000000..ebab8ae Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/checkbox-unchecked-active.png differ diff --git a/home-modules/assets/gtk-2.0/assets/checkbox-unchecked-disabled.png b/home-modules/assets/gtk-2.0/assets/checkbox-unchecked-disabled.png new file mode 100644 index 0000000..6370fc6 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/checkbox-unchecked-disabled.png differ diff --git a/home-modules/assets/gtk-2.0/assets/checkbox-unchecked-hover.png b/home-modules/assets/gtk-2.0/assets/checkbox-unchecked-hover.png new file mode 100644 index 0000000..a575169 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/checkbox-unchecked-hover.png differ diff --git a/home-modules/assets/gtk-2.0/assets/checkbox-unchecked.png b/home-modules/assets/gtk-2.0/assets/checkbox-unchecked.png new file mode 100644 index 0000000..3f1f558 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/checkbox-unchecked.png differ diff --git a/home-modules/assets/gtk-2.0/assets/combo-left-entry-active.png b/home-modules/assets/gtk-2.0/assets/combo-left-entry-active.png new file mode 100644 index 0000000..ebf8eb3 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/combo-left-entry-active.png differ diff --git a/home-modules/assets/gtk-2.0/assets/combo-left-entry-disabled.png b/home-modules/assets/gtk-2.0/assets/combo-left-entry-disabled.png new file mode 100644 index 0000000..6a9d9dd Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/combo-left-entry-disabled.png differ diff --git a/home-modules/assets/gtk-2.0/assets/combo-left-entry-hover.png b/home-modules/assets/gtk-2.0/assets/combo-left-entry-hover.png new file mode 100644 index 0000000..c65ced0 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/combo-left-entry-hover.png differ diff --git a/home-modules/assets/gtk-2.0/assets/combo-left-entry.png b/home-modules/assets/gtk-2.0/assets/combo-left-entry.png new file mode 100644 index 0000000..255e3dc Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/combo-left-entry.png differ diff --git a/home-modules/assets/gtk-2.0/assets/combo-right-entry-active.png b/home-modules/assets/gtk-2.0/assets/combo-right-entry-active.png new file mode 100644 index 0000000..fda0f87 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/combo-right-entry-active.png differ diff --git a/home-modules/assets/gtk-2.0/assets/combo-right-entry-disabled.png b/home-modules/assets/gtk-2.0/assets/combo-right-entry-disabled.png new file mode 100644 index 0000000..67cfcc7 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/combo-right-entry-disabled.png differ diff --git a/home-modules/assets/gtk-2.0/assets/combo-right-entry-hover.png b/home-modules/assets/gtk-2.0/assets/combo-right-entry-hover.png new file mode 100644 index 0000000..8d643bd Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/combo-right-entry-hover.png differ diff --git a/home-modules/assets/gtk-2.0/assets/combo-right-entry.png b/home-modules/assets/gtk-2.0/assets/combo-right-entry.png new file mode 100644 index 0000000..5d23233 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/combo-right-entry.png differ diff --git a/home-modules/assets/gtk-2.0/assets/entry-active.png b/home-modules/assets/gtk-2.0/assets/entry-active.png new file mode 100644 index 0000000..d2ad2e0 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/entry-active.png differ diff --git a/home-modules/assets/gtk-2.0/assets/entry-background-disabled.png b/home-modules/assets/gtk-2.0/assets/entry-background-disabled.png new file mode 100644 index 0000000..ce14ba8 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/entry-background-disabled.png differ diff --git a/home-modules/assets/gtk-2.0/assets/entry-background.png b/home-modules/assets/gtk-2.0/assets/entry-background.png new file mode 100644 index 0000000..fdf26ab Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/entry-background.png differ diff --git a/home-modules/assets/gtk-2.0/assets/entry-disabled.png b/home-modules/assets/gtk-2.0/assets/entry-disabled.png new file mode 100644 index 0000000..6578ba7 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/entry-disabled.png differ diff --git a/home-modules/assets/gtk-2.0/assets/entry-hover.png b/home-modules/assets/gtk-2.0/assets/entry-hover.png new file mode 100644 index 0000000..5733239 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/entry-hover.png differ diff --git a/home-modules/assets/gtk-2.0/assets/entry.png b/home-modules/assets/gtk-2.0/assets/entry.png new file mode 100644 index 0000000..3fe12c7 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/entry.png differ diff --git a/home-modules/assets/gtk-2.0/assets/flat-button-active.png b/home-modules/assets/gtk-2.0/assets/flat-button-active.png new file mode 100644 index 0000000..ca25ccc Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/flat-button-active.png differ diff --git a/home-modules/assets/gtk-2.0/assets/flat-button-disabled.png b/home-modules/assets/gtk-2.0/assets/flat-button-disabled.png new file mode 100644 index 0000000..96f9995 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/flat-button-disabled.png differ diff --git a/home-modules/assets/gtk-2.0/assets/flat-button-hover.png b/home-modules/assets/gtk-2.0/assets/flat-button-hover.png new file mode 100644 index 0000000..66e1fdd Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/flat-button-hover.png differ diff --git a/home-modules/assets/gtk-2.0/assets/flat-button.png b/home-modules/assets/gtk-2.0/assets/flat-button.png new file mode 100644 index 0000000..96f9995 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/flat-button.png differ diff --git a/home-modules/assets/gtk-2.0/assets/focus.png b/home-modules/assets/gtk-2.0/assets/focus.png new file mode 100644 index 0000000..3e8d13d Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/focus.png differ diff --git a/home-modules/assets/gtk-2.0/assets/frame-inline.png b/home-modules/assets/gtk-2.0/assets/frame-inline.png new file mode 100644 index 0000000..3bf2f90 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/frame-inline.png differ diff --git a/home-modules/assets/gtk-2.0/assets/frame-notebook.png b/home-modules/assets/gtk-2.0/assets/frame-notebook.png new file mode 100644 index 0000000..1562a81 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/frame-notebook.png differ diff --git a/home-modules/assets/gtk-2.0/assets/frame.png b/home-modules/assets/gtk-2.0/assets/frame.png new file mode 100644 index 0000000..1562a81 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/frame.png differ diff --git a/home-modules/assets/gtk-2.0/assets/handle-horz-active.png b/home-modules/assets/gtk-2.0/assets/handle-horz-active.png new file mode 100644 index 0000000..f1c519e Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/handle-horz-active.png differ diff --git a/home-modules/assets/gtk-2.0/assets/handle-horz-hover.png b/home-modules/assets/gtk-2.0/assets/handle-horz-hover.png new file mode 100644 index 0000000..e7e40d6 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/handle-horz-hover.png differ diff --git a/home-modules/assets/gtk-2.0/assets/handle-horz.png b/home-modules/assets/gtk-2.0/assets/handle-horz.png new file mode 100644 index 0000000..ef1738d Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/handle-horz.png differ diff --git a/home-modules/assets/gtk-2.0/assets/handle-vert-active.png b/home-modules/assets/gtk-2.0/assets/handle-vert-active.png new file mode 100644 index 0000000..0cec1dc Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/handle-vert-active.png differ diff --git a/home-modules/assets/gtk-2.0/assets/handle-vert-hover.png b/home-modules/assets/gtk-2.0/assets/handle-vert-hover.png new file mode 100644 index 0000000..600fb08 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/handle-vert-hover.png differ diff --git a/home-modules/assets/gtk-2.0/assets/handle-vert.png b/home-modules/assets/gtk-2.0/assets/handle-vert.png new file mode 100644 index 0000000..377fdf0 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/handle-vert.png differ diff --git a/home-modules/assets/gtk-2.0/assets/menu-checkbox-checked-disabled.png b/home-modules/assets/gtk-2.0/assets/menu-checkbox-checked-disabled.png new file mode 100644 index 0000000..7493ce7 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/menu-checkbox-checked-disabled.png differ diff --git a/home-modules/assets/gtk-2.0/assets/menu-checkbox-checked.png b/home-modules/assets/gtk-2.0/assets/menu-checkbox-checked.png new file mode 100644 index 0000000..b3bc57f Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/menu-checkbox-checked.png differ diff --git a/home-modules/assets/gtk-2.0/assets/menu-checkbox-mixed-disabled.png b/home-modules/assets/gtk-2.0/assets/menu-checkbox-mixed-disabled.png new file mode 100644 index 0000000..1399f34 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/menu-checkbox-mixed-disabled.png differ diff --git a/home-modules/assets/gtk-2.0/assets/menu-checkbox-mixed.png b/home-modules/assets/gtk-2.0/assets/menu-checkbox-mixed.png new file mode 100644 index 0000000..6cfd0b3 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/menu-checkbox-mixed.png differ diff --git a/home-modules/assets/gtk-2.0/assets/menu-checkbox-unchecked-disabled.png b/home-modules/assets/gtk-2.0/assets/menu-checkbox-unchecked-disabled.png new file mode 100644 index 0000000..82a4787 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/menu-checkbox-unchecked-disabled.png differ diff --git a/home-modules/assets/gtk-2.0/assets/menu-checkbox-unchecked.png b/home-modules/assets/gtk-2.0/assets/menu-checkbox-unchecked.png new file mode 100644 index 0000000..899f034 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/menu-checkbox-unchecked.png differ diff --git a/home-modules/assets/gtk-2.0/assets/menu-radio-checked-disabled.png b/home-modules/assets/gtk-2.0/assets/menu-radio-checked-disabled.png new file mode 100644 index 0000000..ff14661 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/menu-radio-checked-disabled.png differ diff --git a/home-modules/assets/gtk-2.0/assets/menu-radio-checked.png b/home-modules/assets/gtk-2.0/assets/menu-radio-checked.png new file mode 100644 index 0000000..afc68b6 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/menu-radio-checked.png differ diff --git a/home-modules/assets/gtk-2.0/assets/menu-radio-mixed-disabled.png b/home-modules/assets/gtk-2.0/assets/menu-radio-mixed-disabled.png new file mode 100644 index 0000000..1399f34 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/menu-radio-mixed-disabled.png differ diff --git a/home-modules/assets/gtk-2.0/assets/menu-radio-mixed.png b/home-modules/assets/gtk-2.0/assets/menu-radio-mixed.png new file mode 100644 index 0000000..6cfd0b3 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/menu-radio-mixed.png differ diff --git a/home-modules/assets/gtk-2.0/assets/menu-radio-unchecked-disabled.png b/home-modules/assets/gtk-2.0/assets/menu-radio-unchecked-disabled.png new file mode 100644 index 0000000..82a4787 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/menu-radio-unchecked-disabled.png differ diff --git a/home-modules/assets/gtk-2.0/assets/menu-radio-unchecked.png b/home-modules/assets/gtk-2.0/assets/menu-radio-unchecked.png new file mode 100644 index 0000000..899f034 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/menu-radio-unchecked.png differ diff --git a/home-modules/assets/gtk-2.0/assets/pan-down-alt-disabled.png b/home-modules/assets/gtk-2.0/assets/pan-down-alt-disabled.png new file mode 100644 index 0000000..11a6985 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/pan-down-alt-disabled.png differ diff --git a/home-modules/assets/gtk-2.0/assets/pan-down-alt.png b/home-modules/assets/gtk-2.0/assets/pan-down-alt.png new file mode 100644 index 0000000..974686c Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/pan-down-alt.png differ diff --git a/home-modules/assets/gtk-2.0/assets/pan-down-disabled.png b/home-modules/assets/gtk-2.0/assets/pan-down-disabled.png new file mode 100644 index 0000000..8aa6331 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/pan-down-disabled.png differ diff --git a/home-modules/assets/gtk-2.0/assets/pan-down.png b/home-modules/assets/gtk-2.0/assets/pan-down.png new file mode 100644 index 0000000..2f28e41 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/pan-down.png differ diff --git a/home-modules/assets/gtk-2.0/assets/pan-left-alt-disabled.png b/home-modules/assets/gtk-2.0/assets/pan-left-alt-disabled.png new file mode 100644 index 0000000..44e26b6 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/pan-left-alt-disabled.png differ diff --git a/home-modules/assets/gtk-2.0/assets/pan-left-alt.png b/home-modules/assets/gtk-2.0/assets/pan-left-alt.png new file mode 100644 index 0000000..529b5e4 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/pan-left-alt.png differ diff --git a/home-modules/assets/gtk-2.0/assets/pan-left-disabled.png b/home-modules/assets/gtk-2.0/assets/pan-left-disabled.png new file mode 100644 index 0000000..ff7c852 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/pan-left-disabled.png differ diff --git a/home-modules/assets/gtk-2.0/assets/pan-left-semi.png b/home-modules/assets/gtk-2.0/assets/pan-left-semi.png new file mode 100644 index 0000000..955e801 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/pan-left-semi.png differ diff --git a/home-modules/assets/gtk-2.0/assets/pan-left.png b/home-modules/assets/gtk-2.0/assets/pan-left.png new file mode 100644 index 0000000..c9cb53a Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/pan-left.png differ diff --git a/home-modules/assets/gtk-2.0/assets/pan-right-alt-disabled.png b/home-modules/assets/gtk-2.0/assets/pan-right-alt-disabled.png new file mode 100644 index 0000000..42e5877 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/pan-right-alt-disabled.png differ diff --git a/home-modules/assets/gtk-2.0/assets/pan-right-alt.png b/home-modules/assets/gtk-2.0/assets/pan-right-alt.png new file mode 100644 index 0000000..d740506 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/pan-right-alt.png differ diff --git a/home-modules/assets/gtk-2.0/assets/pan-right-disabled.png b/home-modules/assets/gtk-2.0/assets/pan-right-disabled.png new file mode 100644 index 0000000..e8e14e8 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/pan-right-disabled.png differ diff --git a/home-modules/assets/gtk-2.0/assets/pan-right-semi.png b/home-modules/assets/gtk-2.0/assets/pan-right-semi.png new file mode 100644 index 0000000..d7d5af0 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/pan-right-semi.png differ diff --git a/home-modules/assets/gtk-2.0/assets/pan-right.png b/home-modules/assets/gtk-2.0/assets/pan-right.png new file mode 100644 index 0000000..6cf201d Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/pan-right.png differ diff --git a/home-modules/assets/gtk-2.0/assets/pan-up-alt-disabled.png b/home-modules/assets/gtk-2.0/assets/pan-up-alt-disabled.png new file mode 100644 index 0000000..56a417c Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/pan-up-alt-disabled.png differ diff --git a/home-modules/assets/gtk-2.0/assets/pan-up-alt.png b/home-modules/assets/gtk-2.0/assets/pan-up-alt.png new file mode 100644 index 0000000..5df7be8 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/pan-up-alt.png differ diff --git a/home-modules/assets/gtk-2.0/assets/pan-up-disabled.png b/home-modules/assets/gtk-2.0/assets/pan-up-disabled.png new file mode 100644 index 0000000..d3ae511 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/pan-up-disabled.png differ diff --git a/home-modules/assets/gtk-2.0/assets/pan-up.png b/home-modules/assets/gtk-2.0/assets/pan-up.png new file mode 100644 index 0000000..a99f7cf Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/pan-up.png differ diff --git a/home-modules/assets/gtk-2.0/assets/progressbar-progress.png b/home-modules/assets/gtk-2.0/assets/progressbar-progress.png new file mode 100644 index 0000000..38a85df Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/progressbar-progress.png differ diff --git a/home-modules/assets/gtk-2.0/assets/progressbar-trough.png b/home-modules/assets/gtk-2.0/assets/progressbar-trough.png new file mode 100644 index 0000000..0ab5001 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/progressbar-trough.png differ diff --git a/home-modules/assets/gtk-2.0/assets/radio-checked-active.png b/home-modules/assets/gtk-2.0/assets/radio-checked-active.png new file mode 100644 index 0000000..c654edf Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/radio-checked-active.png differ diff --git a/home-modules/assets/gtk-2.0/assets/radio-checked-disabled.png b/home-modules/assets/gtk-2.0/assets/radio-checked-disabled.png new file mode 100644 index 0000000..74fab9c Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/radio-checked-disabled.png differ diff --git a/home-modules/assets/gtk-2.0/assets/radio-checked-hover.png b/home-modules/assets/gtk-2.0/assets/radio-checked-hover.png new file mode 100644 index 0000000..c93eced Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/radio-checked-hover.png differ diff --git a/home-modules/assets/gtk-2.0/assets/radio-checked.png b/home-modules/assets/gtk-2.0/assets/radio-checked.png new file mode 100644 index 0000000..94996e1 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/radio-checked.png differ diff --git a/home-modules/assets/gtk-2.0/assets/radio-mixed-active.png b/home-modules/assets/gtk-2.0/assets/radio-mixed-active.png new file mode 100644 index 0000000..5fc556d Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/radio-mixed-active.png differ diff --git a/home-modules/assets/gtk-2.0/assets/radio-mixed-disabled.png b/home-modules/assets/gtk-2.0/assets/radio-mixed-disabled.png new file mode 100644 index 0000000..f34d8c8 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/radio-mixed-disabled.png differ diff --git a/home-modules/assets/gtk-2.0/assets/radio-mixed-hover.png b/home-modules/assets/gtk-2.0/assets/radio-mixed-hover.png new file mode 100644 index 0000000..cb9417e Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/radio-mixed-hover.png differ diff --git a/home-modules/assets/gtk-2.0/assets/radio-mixed.png b/home-modules/assets/gtk-2.0/assets/radio-mixed.png new file mode 100644 index 0000000..8453542 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/radio-mixed.png differ diff --git a/home-modules/assets/gtk-2.0/assets/radio-unchecked-active.png b/home-modules/assets/gtk-2.0/assets/radio-unchecked-active.png new file mode 100644 index 0000000..ebab8ae Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/radio-unchecked-active.png differ diff --git a/home-modules/assets/gtk-2.0/assets/radio-unchecked-disabled.png b/home-modules/assets/gtk-2.0/assets/radio-unchecked-disabled.png new file mode 100644 index 0000000..6370fc6 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/radio-unchecked-disabled.png differ diff --git a/home-modules/assets/gtk-2.0/assets/radio-unchecked-hover.png b/home-modules/assets/gtk-2.0/assets/radio-unchecked-hover.png new file mode 100644 index 0000000..a575169 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/radio-unchecked-hover.png differ diff --git a/home-modules/assets/gtk-2.0/assets/radio-unchecked.png b/home-modules/assets/gtk-2.0/assets/radio-unchecked.png new file mode 100644 index 0000000..3f1f558 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/radio-unchecked.png differ diff --git a/home-modules/assets/gtk-2.0/assets/scale-horz-trough-active.png b/home-modules/assets/gtk-2.0/assets/scale-horz-trough-active.png new file mode 100644 index 0000000..73948f3 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/scale-horz-trough-active.png differ diff --git a/home-modules/assets/gtk-2.0/assets/scale-horz-trough-disabled.png b/home-modules/assets/gtk-2.0/assets/scale-horz-trough-disabled.png new file mode 100644 index 0000000..10cf142 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/scale-horz-trough-disabled.png differ diff --git a/home-modules/assets/gtk-2.0/assets/scale-horz-trough.png b/home-modules/assets/gtk-2.0/assets/scale-horz-trough.png new file mode 100644 index 0000000..8a0adf1 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/scale-horz-trough.png differ diff --git a/home-modules/assets/gtk-2.0/assets/scale-slider-active.png b/home-modules/assets/gtk-2.0/assets/scale-slider-active.png new file mode 100644 index 0000000..5ab5a85 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/scale-slider-active.png differ diff --git a/home-modules/assets/gtk-2.0/assets/scale-slider-disabled.png b/home-modules/assets/gtk-2.0/assets/scale-slider-disabled.png new file mode 100644 index 0000000..e127ead Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/scale-slider-disabled.png differ diff --git a/home-modules/assets/gtk-2.0/assets/scale-slider-hover.png b/home-modules/assets/gtk-2.0/assets/scale-slider-hover.png new file mode 100644 index 0000000..696da39 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/scale-slider-hover.png differ diff --git a/home-modules/assets/gtk-2.0/assets/scale-slider.png b/home-modules/assets/gtk-2.0/assets/scale-slider.png new file mode 100644 index 0000000..8fc4829 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/scale-slider.png differ diff --git a/home-modules/assets/gtk-2.0/assets/scale-vert-trough-active.png b/home-modules/assets/gtk-2.0/assets/scale-vert-trough-active.png new file mode 100644 index 0000000..b6aa29c Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/scale-vert-trough-active.png differ diff --git a/home-modules/assets/gtk-2.0/assets/scale-vert-trough-disabled.png b/home-modules/assets/gtk-2.0/assets/scale-vert-trough-disabled.png new file mode 100644 index 0000000..7e38ad6 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/scale-vert-trough-disabled.png differ diff --git a/home-modules/assets/gtk-2.0/assets/scale-vert-trough.png b/home-modules/assets/gtk-2.0/assets/scale-vert-trough.png new file mode 100644 index 0000000..6c6d336 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/scale-vert-trough.png differ diff --git a/home-modules/assets/gtk-2.0/assets/scrollbar-horz-slider-active.png b/home-modules/assets/gtk-2.0/assets/scrollbar-horz-slider-active.png new file mode 100644 index 0000000..9b3802a Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/scrollbar-horz-slider-active.png differ diff --git a/home-modules/assets/gtk-2.0/assets/scrollbar-horz-slider-disabled.png b/home-modules/assets/gtk-2.0/assets/scrollbar-horz-slider-disabled.png new file mode 100644 index 0000000..a0e78e2 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/scrollbar-horz-slider-disabled.png differ diff --git a/home-modules/assets/gtk-2.0/assets/scrollbar-horz-slider-hover.png b/home-modules/assets/gtk-2.0/assets/scrollbar-horz-slider-hover.png new file mode 100644 index 0000000..c44bf53 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/scrollbar-horz-slider-hover.png differ diff --git a/home-modules/assets/gtk-2.0/assets/scrollbar-horz-slider.png b/home-modules/assets/gtk-2.0/assets/scrollbar-horz-slider.png new file mode 100644 index 0000000..7d45347 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/scrollbar-horz-slider.png differ diff --git a/home-modules/assets/gtk-2.0/assets/scrollbar-horz-trough.png b/home-modules/assets/gtk-2.0/assets/scrollbar-horz-trough.png new file mode 100644 index 0000000..7ee3682 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/scrollbar-horz-trough.png differ diff --git a/home-modules/assets/gtk-2.0/assets/scrollbar-vert-ltr-slider-active.png b/home-modules/assets/gtk-2.0/assets/scrollbar-vert-ltr-slider-active.png new file mode 100644 index 0000000..86a7e94 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/scrollbar-vert-ltr-slider-active.png differ diff --git a/home-modules/assets/gtk-2.0/assets/scrollbar-vert-ltr-slider-disabled.png b/home-modules/assets/gtk-2.0/assets/scrollbar-vert-ltr-slider-disabled.png new file mode 100644 index 0000000..e1bd86a Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/scrollbar-vert-ltr-slider-disabled.png differ diff --git a/home-modules/assets/gtk-2.0/assets/scrollbar-vert-ltr-slider-hover.png b/home-modules/assets/gtk-2.0/assets/scrollbar-vert-ltr-slider-hover.png new file mode 100644 index 0000000..0eab6ab Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/scrollbar-vert-ltr-slider-hover.png differ diff --git a/home-modules/assets/gtk-2.0/assets/scrollbar-vert-ltr-slider.png b/home-modules/assets/gtk-2.0/assets/scrollbar-vert-ltr-slider.png new file mode 100644 index 0000000..bd8227a Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/scrollbar-vert-ltr-slider.png differ diff --git a/home-modules/assets/gtk-2.0/assets/scrollbar-vert-ltr-trough.png b/home-modules/assets/gtk-2.0/assets/scrollbar-vert-ltr-trough.png new file mode 100644 index 0000000..71b8d3b Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/scrollbar-vert-ltr-trough.png differ diff --git a/home-modules/assets/gtk-2.0/assets/scrollbar-vert-rtl-slider-active.png b/home-modules/assets/gtk-2.0/assets/scrollbar-vert-rtl-slider-active.png new file mode 100644 index 0000000..f219ede Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/scrollbar-vert-rtl-slider-active.png differ diff --git a/home-modules/assets/gtk-2.0/assets/scrollbar-vert-rtl-slider-disabled.png b/home-modules/assets/gtk-2.0/assets/scrollbar-vert-rtl-slider-disabled.png new file mode 100644 index 0000000..e8cf326 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/scrollbar-vert-rtl-slider-disabled.png differ diff --git a/home-modules/assets/gtk-2.0/assets/scrollbar-vert-rtl-slider-hover.png b/home-modules/assets/gtk-2.0/assets/scrollbar-vert-rtl-slider-hover.png new file mode 100644 index 0000000..fc02be4 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/scrollbar-vert-rtl-slider-hover.png differ diff --git a/home-modules/assets/gtk-2.0/assets/scrollbar-vert-rtl-slider.png b/home-modules/assets/gtk-2.0/assets/scrollbar-vert-rtl-slider.png new file mode 100644 index 0000000..8ab9c68 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/scrollbar-vert-rtl-slider.png differ diff --git a/home-modules/assets/gtk-2.0/assets/scrollbar-vert-rtl-trough.png b/home-modules/assets/gtk-2.0/assets/scrollbar-vert-rtl-trough.png new file mode 100644 index 0000000..a7f7881 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/scrollbar-vert-rtl-trough.png differ diff --git a/home-modules/assets/gtk-2.0/assets/spin-ltr-down-active.png b/home-modules/assets/gtk-2.0/assets/spin-ltr-down-active.png new file mode 100644 index 0000000..e5b316c Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/spin-ltr-down-active.png differ diff --git a/home-modules/assets/gtk-2.0/assets/spin-ltr-down-disabled.png b/home-modules/assets/gtk-2.0/assets/spin-ltr-down-disabled.png new file mode 100644 index 0000000..19139fd Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/spin-ltr-down-disabled.png differ diff --git a/home-modules/assets/gtk-2.0/assets/spin-ltr-down-hover.png b/home-modules/assets/gtk-2.0/assets/spin-ltr-down-hover.png new file mode 100644 index 0000000..64e8a4c Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/spin-ltr-down-hover.png differ diff --git a/home-modules/assets/gtk-2.0/assets/spin-ltr-down.png b/home-modules/assets/gtk-2.0/assets/spin-ltr-down.png new file mode 100644 index 0000000..020deb5 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/spin-ltr-down.png differ diff --git a/home-modules/assets/gtk-2.0/assets/spin-ltr-up-active.png b/home-modules/assets/gtk-2.0/assets/spin-ltr-up-active.png new file mode 100644 index 0000000..fa3805d Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/spin-ltr-up-active.png differ diff --git a/home-modules/assets/gtk-2.0/assets/spin-ltr-up-disabled.png b/home-modules/assets/gtk-2.0/assets/spin-ltr-up-disabled.png new file mode 100644 index 0000000..dcf55af Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/spin-ltr-up-disabled.png differ diff --git a/home-modules/assets/gtk-2.0/assets/spin-ltr-up-hover.png b/home-modules/assets/gtk-2.0/assets/spin-ltr-up-hover.png new file mode 100644 index 0000000..4631e6f Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/spin-ltr-up-hover.png differ diff --git a/home-modules/assets/gtk-2.0/assets/spin-ltr-up.png b/home-modules/assets/gtk-2.0/assets/spin-ltr-up.png new file mode 100644 index 0000000..f9b8eb6 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/spin-ltr-up.png differ diff --git a/home-modules/assets/gtk-2.0/assets/spin-rtl-down-active.png b/home-modules/assets/gtk-2.0/assets/spin-rtl-down-active.png new file mode 100644 index 0000000..06b2e76 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/spin-rtl-down-active.png differ diff --git a/home-modules/assets/gtk-2.0/assets/spin-rtl-down-disabled.png b/home-modules/assets/gtk-2.0/assets/spin-rtl-down-disabled.png new file mode 100644 index 0000000..4c5e3b1 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/spin-rtl-down-disabled.png differ diff --git a/home-modules/assets/gtk-2.0/assets/spin-rtl-down-hover.png b/home-modules/assets/gtk-2.0/assets/spin-rtl-down-hover.png new file mode 100644 index 0000000..af6410e Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/spin-rtl-down-hover.png differ diff --git a/home-modules/assets/gtk-2.0/assets/spin-rtl-down.png b/home-modules/assets/gtk-2.0/assets/spin-rtl-down.png new file mode 100644 index 0000000..7eae428 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/spin-rtl-down.png differ diff --git a/home-modules/assets/gtk-2.0/assets/spin-rtl-up-active.png b/home-modules/assets/gtk-2.0/assets/spin-rtl-up-active.png new file mode 100644 index 0000000..9b77fd1 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/spin-rtl-up-active.png differ diff --git a/home-modules/assets/gtk-2.0/assets/spin-rtl-up-disabled.png b/home-modules/assets/gtk-2.0/assets/spin-rtl-up-disabled.png new file mode 100644 index 0000000..e229de4 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/spin-rtl-up-disabled.png differ diff --git a/home-modules/assets/gtk-2.0/assets/spin-rtl-up-hover.png b/home-modules/assets/gtk-2.0/assets/spin-rtl-up-hover.png new file mode 100644 index 0000000..ed0c0ce Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/spin-rtl-up-hover.png differ diff --git a/home-modules/assets/gtk-2.0/assets/spin-rtl-up.png b/home-modules/assets/gtk-2.0/assets/spin-rtl-up.png new file mode 100644 index 0000000..e3a59e8 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/spin-rtl-up.png differ diff --git a/home-modules/assets/gtk-2.0/assets/tab.png b/home-modules/assets/gtk-2.0/assets/tab.png new file mode 100644 index 0000000..56b6303 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/tab.png differ diff --git a/home-modules/assets/gtk-2.0/assets/treeview-ltr-button-active.png b/home-modules/assets/gtk-2.0/assets/treeview-ltr-button-active.png new file mode 100644 index 0000000..45da44f Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/treeview-ltr-button-active.png differ diff --git a/home-modules/assets/gtk-2.0/assets/treeview-ltr-button-hover.png b/home-modules/assets/gtk-2.0/assets/treeview-ltr-button-hover.png new file mode 100644 index 0000000..a240cb6 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/treeview-ltr-button-hover.png differ diff --git a/home-modules/assets/gtk-2.0/assets/treeview-ltr-button.png b/home-modules/assets/gtk-2.0/assets/treeview-ltr-button.png new file mode 100644 index 0000000..cc77fcc Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/treeview-ltr-button.png differ diff --git a/home-modules/assets/gtk-2.0/assets/treeview-rtl-button-active.png b/home-modules/assets/gtk-2.0/assets/treeview-rtl-button-active.png new file mode 100644 index 0000000..a5a46b9 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/treeview-rtl-button-active.png differ diff --git a/home-modules/assets/gtk-2.0/assets/treeview-rtl-button-hover.png b/home-modules/assets/gtk-2.0/assets/treeview-rtl-button-hover.png new file mode 100644 index 0000000..810a277 Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/treeview-rtl-button-hover.png differ diff --git a/home-modules/assets/gtk-2.0/assets/treeview-rtl-button.png b/home-modules/assets/gtk-2.0/assets/treeview-rtl-button.png new file mode 100644 index 0000000..cc77fcc Binary files /dev/null and b/home-modules/assets/gtk-2.0/assets/treeview-rtl-button.png differ diff --git a/home-modules/assets/gtk-2.0/gtkrc b/home-modules/assets/gtk-2.0/gtkrc new file mode 100644 index 0000000..8a28286 --- /dev/null +++ b/home-modules/assets/gtk-2.0/gtkrc @@ -0,0 +1,36 @@ +# Based on Bridge by ScionicSpectre and Adwaita by GNOME +# vim:set ts=2 sw=2 sts=2 ai et: +# +# This is the GTK 2 version of Materia. 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:#eff1f5\nbase_color:#24273a" +# Foreground/background +gtk-color-scheme = "fg_color:#eff1f5\nbg_color:#24273a" +# Selected foreground/background +gtk-color-scheme = "selected_fg_color:#eff1f5\nselected_bg_color:#f5bde6" +# Titlebar foreground/background +gtk-color-scheme = "titlebar_fg_color:#eff1f5\ntitlebar_bg_color:#181926" +# Menus +gtk-color-scheme = "menu_color:#1e2030" +# Tooltips foreground/background +gtk-color-scheme = "tooltip_fg_color:#eff1f5\ntooltip_bg_color:#181926" +# Links +gtk-color-scheme = "link_color:#8AB4F8\nvisited_link_color:#CE93D8" + +# 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" diff --git a/home-modules/assets/gtk-2.0/hacks.rc b/home-modules/assets/gtk-2.0/hacks.rc new file mode 100644 index 0000000..c288da3 --- /dev/null +++ b/home-modules/assets/gtk-2.0/hacks.rc @@ -0,0 +1,36 @@ +# 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 GTK 2 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] = @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*" style "chrome_entry" + +# Hack to be able to match widgets in LibreOffice +class "GtkWindow" style "toplevel_hack" diff --git a/home-modules/assets/gtk-2.0/main.rc b/home-modules/assets/gtk-2.0/main.rc new file mode 100644 index 0000000..8349b0e --- /dev/null +++ b/home-modules/assets/gtk-2.0/main.rc @@ -0,0 +1,2708 @@ +# vim:set ft=gtkrc ts=2 sw=2 sts=2 ai et: +# +# This is the main theme file, handling all the default widgets and theme +# properties. Since GTK 2 is old, we need to overcome some of its limitations, +# which is also mostly done in this file. Sadly not all of them can be overcome +# so there will always be a visible difference between the GTK 2 and 3 theme. + +style "default" { + xthickness = 1 + ythickness = 1 + + #################### + # Style Properties # + #################### + + GtkWidget::focus-padding = 0 + GtkWidget::focus-line-width = 2 + GtkWidget::focus-line-pattern = "\2\1" + + GtkToolbar::space-size = 5 # 1 + 2*2 (separator + margins) + GtkToolbar::internal-padding = 2 + GtkToolButton::icon-spacing = 4 + + GtkWidget::tooltip-radius = 4 + GtkWidget::tooltip-alpha = 230 + GtkWidget::new-tooltip-style = 1 #for compatibility + + GtkWidget::link-color = @link_color + GtkWidget::visited-link-color = @visited_link_color + GnomeHRef::link_color = @link_color + GtkHTML::link-color = @link_color + GtkHTML::vlink-color = @visited_link_color + GtkIMHtml::hyperlink-color = @link_color + GtkIMHtml::hyperlink-visited-color = @visited_link_color + + GtkSeparatorMenuItem::horizontal-padding = 0 + GtkSeparatorMenuItem::wide-separators = 1 + GtkSeparatorMenuItem::separator-height = 3 + + GtkButton::child-displacement-y = 0 + + GtkButton::default-border = {0, 0, 0, 0} + GtkButton::default-outside-border = {0, 0, 0, 0} + GtkButton::inner-border = {0, 0, 0, 0} + + GtkEntry::state-hint = 1 + GtkEntry::inner-border = {0, 0, 0, 0} + + GtkPaned::handle-size = 8 + GtkHPaned::handle-size = 8 + GtkVPaned::handle-size = 8 + + GtkScrollbar::trough-border = 0 + GtkRange::trough-border = 0 + GtkRange::slider-width = 17 + GtkRange::stepper-size = 0 + GtkRange::activate-slider = 1 + + GtkScrollbar::activate-slider = 1 + GtkScrollbar::stepper-size = 0 + GtkScrollbar::has-backward-stepper = 0 + GtkScrollbar::has-forward-stepper = 0 + GtkScrollbar::min-slider-length = 32 # 24 + 2*4 (margins) + GtkScrolledWindow::scrollbar-spacing = 0 + GtkScrolledWindow::scrollbars-within-bevel = 1 + + GtkScale::slider_length = 24 + GtkScale::slider_width = 24 + GtkScale::trough-side-details = 1 + + GtkProgressBar::min-horizontal-bar-height = 4 + GtkProgressBar::min-vertical-bar-width = 4 + GtkProgressBar::xspacing = 4 + GtkProgressBar::yspacing = 4 + + GtkStatusbar::shadow_type = GTK_SHADOW_NONE + GtkSpinButton::shadow_type = GTK_SHADOW_NONE + GtkMenuBar::shadow-type = GTK_SHADOW_NONE + GtkToolbar::shadow-type = GTK_SHADOW_NONE + # TODO: find out what this comment means: + # ( every window is misaligned for the sake of menus ): + GtkMenuBar::internal-padding = 0 + GtkMenu::horizontal-padding = 0 + GtkMenu::vertical-padding = 4 + GtkMenu::double-arrows = 0 + GtkMenuItem::arrow-scaling = 1 + GtkMenuItem::toggle-spacing = 12 + + GtkCheckButton::indicator-size = 24 + GtkCheckButton::indicator_spacing = 2 + GtkOptionMenu::indicator_spacing = {8, 8, 4, 4} + + GtkTreeView::expander-size = 16 + GtkTreeView::vertical-separator = 0 + GtkTreeView::horizontal-separator = 4 + GtkTreeView::allow-rules = 0 + # Set this because some apps read it + GtkTreeView::odd-row-color = @base_color + GtkTreeView::even-row-color = @base_color + + GtkExpander::expander-size = 16 + + GtkNotebook::tab-overlap = 0 + + ########## + # Colors # + ########## + + bg[NORMAL] = @bg_color + bg[PRELIGHT] = @bg_color + bg[SELECTED] = mix (0.24, @selected_bg_color, @bg_color) + bg[INSENSITIVE] = @bg_color + bg[ACTIVE] = @bg_color + + fg[NORMAL] = @fg_color + fg[PRELIGHT] = @fg_color + fg[SELECTED] = @fg_color + fg[INSENSITIVE] = mix (0.5, @fg_color, @bg_color) + fg[ACTIVE] = @fg_color + + text[NORMAL] = @text_color + text[PRELIGHT] = @text_color + text[SELECTED] = @text_color + text[INSENSITIVE] = mix (0.5, @text_color, @base_color) + text[ACTIVE] = @text_color + + base[NORMAL] = @base_color + base[PRELIGHT] = mix (0.08, @text_color, @base_color) + base[SELECTED] = mix (0.24, @selected_bg_color, @base_color) + base[INSENSITIVE] = mix (0.5, @base_color, @bg_color) + base[ACTIVE] = mix (0.24, @selected_bg_color, @base_color) + + # For succinctness, all reasonable pixmap options remain here + + # Draw frame around menu in a non-compositied environment + # This needs to go before pixmap because we need to override some stuff + engine "adwaita" {} + + engine "pixmap" { + + ################# + # Check Buttons # + ################# + + image { + function = CHECK + state = NORMAL + shadow = OUT + overlay_file = "assets/checkbox-unchecked.png" + overlay_stretch = FALSE + } + + image { + function = CHECK + state = PRELIGHT + shadow = OUT + overlay_file = "assets/checkbox-unchecked-hover.png" + overlay_stretch = FALSE + } + + image { + function = CHECK + state = ACTIVE + shadow = OUT + overlay_file = "assets/checkbox-unchecked-active.png" + overlay_stretch = FALSE + } + + image { + function = CHECK + state = SELECTED + shadow = OUT + overlay_file = "assets/checkbox-unchecked.png" + overlay_stretch = FALSE + } + + image { + function = CHECK + state = INSENSITIVE + shadow = OUT + overlay_file = "assets/checkbox-unchecked-disabled.png" + overlay_stretch = FALSE + } + + image { + function = CHECK + state = NORMAL + shadow = IN + overlay_file = "assets/checkbox-checked.png" + overlay_stretch = FALSE + } + + image { + function = CHECK + state = PRELIGHT + shadow = IN + overlay_file = "assets/checkbox-checked-hover.png" + overlay_stretch = FALSE + } + + image { + function = CHECK + state = ACTIVE + shadow = IN + overlay_file = "assets/checkbox-checked-active.png" + overlay_stretch = FALSE + } + + image { + function = CHECK + state = SELECTED + shadow = IN + overlay_file = "assets/checkbox-checked.png" + overlay_stretch = FALSE + } + + image { + function = CHECK + state = INSENSITIVE + shadow = IN + overlay_file = "assets/checkbox-checked-disabled.png" + overlay_stretch = FALSE + } + + image { + function = CHECK + state = NORMAL + shadow = ETCHED_IN + overlay_file = "assets/checkbox-mixed.png" + overlay_stretch = FALSE + } + + image { + function = CHECK + state = PRELIGHT + shadow = ETCHED_IN + overlay_file = "assets/checkbox-mixed-hover.png" + overlay_stretch = FALSE + } + + image { + function = CHECK + state = ACTIVE + shadow = ETCHED_IN + overlay_file = "assets/checkbox-mixed-active.png" + overlay_stretch = FALSE + } + + image { + function = CHECK + state = SELECTED + shadow = ETCHED_IN + overlay_file = "assets/checkbox-mixed.png" + overlay_stretch = FALSE + } + + image { + function = CHECK + state = INSENSITIVE + shadow = ETCHED_IN + overlay_file = "assets/checkbox-mixed-disabled.png" + overlay_stretch = FALSE + } + + ################# + # Radio Buttons # + ################# + + image { + function = OPTION + state = NORMAL + shadow = OUT + overlay_file = "assets/radio-unchecked.png" + overlay_stretch = FALSE + } + + image { + function = OPTION + state = PRELIGHT + shadow = OUT + overlay_file = "assets/radio-unchecked-hover.png" + overlay_stretch = FALSE + } + + image { + function = OPTION + state = ACTIVE + shadow = OUT + overlay_file = "assets/radio-unchecked-active.png" + overlay_stretch = FALSE + } + + image { + function = OPTION + state = SELECTED + shadow = OUT + overlay_file = "assets/radio-unchecked.png" + overlay_stretch = FALSE + } + + image { + function = OPTION + state = INSENSITIVE + shadow = OUT + overlay_file = "assets/radio-unchecked-disabled.png" + overlay_stretch = FALSE + } + + image { + function = OPTION + state = NORMAL + shadow = IN + overlay_file = "assets/radio-checked.png" + overlay_stretch = FALSE + } + + image { + function = OPTION + state = PRELIGHT + shadow = IN + overlay_file = "assets/radio-checked-hover.png" + overlay_stretch = FALSE + } + + image { + function = OPTION + state = ACTIVE + shadow = IN + overlay_file = "assets/radio-checked-active.png" + overlay_stretch = FALSE + } + + image { + function = OPTION + state = SELECTED + shadow = IN + overlay_file = "assets/radio-checked.png" + overlay_stretch = FALSE + } + + image { + function = OPTION + state = INSENSITIVE + shadow = IN + overlay_file = "assets/radio-checked-disabled.png" + overlay_stretch = FALSE + } + + image { + function = OPTION + state = NORMAL + shadow = ETCHED_IN + overlay_file = "assets/radio-mixed.png" + overlay_stretch = FALSE + } + + image { + function = OPTION + state = PRELIGHT + shadow = ETCHED_IN + overlay_file = "assets/radio-mixed-hover.png" + overlay_stretch = FALSE + } + + image { + function = OPTION + state = ACTIVE + shadow = ETCHED_IN + overlay_file = "assets/radio-mixed-active.png" + overlay_stretch = FALSE + } + + image { + function = OPTION + state = SELECTED + shadow = ETCHED_IN + overlay_file = "assets/radio-mixed.png" + overlay_stretch = FALSE + } + + image { + function = OPTION + state = INSENSITIVE + shadow = ETCHED_IN + overlay_file = "assets/radio-mixed-disabled.png" + overlay_stretch = FALSE + } + + ########## + # Arrows # + ########## + + # Overrides + + # Disable arrows in spinbuttons + image { + function = ARROW + detail = "spinbutton" + } + + # Disable arrows for qt in scrollbars + + image { + function = ARROW + detail = "vscrollbar" + } + + image { + function = ARROW + detail = "hscrollbar" + } + + # Menu arrows + + image { + function = ARROW + state = NORMAL + detail = "menuitem" + overlay_file = "assets/pan-left.png" + overlay_stretch = FALSE + arrow_direction = LEFT + } + + image { + function = ARROW + state = PRELIGHT + detail = "menuitem" + overlay_file = "assets/pan-left.png" + overlay_stretch = FALSE + arrow_direction = LEFT + } + + image { + function = ARROW + state = INSENSITIVE + detail = "menuitem" + overlay_file = "assets/pan-left-disabled.png" + overlay_stretch = FALSE + arrow_direction = LEFT + } + + image { + function = ARROW + state = NORMAL + detail = "menuitem" + overlay_file = "assets/pan-right.png" + overlay_stretch = FALSE + arrow_direction = RIGHT + } + + image { + function = ARROW + state = PRELIGHT + detail = "menuitem" + overlay_file = "assets/pan-right.png" + overlay_stretch = FALSE + arrow_direction = RIGHT + } + + image { + function = ARROW + state = INSENSITIVE + detail = "menuitem" + overlay_file = "assets/pan-right-disabled.png" + overlay_stretch = FALSE + arrow_direction = RIGHT + } + + image { + function = ARROW + state = INSENSITIVE + detail = "menu_scroll_arrow_up" + overlay_file = "assets/pan-up-disabled.png" + overlay_stretch = FALSE + } + + image { + function = ARROW + detail = "menu_scroll_arrow_up" + overlay_file = "assets/pan-up.png" + overlay_stretch = FALSE + } + + image { + function = ARROW + state = INSENSITIVE + detail = "menu_scroll_arrow_down" + overlay_file = "assets/pan-down-disabled.png" + overlay_stretch = FALSE + } + + image { + function = ARROW + detail = "menu_scroll_arrow_down" + overlay_file = "assets/pan-down.png" + overlay_stretch = FALSE + } + + # Regular arrows + + image { + function = ARROW + state = NORMAL + overlay_file = "assets/pan-up-alt.png" + overlay_stretch = FALSE + arrow_direction = UP + } + + image { + function = ARROW + state = PRELIGHT + overlay_file = "assets/pan-up.png" + overlay_stretch = FALSE + arrow_direction = UP + } + + image { + function = ARROW + state = ACTIVE + overlay_file = "assets/pan-up.png" + overlay_stretch = FALSE + arrow_direction = UP + } + + image { + function = ARROW + state = INSENSITIVE + overlay_file = "assets/pan-up-alt-disabled.png" + overlay_stretch = FALSE + arrow_direction = UP + } + + image { + function = ARROW + state = NORMAL + overlay_file = "assets/pan-down-alt.png" + overlay_stretch = FALSE + arrow_direction = DOWN + } + + image { + function = ARROW + state = PRELIGHT + overlay_file = "assets/pan-down.png" + overlay_stretch = FALSE + arrow_direction = DOWN + } + + image { + function = ARROW + state = ACTIVE + overlay_file = "assets/pan-down.png" + overlay_stretch = FALSE + arrow_direction = DOWN + } + + image { + function = ARROW + state = INSENSITIVE + overlay_file = "assets/pan-down-alt-disabled.png" + overlay_stretch = FALSE + arrow_direction = DOWN + } + + image { + function = ARROW + state = NORMAL + overlay_file = "assets/pan-left-alt.png" + overlay_stretch = FALSE + arrow_direction = LEFT + } + + image { + function = ARROW + state = PRELIGHT + overlay_file = "assets/pan-left.png" + overlay_stretch = FALSE + arrow_direction = LEFT + } + + image { + function = ARROW + state = ACTIVE + overlay_file = "assets/pan-left.png" + overlay_stretch = FALSE + arrow_direction = LEFT + } + + image { + function = ARROW + state = INSENSITIVE + overlay_file = "assets/pan-left-alt-disabled.png" + overlay_stretch = FALSE + arrow_direction = LEFT + } + + image { + function = ARROW + state = NORMAL + overlay_file = "assets/pan-right-alt.png" + overlay_stretch = FALSE + arrow_direction = RIGHT + } + + image { + function = ARROW + state = PRELIGHT + overlay_file = "assets/pan-right.png" + overlay_stretch = FALSE + arrow_direction = RIGHT + } + + image { + function = ARROW + state = ACTIVE + overlay_file = "assets/pan-right.png" + overlay_stretch = FALSE + arrow_direction = RIGHT + } + + image { + function = ARROW + state = INSENSITIVE + overlay_file = "assets/pan-right-alt-disabled.png" + overlay_stretch = FALSE + arrow_direction = RIGHT + } + + ###################### + # Option Menu Arrows # + ###################### + + image { + function = TAB + state = NORMAL + overlay_file = "assets/pan-down-alt.png" + overlay_stretch = FALSE + } + + image { + function = TAB + state = PRELIGHT + overlay_file = "assets/pan-down.png" + overlay_stretch = FALSE + } + + image { + function = TAB + state = ACTIVE + overlay_file = "assets/pan-down.png" + overlay_stretch = FALSE + } + + image { + function = TAB + state = INSENSITIVE + overlay_file = "assets/pan-down-alt-disabled.png" + overlay_stretch = FALSE + } + + ######### + # Lines # + ######### + + image { + function = VLINE + file = "assets/border.png" + border = {1, 0, 0, 0} + } + + image { + function = HLINE + file = "assets/border.png" + border = {0, 0, 1, 0} + } + + ######### + # Focus # + ######### + + image { + function = FOCUS + file = "assets/focus.png" + border = {5, 5, 5, 5} # Super strange, {4, 4, 4, 4} does not work properly... + stretch = TRUE + } + + ########### + # Handles # + ########### + + image { + function = HANDLE + detail = "handlebox" + overlay_file = "assets/handle-vert.png" + overlay_stretch = FALSE + } + + image { + function = HANDLE + state = NORMAL + overlay_file = "assets/handle-horz.png" + overlay_stretch = FALSE + orientation = HORIZONTAL + } + + image { + function = HANDLE + state = PRELIGHT + overlay_file = "assets/handle-horz-hover.png" + overlay_stretch = FALSE + orientation = HORIZONTAL + } + + image { + function = HANDLE + state = ACTIVE + overlay_file = "assets/handle-horz-active.png" + overlay_stretch = FALSE + orientation = HORIZONTAL + } + + image { + function = HANDLE + state = NORMAL + overlay_file = "assets/handle-vert.png" + overlay_stretch = FALSE + orientation = VERTICAL + } + + image { + function = HANDLE + state = PRELIGHT + overlay_file = "assets/handle-vert-hover.png" + overlay_stretch = FALSE + orientation = VERTICAL + } + + image { + function = HANDLE + state = ACTIVE + overlay_file = "assets/handle-vert-active.png" + overlay_stretch = FALSE + orientation = VERTICAL + } + + image { + function = RESIZE_GRIP + } + + ############# + # Expanders # + ############# + + image { + function = EXPANDER + expander_style = EXPANDED + state = NORMAL + file = "assets/pan-down-alt.png" + } + + image { + function = EXPANDER + expander_style = EXPANDED + state = PRELIGHT + file = "assets/pan-down.png" + } + + image { + function = EXPANDER + expander_style = EXPANDED + state = ACTIVE + file = "assets/pan-down.png" + } + + image { + function = EXPANDER + expander_style = EXPANDED + state = INSENSITIVE + file = "assets/pan-down-alt-disabled.png" + } + + # LTR + + image { + function = EXPANDER + expander_style = COLLAPSED + state = NORMAL + file = "assets/pan-right-alt.png" + direction = LTR + } + + image { + function = EXPANDER + expander_style = COLLAPSED + state = PRELIGHT + file = "assets/pan-right.png" + direction = LTR + } + + image { + function = EXPANDER + expander_style = COLLAPSED + state = ACTIVE + file = "assets/pan-right.png" + direction = LTR + } + + image { + function = EXPANDER + expander_style = COLLAPSED + state = INSENSITIVE + file = "assets/pan-right-alt-disabled.png" + direction = LTR + } + + image { + function = EXPANDER + expander_style = SEMI_COLLAPSED + file = "assets/pan-right-semi.png" + direction = LTR + } + + image { + function = EXPANDER + expander_style = SEMI_EXPANDED + file = "assets/pan-right-semi.png" + direction = LTR + } + + # RTL + + image { + function = EXPANDER + expander_style = COLLAPSED + state = NORMAL + file = "assets/pan-left-alt.png" + direction = RTL + } + + image { + function = EXPANDER + expander_style = COLLAPSED + state = PRELIGHT + file = "assets/pan-left.png" + direction = RTL + } + + image { + function = EXPANDER + expander_style = COLLAPSED + state = ACTIVE + file = "assets/pan-left.png" + direction = RTL + } + + image { + function = EXPANDER + expander_style = COLLAPSED + state = INSENSITIVE + file = "assets/pan-left-alt-disabled.png" + direction = RTL + } + + image { + function = EXPANDER + expander_style = SEMI_COLLAPSED + file = "assets/pan-left-semi.png" + direction = RTL + } + + image { + function = EXPANDER + expander_style = SEMI_EXPANDED + file = "assets/pan-left-semi.png" + direction = RTL + } + + ############# + # Notebooks # + ############# + + # Left + + image { + function = EXTENSION + state = NORMAL + file = "assets/tab.png" + border = {0, 1, 0, 0} + stretch = TRUE + gap_side = RIGHT + } + + image { + function = EXTENSION + gap_side = RIGHT + } + + # Right + + image { + function = EXTENSION + state = NORMAL + file = "assets/tab.png" + border = {1, 0, 0, 0} + stretch = TRUE + gap_side = LEFT + } + + image { + function = EXTENSION + gap_side = LEFT + } + + # Up + + image { + function = EXTENSION + state = NORMAL + file = "assets/tab.png" + border = {0, 0, 0, 1} + stretch = TRUE + gap_side = BOTTOM + } + + image { + function = EXTENSION + gap_side = BOTTOM + } + + # Down + + image { + function = EXTENSION + state = NORMAL + file = "assets/tab.png" + border = {0, 0, 1, 0} + stretch = TRUE + gap_side = TOP + } + + image { + function = EXTENSION + gap_side = TOP + } + + # Inner frame + + image { + function = BOX_GAP + detail = "notebook" + file = "assets/frame-notebook.png" + border = {1, 1, 1, 1} + stretch = TRUE + gap_file = "assets/tab.png" + gap_border = {1, 0, 0, 0} + gap_side = LEFT + } + + image { + function = BOX_GAP + detail = "notebook" + file = "assets/frame-notebook.png" + border = {1, 1, 1, 1} + stretch = TRUE + gap_file = "assets/tab.png" + gap_border = {0, 1, 0, 0} + gap_side = RIGHT + } + + image { + function = BOX_GAP + detail = "notebook" + file = "assets/frame-notebook.png" + border = {1, 1, 1, 1} + stretch = TRUE + gap_file = "assets/tab.png" + gap_border = {0, 0, 1, 0} + gap_side = TOP + } + + image { + function = BOX_GAP + detail = "notebook" + file = "assets/frame-notebook.png" + border = {1, 1, 1, 1} + stretch = TRUE + gap_file = "assets/tab.png" + gap_border = {0, 0, 0, 1} + gap_side = BOTTOM + } + + # Standalone frame + image { + function = BOX + detail = "notebook" + file = "assets/frame-notebook.png" + border = {1, 1, 1, 1} + stretch = TRUE + } + + ############## + # Scrollbars # + ############## + + image { + function = BOX + detail = "trough" + file = "assets/scrollbar-horz-trough.png" + border = {0, 0, 1, 0} + orientation = HORIZONTAL + } + + image { + function = BOX + detail = "trough" + file = "assets/scrollbar-vert-ltr-trough.png" + border = {1, 0, 0, 0} + orientation = VERTICAL + direction = LTR + } + + image { + function = BOX + detail = "trough" + file = "assets/scrollbar-vert-rtl-trough.png" + border = {0, 1, 0, 0} + orientation = VERTICAL + direction = RTL + } + + # Horizontal sliders + + image { + function = SLIDER + state = NORMAL + detail = "slider" + file = "assets/scrollbar-horz-slider.png" + border = {8, 8, 9, 8 } + stretch = TRUE + orientation = HORIZONTAL + } + + image { + function = SLIDER + state = PRELIGHT + detail = "slider" + file = "assets/scrollbar-horz-slider-hover.png" + border = {8, 8, 9, 8 } + stretch = TRUE + orientation = HORIZONTAL + } + + image { + function = SLIDER + state = ACTIVE + detail = "slider" + file = "assets/scrollbar-horz-slider-active.png" + border = {8, 8, 9, 8 } + stretch = TRUE + orientation = HORIZONTAL + } + + image { + function = SLIDER + state = INSENSITIVE + detail = "slider" + file = "assets/scrollbar-horz-slider-disabled.png" + border = {8, 8, 9, 8 } + stretch = TRUE + orientation = HORIZONTAL + } + + # Vertical sliders + + image { + function = SLIDER + state = NORMAL + detail = "slider" + file = "assets/scrollbar-vert-ltr-slider.png" + border = {9, 8, 8, 8} + stretch = TRUE + orientation = VERTICAL + direction = LTR + } + + image { + function = SLIDER + state = PRELIGHT + detail = "slider" + file = "assets/scrollbar-vert-ltr-slider-hover.png" + border = {9, 8, 8, 8} + stretch = TRUE + orientation = VERTICAL + direction = LTR + } + + image { + function = SLIDER + state = ACTIVE + detail = "slider" + file = "assets/scrollbar-vert-ltr-slider-active.png" + border = {9, 8, 8, 8} + stretch = TRUE + orientation = VERTICAL + direction = LTR + } + + image { + function = SLIDER + state = INSENSITIVE + detail = "slider" + file = "assets/scrollbar-vert-ltr-slider-disabled.png" + border = {9, 8, 8, 8} + stretch = TRUE + orientation = VERTICAL + direction = LTR + } + + # RTL + + image { + function = SLIDER + state = NORMAL + detail = "slider" + file = "assets/scrollbar-vert-rtl-slider.png" + border = {8, 9, 8, 8} + stretch = TRUE + orientation = VERTICAL + direction = RTL + } + + image { + function = SLIDER + state = PRELIGHT + detail = "slider" + file = "assets/scrollbar-vert-rtl-slider-hover.png" + border = {8, 9, 8, 8} + stretch = TRUE + orientation = VERTICAL + direction = RTL + } + + image { + function = SLIDER + state = ACTIVE + detail = "slider" + file = "assets/scrollbar-vert-rtl-slider-active.png" + border = {8, 9, 8, 8} + stretch = TRUE + orientation = VERTICAL + direction = RTL + } + + image { + function = SLIDER + state = INSENSITIVE + detail = "slider" + file = "assets/scrollbar-vert-rtl-slider-disabled.png" + border = {8, 9, 8, 8} + stretch = TRUE + orientation = VERTICAL + direction = RTL + } + + ########## + # Scales # + ########## + + # Troughs, overrided later on. We set them here too because some widgets + # don't specify their orientation. + + image { + function = BOX + detail = "trough-upper" + file = "assets/scale-horz-trough.png" + border = {6, 6, 0, 0} + stretch = TRUE + orientation = HORIZONTAL + } + + image { + function = BOX + state = INSENSITIVE + detail = "trough-upper" + file = "assets/scale-horz-trough-disabled.png" + border = {6, 6, 0, 0} + stretch = TRUE + orientation = HORIZONTAL + } + + image { + function = BOX + detail = "trough-lower" + file = "assets/scale-horz-trough-active.png" + border = {6, 6, 0, 0} + stretch = TRUE + orientation = HORIZONTAL + } + + image { + function = BOX + state = INSENSITIVE + detail = "trough-lower" + file = "assets/scale-horz-trough-disabled.png" + border = {6, 6, 0, 0} + stretch = TRUE + orientation = HORIZONTAL + } + + image { + function = BOX + detail = "trough-upper" + file = "assets/scale-vert-trough.png" + border = {0, 0, 6, 6} + stretch = TRUE + orientation = VERTICAL + } + + image { + function = BOX + state = INSENSITIVE + detail = "trough-upper" + file = "assets/scale-vert-trough-disabled.png" + border = {0, 0, 6, 6} + stretch = TRUE + orientation = VERTICAL + } + + image { + function = BOX + detail = "trough-lower" + file = "assets/scale-vert-trough-active.png" + border = {0, 0, 6, 6} + stretch = TRUE + orientation = VERTICAL + } + + image { + function = BOX + state = INSENSITIVE + detail = "trough-lower" + file = "assets/scale-vert-trough-disabled.png" + border = {0, 0, 6, 6} + stretch = TRUE + orientation = VERTICAL + } + + # Sliders + + image { + function = SLIDER + state = NORMAL + detail = "hscale" + file = "assets/scale-slider.png" + } + + image { + function = SLIDER + state = PRELIGHT + detail = "hscale" + file = "assets/scale-slider-hover.png" + } + + image { + function = SLIDER + state = ACTIVE + detail = "hscale" + file = "assets/scale-slider-active.png" + } + + image { + function = SLIDER + state = INSENSITIVE + detail = "hscale" + file = "assets/scale-slider-disabled.png" + } + + image { + function = SLIDER + state = NORMAL + detail = "vscale" + file = "assets/scale-slider.png" + } + + image { + function = SLIDER + state = PRELIGHT + detail = "vscale" + file = "assets/scale-slider-hover.png" + } + + image { + function = SLIDER + state = ACTIVE + detail = "vscale" + file = "assets/scale-slider-active.png" + } + + image { + function = SLIDER + state = INSENSITIVE + detail = "vscale" + file = "assets/scale-slider-disabled.png" + } + + ########### + # Menubar # + ########### + + image { + function = BOX + detail = "menubar" + file = "assets/border.png" + border = {0, 0, 0, 1} + } + + ######### + # Menus # + ######### + + image { + function = BOX + state = PRELIGHT + detail = "menu_scroll_arrow_up" + file = "assets/border.png" + } + + image { + function = BOX + detail = "menu_scroll_arrow_up" + file = "assets/border.png" + border = {0, 0, 0, 1} + } + + image { + function = BOX + state = PRELIGHT + detail = "menu_scroll_arrow_down" + file = "assets/border.png" + } + + image { + function = BOX + detail = "menu_scroll_arrow_down" + file = "assets/border.png" + border = {0, 0, 1, 0} + } + + ########### + # Entries # + ########### + + image { + function = SHADOW + state = ACTIVE + detail = "entry" + file = "assets/entry-active.png" + border = {6, 6, 6, 6} + stretch = TRUE + } + + image { + function = SHADOW + state = INSENSITIVE + detail = "entry" + file = "assets/entry-disabled.png" + border = {6, 6, 6, 6} + stretch = TRUE + } + + image { + function = SHADOW + detail = "entry" + file = "assets/entry.png" + border = {6, 6, 6, 6} + stretch = TRUE + } + + image { + function = FLAT_BOX + state = ACTIVE + detail = "entry_bg" + file = "assets/entry-background.png" + } + + image { + function = FLAT_BOX + state = INSENSITIVE + detail = "entry_bg" + file = "assets/entry-background-disabled.png" + } + + image { + function = FLAT_BOX + detail = "entry_bg" + file = "assets/entry-background.png" + } + + ######### + # Spins # + ######### + + # Spin-Up LTR + + image { + function = BOX + state = NORMAL + detail = "spinbutton_up" + file = "assets/spin-ltr-up.png" + border = {0, 8, 8, 0} + stretch = TRUE + overlay_file = "assets/pan-up-alt.png" + overlay_stretch = FALSE + direction = LTR + } + + image { + function = BOX + state = PRELIGHT + detail = "spinbutton_up" + file = "assets/spin-ltr-up-hover.png" + border = {0, 8, 8, 0} + stretch = TRUE + overlay_file = "assets/pan-up.png" + overlay_stretch = FALSE + direction = LTR + } + + image { + function = BOX + state = ACTIVE + detail = "spinbutton_up" + file = "assets/spin-ltr-up-active.png" + border = {0, 8, 8, 0} + stretch = TRUE + overlay_file = "assets/pan-up.png" + overlay_stretch = FALSE + direction = LTR + } + + image { + function = BOX + state = INSENSITIVE + detail = "spinbutton_up" + file = "assets/spin-ltr-up-disabled.png" + border = {0, 8, 8, 0} + stretch = TRUE + overlay_file = "assets/pan-up-alt-disabled.png" + overlay_stretch = FALSE + direction = LTR + } + + # Spin-Up RTL + + image { + function = BOX + state = NORMAL + detail = "spinbutton_up" + file = "assets/spin-rtl-up.png" + border = {8, 0, 8, 0} + stretch = TRUE + overlay_file = "assets/pan-up-alt.png" + overlay_stretch = FALSE + direction = RTL + } + + image { + function = BOX + state = PRELIGHT + detail = "spinbutton_up" + file = "assets/spin-rtl-up-hover.png" + border = {8, 0, 8, 0} + stretch = TRUE + overlay_file = "assets/pan-up.png" + overlay_stretch = FALSE + direction = RTL + } + + image { + function = BOX + state = ACTIVE + detail = "spinbutton_up" + file = "assets/spin-rtl-up-hover.png" + border = {8, 0, 8, 0} + stretch = TRUE + overlay_file = "assets/pan-up.png" + overlay_stretch = FALSE + direction = RTL + } + + image { + function = BOX + state = INSENSITIVE + detail = "spinbutton_up" + file = "assets/spin-rtl-up-disabled.png" + border = {8, 0, 8, 0} + stretch = TRUE + overlay_file = "assets/pan-up-alt-disabled.png" + overlay_stretch = FALSE + direction = RTL + } + + # Spin-Down LTR + + image { + function = BOX + state = NORMAL + detail = "spinbutton_down" + file = "assets/spin-ltr-down.png" + border = {0, 8, 0, 8} + stretch = TRUE + overlay_file = "assets/pan-down-alt.png" + overlay_stretch = FALSE + direction = LTR + } + + image { + function = BOX + state = PRELIGHT + detail = "spinbutton_down" + file = "assets/spin-ltr-down-hover.png" + border = {0, 8, 0, 8} + stretch = TRUE + overlay_file = "assets/pan-down.png" + overlay_stretch = FALSE + direction = LTR + } + + image { + function = BOX + state = ACTIVE + detail = "spinbutton_down" + file = "assets/spin-ltr-down-active.png" + border = {0, 8, 0, 8} + stretch = TRUE + overlay_file = "assets/pan-down.png" + overlay_stretch = FALSE + direction = LTR + } + + image { + function = BOX + state = INSENSITIVE + detail = "spinbutton_down" + file = "assets/spin-ltr-down-disabled.png" + border = {0, 8, 0, 8} + stretch = TRUE + overlay_file = "assets/pan-down-alt-disabled.png" + overlay_stretch = FALSE + direction = LTR + } + + # Spin-Down RTL + + image { + function = BOX + state = NORMAL + detail = "spinbutton_down" + file = "assets/spin-rtl-down.png" + border = {8, 0, 0, 8} + stretch = TRUE + overlay_file = "assets/pan-down-alt.png" + overlay_stretch = FALSE + direction = RTL + } + + image { + function = BOX + state = PRELIGHT + detail = "spinbutton_down" + file = "assets/spin-rtl-down-hover.png" + border = {8, 0, 0, 8} + stretch = TRUE + overlay_file = "assets/pan-down.png" + overlay_stretch = FALSE + direction = RTL + } + + image { + function = BOX + state = ACTIVE + detail = "spinbutton_down" + file = "assets/spin-rtl-down-active.png" + border = {8, 0, 0, 8} + stretch = TRUE + overlay_file = "assets/pan-down.png" + overlay_stretch = FALSE + direction = RTL + } + + image { + function = BOX + state = INSENSITIVE + detail = "spinbutton_down" + file = "assets/spin-rtl-down-disabled.png" + border = {8, 0, 0, 8} + stretch = TRUE + overlay_file = "assets/pan-down-alt-disabled.png" + overlay_stretch = FALSE + direction = RTL + } + + ############## + # Scrollbars # + ############## + + image { + function = BOX + detail = "bar" + file = "assets/progressbar-progress.png" + stretch = TRUE + border = {0, 0, 0, 0} + orientation = HORIZONTAL + } + + image { + function = BOX + detail = "bar" + file = "assets/progressbar-progress.png" + stretch = TRUE + border = {0, 0, 0, 0} + orientation = VERTICAL + } + + ############# + # Treeviews # + ############# + + # Disable active the column highlight + # We need to match specific cells or we break stuff + # Looking at you deadbeef + + image { + function = FLAT_BOX + detail = "cell_even_sorted" + state = NORMAL + } + + image { + function = FLAT_BOX + detail = "cell_odd_sorted" + state = NORMAL + } + + # Disable all the other shadows + # This prevents the Raleigh effect + image { + function = SHADOW + } + } +} + +style "menubar" { + bg[NORMAL] = @titlebar_bg_color + fg[NORMAL] = mix(0.7, @titlebar_fg_color, @titlebar_bg_color) + fg[PRELIGHT] = @titlebar_fg_color + fg[INSENSITIVE] = mix(0.3, @titlebar_fg_color, @titlebar_bg_color) + bg[INSENSITIVE] = @bg_color + # Needed to fix Firefox's menubar text + bg[SELECTED] = mix(0.12, @titlebar_fg_color, @titlebar_bg_color) + fg[SELECTED] = @titlebar_fg_color +} + +style "menubar_item" { + xthickness = 3 + ythickness = 4 + + fg[NORMAL] = mix(0.7, @titlebar_fg_color, @titlebar_bg_color) + bg[PRELIGHT] = mix(0.12, @titlebar_fg_color, @titlebar_bg_color) + fg[PRELIGHT] = @titlebar_fg_color + fg[INSENSITIVE] = mix(0.3, @titlebar_fg_color, @titlebar_bg_color) +} + +style "menu" { + xthickness = 0 + ythickness = 0 + + bg[NORMAL] = @menu_color + bg[INSENSITIVE] = @menu_color + bg[PRELIGHT] = @menu_color + bg[SELECTED] = mix(0.08, @fg_color, @menu_color) +} + +style "menu_item" { + xthickness = 4 + ythickness = 4 + + bg[PRELIGHT] = mix(0.08, @fg_color, @menu_color) + fg[PRELIGHT] = @fg_color + # Chromium uses this setting + bg[SELECTED] = mix(0.08, @fg_color, @menu_color) + text[SELECTED] = @fg_color + # Some widgets use text, we need to handle that + text[NORMAL] = @fg_color + text[PRELIGHT] = @fg_color + + # Unfortunately we can't tell regular and menu checks/radios apart + # Without the heirarchy + engine "pixmap" { + + ################# + # Check Buttons # + ################# + + image { + function = CHECK + state = NORMAL + shadow = OUT + overlay_file = "assets/menu-checkbox-unchecked.png" + overlay_stretch = FALSE + } + + image { + function = CHECK + state = PRELIGHT + shadow = OUT + overlay_file = "assets/menu-checkbox-unchecked.png" + overlay_stretch = FALSE + } + + image { + function = CHECK + state = ACTIVE + shadow = OUT + overlay_file = "assets/menu-checkbox-unchecked.png" + overlay_stretch = FALSE + } + + image { + function = CHECK + state = INSENSITIVE + shadow = OUT + overlay_file = "assets/menu-checkbox-unchecked-disabled.png" + overlay_stretch = FALSE + } + + image { + function = CHECK + state = NORMAL + shadow = IN + overlay_file = "assets/menu-checkbox-checked.png" + overlay_stretch = FALSE + } + + image { + function = CHECK + state = PRELIGHT + shadow = IN + overlay_file = "assets/menu-checkbox-checked.png" + overlay_stretch = FALSE + } + + image { + function = CHECK + state = ACTIVE + shadow = IN + overlay_file = "assets/menu-checkbox-checked.png" + overlay_stretch = FALSE + } + + image { + function = CHECK + state = INSENSITIVE + shadow = IN + overlay_file = "assets/menu-checkbox-checked-disabled.png" + overlay_stretch = FALSE + } + + image { + function = CHECK + state = NORMAL + shadow = ETCHED_IN + overlay_file = "assets/menu-checkbox-mixed.png" + overlay_stretch = FALSE + } + + image { + function = CHECK + state = PRELIGHT + shadow = ETCHED_IN + overlay_file = "assets/menu-checkbox-mixed.png" + overlay_stretch = FALSE + } + + image { + function = CHECK + state = ACTIVE + shadow = ETCHED_IN + overlay_file = "assets/menu-checkbox-mixed.png" + overlay_stretch = FALSE + } + + image { + function = CHECK + state = INSENSITIVE + shadow = ETCHED_IN + overlay_file = "assets/menu-checkbox-mixed-disabled.png" + overlay_stretch = FALSE + } + + ################# + # Radio Buttons # + ################# + + image { + function = OPTION + state = NORMAL + shadow = OUT + overlay_file = "assets/menu-radio-unchecked.png" + overlay_stretch = FALSE + } + + image { + function = OPTION + state = PRELIGHT + shadow = OUT + overlay_file = "assets/menu-radio-unchecked.png" + overlay_stretch = FALSE + } + + image { + function = OPTION + state = ACTIVE + shadow = OUT + overlay_file = "assets/menu-radio-unchecked.png" + overlay_stretch = FALSE + } + + image { + function = OPTION + state = INSENSITIVE + shadow = OUT + overlay_file = "assets/menu-radio-unchecked-disabled.png" + overlay_stretch = FALSE + } + + image { + function = OPTION + state = NORMAL + shadow = IN + overlay_file = "assets/menu-radio-checked.png" + overlay_stretch = FALSE + } + + image { + function = OPTION + state = PRELIGHT + shadow = IN + overlay_file = "assets/menu-radio-checked.png" + overlay_stretch = FALSE + } + + image { + function = OPTION + state = ACTIVE + shadow = IN + overlay_file = "assets/menu-radio-checked.png" + overlay_stretch = FALSE + } + + image { + function = OPTION + state = INSENSITIVE + shadow = IN + overlay_file = "assets/menu-radio-checked-disabled.png" + overlay_stretch = FALSE + } + + image { + function = OPTION + state = NORMAL + shadow = ETCHED_IN + overlay_file = "assets/menu-radio-mixed.png" + overlay_stretch = FALSE + } + + image { + function = OPTION + state = PRELIGHT + shadow = ETCHED_IN + overlay_file = "assets/menu-radio-mixed.png" + overlay_stretch = FALSE + } + + image { + function = OPTION + state = ACTIVE + shadow = ETCHED_IN + overlay_file = "assets/menu-radio-mixed.png" + overlay_stretch = FALSE + } + + image { + function = OPTION + state = INSENSITIVE + shadow = ETCHED_IN + overlay_file = "assets/menu-radio-mixed-disabled.png" + overlay_stretch = FALSE + } + } +} + +style "separator_menu_item" { + xthickness = 0 + ythickness = 2 + + engine "pixmap" { + image { + function = BOX + file = "assets/border.png" + border = {0, 0, 0, 1} + } + } +} + +style "button_label" { + # fg[NORMAL] = mix(0.7, @fg_color, @bg_color) + # fg[INSENSITIVE] = mix(0.3, @fg_color, @bg_color) + + font_name = "Medium" +} + +style "normal_button_label" { + # fg[NORMAL] = @fg_color + # fg[INSENSITIVE] = mix(0.5, @fg_color, @bg_color) + + font_name = "Regular" +} + +style "button" { + xthickness = 6 + ythickness = 6 + + # For the sake of sanity style buttons this way + engine "pixmap" { + + ########### + # Buttons # + ########### + + image { + function = BOX + state = NORMAL + file = "assets/button.png" + border = {6, 6, 6, 6} + stretch = TRUE + } + + image { + function = BOX + state = PRELIGHT + shadow = OUT + file = "assets/button-hover.png" + border = {6, 6, 6, 6} + stretch = TRUE + } + + # Don't add hover effect on pressed buttons + image { + function = BOX + state = PRELIGHT + shadow = IN + file = "assets/button-active.png" + border = {6, 6, 6, 6} + stretch = TRUE + } + + image { + function = BOX + state = ACTIVE + file = "assets/button-active.png" + border = {6, 6, 6, 6} + stretch = TRUE + } + + image { + function = BOX + state = INSENSITIVE + file = "assets/button-disabled.png" + border = {6, 6, 6, 6} + stretch = TRUE + } + } +} + +style "link_button" { + # Disable the button effect, leave just the link + engine "pixmap" { + image { + function = BOX + } + } +} + +style "entry" { + base[NORMAL] = @bg_color + base[SELECTED] = mix (0.24, @selected_bg_color, @bg_color) + base[INSENSITIVE] = @bg_color + base[ACTIVE] = mix (0.24, @selected_bg_color, @bg_color) + + # We set this same as the border of the border of the entry + # This way there's no overlap + xthickness = 6 + ythickness = 6 +} + +style "combobox" { + xthickness = 6 + ythickness = 6 + + # This affects only the button beside an entry + GtkButton::inner-border = {0, 0, 0, 0} + + # For the sake of sanity style buttons this way + engine "pixmap" { + + ########### + # Buttons # + ########### + + image { + function = BOX + state = NORMAL + file = "assets/entry.png" + border = {6, 6, 6, 6} + stretch = TRUE + } + + image { + function = BOX + state = PRELIGHT + file = "assets/entry-hover.png" + border = {6, 6, 6, 6} + stretch = TRUE + } + + image { + function = BOX + state = ACTIVE + file = "assets/entry-active.png" + border = {6, 6, 6, 6} + stretch = TRUE + } + + image { + function = BOX + state = INSENSITIVE + file = "assets/entry-disabled.png" + border = {6, 6, 6, 6} + stretch = TRUE + } + } +} + +style "combobox_cellview" { + # text[NORMAL] = mix(0.7, @fg_color, @bg_color) + # text[INSENSITIVE] = mix(0.3, @fg_color, @bg_color) +} + +style "combobox_entry" { + # Since one side of the button is missing, we need to shift the arrow a little to the right + GtkButton::inner-border = {0, 2, 0, 0} + + base[NORMAL] = @base_color + base[ACTIVE] = @base_color + + engine "pixmap" { + + ############# + # LTR entry # + ############# + + image { + function = SHADOW + state = NORMAL + detail = "entry" + file = "assets/combo-left-entry.png" + border = {6, 6, 6, 6} + stretch = TRUE + direction = LTR + } + + image { + function = SHADOW + state = ACTIVE + detail = "entry" + file = "assets/combo-left-entry-active.png" + border = {6, 6, 6, 6} + stretch = TRUE + direction = LTR + } + + image { + function = SHADOW + state = INSENSITIVE + detail = "entry" + file = "assets/combo-left-entry-disabled.png" + border = {6, 6, 6, 6} + stretch = TRUE + direction = LTR + } + + ############# + # RTL entry # + ############# + + image { + function = SHADOW + state = NORMAL + detail = "entry" + file = "assets/combo-right-entry.png" + border = {6, 6, 6, 6} + stretch = TRUE + direction = RTL + } + + image { + function = SHADOW + state = ACTIVE + detail = "entry" + file = "assets/combo-right-entry-active.png" + border = {6, 6, 6, 6} + stretch = TRUE + direction = RTL + } + + image { + function = SHADOW + state = INSENSITIVE + detail = "entry" + file = "assets/combo-right-entry-disabled.png" + border = {6, 6, 6, 6} + stretch = TRUE + direction = RTL + } + + ############## + # LTR button # + ############## + + image { + function = BOX + state = NORMAL + detail = "button" + file = "assets/combo-right-entry.png" + border = {0, 6, 6, 6} + stretch = TRUE + direction = LTR + } + + image { + function = BOX + state = PRELIGHT + detail = "button" + file = "assets/combo-right-entry-hover.png" + border = {0, 6, 6, 6} + stretch = TRUE + direction = LTR + } + + image { + function = BOX + state = ACTIVE + detail = "button" + file = "assets/combo-right-entry-active.png" + border = {0, 6, 6, 6} + stretch = TRUE + direction = LTR + } + + image { + function = BOX + state = INSENSITIVE + detail = "button" + file = "assets/combo-right-entry-disabled.png" + border = {0, 6, 6, 6} + stretch = TRUE + direction = LTR + } + + ############## + # RTL button # + ############## + + image { + function = BOX + state = NORMAL + detail = "button" + file = "assets/combo-left-entry.png" + border = {6, 0, 6, 6} + stretch = TRUE + direction = RTL + } + + image { + function = BOX + state = PRELIGHT + detail = "button" + file = "assets/combo-left-entry-hover.png" + border = {6, 0, 6, 6} + stretch = TRUE + direction = RTL + } + + image { + function = BOX + state = ACTIVE + detail = "button" + file = "assets/combo-left-entry-active.png" + border = {6, 0, 6, 6} + stretch = TRUE + direction = RTL + } + + image { + function = BOX + state = INSENSITIVE + detail = "button" + file = "assets/combo-left-entry-disabled.png" + border = {6, 0, 6, 6} + stretch = TRUE + direction = RTL + } + } +} + +style "combo_button_padding" { + # Since one side of the button is missing, we need to shift the arrow a + # little to the right. + # This is the same thing we've done above but the combo, unlike the combobox, + # uses padding the same way as a button. + GtkButton::inner-border = {3, 6, 3, 3} +} + +style "notebook" { + xthickness = 3 + ythickness = 3 + bg[NORMAL] = @base_color +} + +style "notebook_tab_label" { + fg[ACTIVE] = mix(0.7, @fg_color, @bg_color) + + font_name = "Medium" +} + +style "notebook_viewport" { + bg[NORMAL] = @base_color +} + +style "notebook_bg" { + bg[NORMAL] = @base_color + bg[PRELIGHT] = @base_color + bg[INSENSITIVE] = @base_color +} + +style "notebook_entry" { + base[NORMAL] = @base_color + base[SELECTED] = mix (0.24, @selected_bg_color, @base_color) + base[INSENSITIVE] = @base_color + base[ACTIVE] = mix (0.24, @selected_bg_color, @base_color) +} + +style "normal_bg" { + bg[NORMAL] = @bg_color + bg[PRELIGHT] = @bg_color + bg[INSENSITIVE] = @bg_color +} + +style "normal_entry" { + base[NORMAL] = @bg_color + base[SELECTED] = mix (0.24, @selected_bg_color, @bg_color) + base[INSENSITIVE] = @bg_color + base[ACTIVE] = mix (0.24, @selected_bg_color, @bg_color) +} + +style "textview" { + bg[NORMAL] = @base_color +} + +style "scale_horz" { + engine "pixmap" { + image { + function = BOX + detail = "trough-upper" + file = "assets/scale-horz-trough.png" + border = {6, 6, 0, 0} + stretch = TRUE + } + + image { + function = BOX + detail = "trough-lower" + file = "assets/scale-horz-trough-active.png" + border = {6, 6, 0, 0} + stretch = TRUE + } + } +} + +style "scale_vert" { + engine "pixmap" { + image { + function = BOX + detail = "trough-upper" + file = "assets/scale-vert-trough.png" + border = {0, 0, 6, 6} + stretch = TRUE + } + + image { + function = BOX + detail = "trough-lower" + file = "assets/scale-vert-trough-active.png" + border = {0, 0, 6, 6} + stretch = TRUE + } + } +} + +style "progressbar" { + xthickness = 0 + ythickness = 0 + + fg[PRELIGHT] = @selected_fg_color + + engine "pixmap" { + image { + function = BOX + detail = "trough" + file = "assets/progressbar-trough.png" + border = {0, 0, 0, 0} + stretch = TRUE + orientation = HORIZONTAL + } + + image { + function = BOX + detail = "trough" + file = "assets/progressbar-trough.png" + border = {0, 0, 0, 0} + stretch = TRUE + orientation = VERTICAL + } + } +} + +style "treeview_header" { + xthickness = 2 + ythickness = 2 + + fg[NORMAL] = mix(0.7, @fg_color, @base_color) + fg[PRELIGHT] = @fg_color + + font_name = "Medium" + + GtkButton::inner-border = {4, 4, 0, 2} + + engine "pixmap" { + image { + function = BOX + state = NORMAL + file = "assets/treeview-ltr-button.png" + border = {0, 1, 0, 1} + stretch = TRUE + direction = LTR + } + + image { + function = BOX + state = PRELIGHT + file = "assets/treeview-ltr-button-hover.png" + border = {0, 1, 0, 1} + stretch = TRUE + direction = LTR + } + + image { + function = BOX + state = ACTIVE + file = "assets/treeview-ltr-button-active.png" + border = {0, 1, 0, 1} + stretch = TRUE + direction = LTR + } + + image { + function = BOX + state = NORMAL + file = "assets/treeview-rtl-button.png" + border = {1, 0, 0, 1} + stretch = TRUE + direction = RTL + } + + image { + function = BOX + state = PRELIGHT + file = "assets/treeview-rtl-button-hover.png" + border = {1, 0, 0, 1} + stretch = TRUE + direction = RTL + } + + image { + function = BOX + state = ACTIVE + file = "assets/treeview-rtl-button-active.png" + border = {1, 0, 0, 1} + stretch = TRUE + direction = RTL + } + + image { + function = ARROW + state = NORMAL + overlay_file = "assets/pan-up-alt.png" + overlay_stretch = FALSE + arrow_direction = UP + } + + image { + function = ARROW + state = PRELIGHT + overlay_file = "assets/pan-up.png" + overlay_stretch = FALSE + arrow_direction = UP + } + + image { + function = ARROW + state = ACTIVE + overlay_file = "assets/pan-up.png" + overlay_stretch = FALSE + arrow_direction = UP + } + + image { + function = ARROW + state = NORMAL + overlay_file = "assets/pan-down-alt.png" + overlay_stretch = FALSE + arrow_direction = DOWN + } + + image { + function = ARROW + state = PRELIGHT + overlay_file = "assets/pan-down.png" + overlay_stretch = FALSE + arrow_direction = DOWN + } + + image { + function = ARROW + state = ACTIVE + overlay_file = "assets/pan-down.png" + overlay_stretch = FALSE + arrow_direction = DOWN + } + } +} + +style "scrolled_window" { + engine "pixmap" { + image { + function = SHADOW + file = "assets/frame.png" + border = {1, 1, 1, 1} + stretch = TRUE + } + } +} + +style "frame" { + engine "pixmap" { + image { + function = SHADOW + shadow = NONE + } + + image { + function = SHADOW + file = "assets/frame.png" + border = {1, 1, 1, 1} + stretch = TRUE + } + + image { + function = SHADOW_GAP + file = "assets/frame.png" + border = {1, 1, 1, 1} + stretch = TRUE + gap_start_file = "assets/border.png" + gap_end_file = "assets/border.png" + } + } +} + +style "tool_button" { + GtkButton::inner-border = {2, 2, 2, 2} + + # For the sake of sanity style buttons this way + engine "pixmap" { + image { + function = BOX + state = NORMAL + file = "assets/flat-button.png" + border = {6, 6, 6, 6} + stretch = TRUE + } + + image { + function = BOX + state = PRELIGHT + shadow = OUT + file = "assets/flat-button-hover.png" + border = {6, 6, 6, 6} + stretch = TRUE + } + + # Don't add hover effect on pressed buttons + image { + function = BOX + state = PRELIGHT + shadow = IN + file = "assets/flat-button-active.png" + border = {6, 6, 6, 6} + stretch = TRUE + } + + image { + function = BOX + state = ACTIVE + file = "assets/flat-button-active.png" + border = {6, 6, 6, 6} + stretch = TRUE + } + + image { + function = BOX + state = INSENSITIVE + shadow = OUT + file = "assets/flat-button-disabled.png" + border = {6, 6, 6, 6} + stretch = TRUE + } + + image { + function = BOX + state = INSENSITIVE + shadow = IN + file = "assets/button-disabled.png" + border = {6, 6, 6, 6} + stretch = TRUE + } + } +} + +style "toolbar_separator" { + GtkWidget::wide-separators = 1 + GtkWidget::separator-width = 1 + GtkWidget::separator-height = 1 + + engine "pixmap" { + image { + function = BOX + file = "assets/border.png" + } + } +} + +style "inline_toolbar" { + # GtkToolbar::button-relief = GTK_RELIEF_NORMAL + bg[NORMAL] = @base_color + + engine "pixmap" { + image { + function = BOX + file = "assets/frame-inline.png" + border = {1, 1, 0, 1} + stretch = TRUE + } + } +} + +style "tooltip" { + xthickness = 8 + ythickness = 8 + + bg[NORMAL] = @tooltip_bg_color + fg[NORMAL] = @tooltip_fg_color + bg[SELECTED] = @tooltip_bg_color +} + +style "disable_text_shadow" { + engine "murrine" { + textstyle = 0 + } +} + +style "disable_separator" { + xthickness = 0 + ythickness = 0 + + GtkWidget::wide-separators = 1 +} + +# Default style, containing theme properties and trying to match every widget as +# much as possible, which is not only faster than trying to match every widget +# by its own but also less bug-prune and more consistent. However there is some +# widget specific stuff that needs to be taken care of, which is the point of +# every other style below. +class "GtkWidget" style "default" + +###################################### +# Override padding, style and colour # +###################################### + +class "GtkButton" style "button" +class "GtkLinkButton" style "link_button" +class "GtkEntry" style "entry" +class "GtkOldEditable" style "entry" +class "GtkNotebook" style "notebook" +class "GtkHScale" style "scale_horz" +class "GtkVScale" style "scale_vert" +class "GtkProgressBar" style "progressbar" +class "GtkScrolledWindow" style "scrolled_window" +class "GtkFrame" style "frame" +class "GtkSeparatorToolItem" style "toolbar_separator" +class "GtkMenuBar" style "menubar" +class "GtkMenu" style "menu" +class "GtkTextView" style "textview" + +# Menu and menubar items +widget_class "**" style "menu_item" +widget_class "*.*" style "menubar_item" +widget_class "**" style "separator_menu_item" + +# Treeview buttons +widget_class "***" style "treeview_header" + +# Give the file chooser toolbar a border +widget_class "**" style "inline_toolbar" + +# Fix padding on regular comboboxes +widget_class "*." style "combobox" +widget_class "*" style "combobox" + +# And disable separators on them +widget_class "*.*" style "disable_separator" +widget_class "**" style "disable_separator" +widget_class "**" style "disable_separator" + +# Join together the ComboBoxEntry entry and button +widget_class "**" style "combobox_entry" + +# Join the Combo entry and button +widget_class "**" style "combobox_entry" + +# Tweak the padding on the button a little bit because it +# uses it a bit differently +widget_class "*." style "combo_button_padding" + +# Alas we cannot do the same for ComboBoxText because there +# isn't a way to apply the style to only the comboboxes that +# have an entry inside + +# Tool buttons have different styles +widget_class "**" style "tool_button" +widget_class "**.*" style "tool_button" + +# Notebooks +widget_class "*." style "notebook_tab_label" +widget_class "*.." style "notebook_tab_label" + +# Notebooks are white, act accordingly +widget_class "**" style "notebook_entry" +widget_class "**" style "notebook_bg" +widget_class "**" style "notebook_bg" +widget_class "***" style "notebook_bg" +widget_class "**" style "notebook_bg" +widget_class "*.*" style "notebook_bg" + +# However, stuff inside eventboxes inside notebooks is grey +# again, react +widget_class "***" style "normal_entry" +widget_class "***" style "normal_bg" +widget_class "***" style "normal_bg" + +# Button labels +widget_class "*." style "button_label" + +# Normalize button labels +widget_class "*." style "normal_button_label" +widget_class "*." style "normal_button_label" + +# ComboBoxes tend to draw the button label with text[] +# instead of fg[], we need to fix that +widget_class "**" style "combobox_cellview" + +# Disable white text shadows +widget_class "*" style "disable_text_shadow" +widget_class "*" style "disable_text_shadow" + +# GTK tooltips +widget "gtk-tooltip*" style "tooltip" diff --git a/home-modules/pnx/pnx_rdp_srv-phoe3-vmdms_192-168-1-104.remmina b/home-modules/assets/pnx/pnx_rdp_srv-phoe3-vmdms_192-168-1-104.remmina similarity index 100% rename from home-modules/pnx/pnx_rdp_srv-phoe3-vmdms_192-168-1-104.remmina rename to home-modules/assets/pnx/pnx_rdp_srv-phoe3-vmdms_192-168-1-104.remmina diff --git a/home-modules/pnx/pnx_rdp_srv-phoenix-3_192-168-1-108.remmina b/home-modules/assets/pnx/pnx_rdp_srv-phoenix-3_192-168-1-108.remmina similarity index 100% rename from home-modules/pnx/pnx_rdp_srv-phoenix-3_192-168-1-108.remmina rename to home-modules/assets/pnx/pnx_rdp_srv-phoenix-3_192-168-1-108.remmina diff --git a/home-modules/pnx/pnx_rdp_srv-phoenix2_192-168-1-101.remmina b/home-modules/assets/pnx/pnx_rdp_srv-phoenix2_192-168-1-101.remmina similarity index 100% rename from home-modules/pnx/pnx_rdp_srv-phoenix2_192-168-1-101.remmina rename to home-modules/assets/pnx/pnx_rdp_srv-phoenix2_192-168-1-101.remmina diff --git a/home-modules/pnx/pnx_rdp_srv-remote_192-168-1-21.remmina b/home-modules/assets/pnx/pnx_rdp_srv-remote_192-168-1-21.remmina similarity index 100% rename from home-modules/pnx/pnx_rdp_srv-remote_192-168-1-21.remmina rename to home-modules/assets/pnx/pnx_rdp_srv-remote_192-168-1-21.remmina diff --git a/home-modules/helix.nix b/home-modules/helix.nix index b07bd0b..9d8e8f6 100644 --- a/home-modules/helix.nix +++ b/home-modules/helix.nix @@ -73,6 +73,12 @@ file-types = [ "md" "MD" ]; scope = "text."; } + # { + # name = "python"; + # transport = "stdio"; + # command = "python3"; + # args = ["-m" "debugpy.adapter"]; + # } ]; language-server = { "style-check" = { diff --git a/home-modules/hyprland.nix b/home-modules/hyprland.nix index be38292..7697c75 100755 --- a/home-modules/hyprland.nix +++ b/home-modules/hyprland.nix @@ -246,7 +246,7 @@ lib.mkIf (user != "tv") "hyprpm reload -n " "waybar " "hyprpaper -n " - "swww init" + "swww-daemon" "= /home/nx2/scripts/swww-randomize.sh" "hyprland-autoname-workspaces" "/usr/lib/polkit-kde-authentication-agent-1 " diff --git a/home-modules/pnx.nix b/home-modules/pnx.nix index f4580ae..9a3b267 100755 --- a/home-modules/pnx.nix +++ b/home-modules/pnx.nix @@ -22,9 +22,9 @@ lib.mkIf (host != "NxACE") ".vpn/ljk-pnx-pass.txt".text = secrets.pnxVpn.pass; # Remmina - ".local/share/remmina/pnx_rdp_srv-phoe3-vmdms_192-168-1-104.remmina".source = ./pnx/pnx_rdp_srv-phoe3-vmdms_192-168-1-104.remmina; - ".local/share/remmina/pnx_rdp_srv-phoenix-3_192-168-1-108.remmina".source = ./pnx/pnx_rdp_srv-phoenix-3_192-168-1-108.remmina; - ".local/share/remmina/pnx_rdp_srv-phoenix2_192-168-1-101.remmina".source = ./pnx/pnx_rdp_srv-phoenix2_192-168-1-101.remmina; - ".local/share/remmina/pnx_rdp_srv-remote_192-168-1-21.remmina".source = ./pnx/pnx_rdp_srv-remote_192-168-1-21.remmina; + ".local/share/remmina/pnx_rdp_srv-phoe3-vmdms_192-168-1-104.remmina".source = ./assets/pnx/pnx_rdp_srv-phoe3-vmdms_192-168-1-104.remmina; + ".local/share/remmina/pnx_rdp_srv-phoenix-3_192-168-1-108.remmina".source = ./assets/pnx/pnx_rdp_srv-phoenix-3_192-168-1-108.remmina; + ".local/share/remmina/pnx_rdp_srv-phoenix2_192-168-1-101.remmina".source = ./assets/pnx/pnx_rdp_srv-phoenix2_192-168-1-101.remmina; + ".local/share/remmina/pnx_rdp_srv-remote_192-168-1-21.remmina".source = ./assets/pnx/pnx_rdp_srv-remote_192-168-1-21.remmina; }; } diff --git a/home-modules/programming/python.nix b/home-modules/programming/python.nix index d81ad89..871e903 100755 --- a/home-modules/programming/python.nix +++ b/home-modules/programming/python.nix @@ -5,6 +5,8 @@ let pipdeptree requests google google-api-python-client google-auth-httplib2 google-auth-oauthlib + debugpy + black ]); in lib.mkIf (user != "tv") diff --git a/home-modules/vscode.nix b/home-modules/vscode.nix index 80e2c8a..b38d123 100755 --- a/home-modules/vscode.nix +++ b/home-modules/vscode.nix @@ -44,6 +44,12 @@ version = "2.8.0"; sha256 = "sha256-mT2P1lEdW66YkDRN6fi0rmmvvyBfXiJjAUHns8a8ipE="; } + { + name = "dancehelix"; + publisher = "silverquark"; + version = "0.5.16"; + sha256 = "sha256-oHwtlbB18ctEnfStDOpJ+2/Kq41JZog8FVhTa1/s7m0="; + } # { # name = "remote-ssh-edit"; # publisher = "ms-vscode-remote"; diff --git a/system-modules/boot.nix b/system-modules/boot.nix index dfada57..456c551 100755 --- a/system-modules/boot.nix +++ b/system-modules/boot.nix @@ -1,4 +1,4 @@ -{ config, pkgs, host, inputs, ... }: +{ config, pkgs, lib, host, inputs, ... }: let grub-theme-ascii-diana = (pkgs.fetchFromGitea { domain = "git.nx2.site"; @@ -17,14 +17,64 @@ in environment.systemPackages = with pkgs; [ sbctl ]; boot = { - lanzaboote = { + lanzaboote = + let + windows-efi-shell-fs-alias = "HD0a65535a2"; + in + { enable = true; pkiBundle = "/etc/secureboot"; + package = lib.mkForce (pkgs.writeShellApplication { + name = "lzbt"; + runtimeInputs = [ + inputs.lanzaboote.packages.x86_64-linux.tool + pkgs.coreutils + pkgs.sbctl + ]; + # https://forum.endeavouros.com/t/tutorial-add-a-systemd-boot-loader-menu-entry-for-a-windows-installation-using-a-separate-esp-partition/37431 + text = /*bash*/ '' + # execute normal lanazboote functionality + lzbt "$@" + + # Create windows.nsh file + ESP='${config.boot.loader.efi.efiSysMountPoint}' + echo "${windows-efi-shell-fs-alias}:EFI\Microsoft\Boot\Bootmgfw.efi" > "$ESP/windows.nsh" + + # cp efi-shell boot file + # systemd-boot will automatically add an entry for it + cp -f '${pkgs.edk2-uefi-shell.efi}' "$ESP/shellx64.efi" + # should exist already + mkdir -p "$ESP/loader/entries" + # sign shell file + sbctl sign -s "$ESP/shellx64.efi" + # Create windows.conf boot entry + cat << EOF > "$ESP/loader/entries/windows.conf" + title Windows-Hack + efi /shellx64.efi + options -nointerrupt -noconsolein -noconsoleout windows.nsh + EOF + ''; + }); }; loader.systemd-boot = { enable = false; # let lanzaboote install systemd-boot consoleMode = "max"; configurationLimit = 10; + # extraEntries = { + # "Windo7s-11.conf" = '' + # Windows eleven + # search --file --no-floppy --set=root /EFI/Microsoft/Boot/bootmgfw.efi + # chainloader (''${root})/EFI/Microsoft/Boot/bootmgfw.efi + # ''; + # "Firmware.conf" = '' + # Firmware + # fwsetup + # ''; + # "Shutdown.conf" = '' + # title Shutdown + # halt + # ''; + # }; }; # kernelPackages = pkgs.linuxPackages_latest; extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback ];