Created
April 28, 2018 04:36
-
-
Save onokatio/70f8710a3333f4b19f2fb2cbc76899fa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- 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