Skip to content

Instantly share code, notes, and snippets.

@onokatio
Created April 28, 2018 04:36
Show Gist options
  • Save onokatio/70f8710a3333f4b19f2fb2cbc76899fa to your computer and use it in GitHub Desktop.
Save onokatio/70f8710a3333f4b19f2fb2cbc76899fa to your computer and use it in GitHub Desktop.
--- main.rc.old 2018-04-20 16:06:02.000000000 +0900
+++ main.rc 2018-04-28 13:32:42.350012349 +0900
@@ -1928,59 +1928,12 @@ style "checkbutton_label" {
}
style "button" {
- xthickness = 4
- ythickness = 4
- # For the sake of sanity style buttons this way
- engine "pixmap" {
+ bg[NORMAL] = shade (1.08, @bg_color)
+ bg[PRELIGHT] = shade (1.10, @bg_color)
+ bg[ACTIVE] = shade (0.95, @bg_color)
+ bg[INSENSITIVE] = shade (0.85, @bg_color)
- ###########
- # Buttons #
- ###########
-
- image {
- function = BOX
- state = NORMAL
- file = "assets/button.png"
- border = {8, 8, 8, 8}
- stretch = TRUE
- }
-
- image {
- function = BOX
- state = PRELIGHT
- shadow = OUT
- file = "assets/button-hover.png"
- border = {8, 8, 8, 8}
- stretch = TRUE
- }
-
- # Don't add hover effect on pressed buttons
- image {
- function = BOX
- state = PRELIGHT
- shadow = IN
- file = "assets/button-active.png"
- border = {8, 8, 8, 8}
- stretch = TRUE
- }
-
- image {
- function = BOX
- state = ACTIVE
- file = "assets/button-active.png"
- border = {8, 8, 8, 8}
- stretch = TRUE
- }
-
- image {
- function = BOX
- state = INSENSITIVE
- file = "assets/button-insensitive.png"
- border = {8, 8, 8, 8}
- stretch = TRUE
- }
- }
}
style "link_button" {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment