mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2026-05-06 09:28:18 +00:00
Moved THEME into its own file, added safe_get_image to prevent crash if image is not present, stubbed worker and some other bits for later.
This commit is contained in:
76
lib/theme.rb
Normal file
76
lib/theme.rb
Normal file
@@ -0,0 +1,76 @@
|
||||
module W3DHubLauncher
|
||||
LARGE_PADDING = 40
|
||||
PADDING = 20
|
||||
HALF_PADDING = 10
|
||||
ALPHA_BLACK = 0x88_000000
|
||||
|
||||
FONT_LIGHT = "./media/fonts/NotoSans-Light.ttf"
|
||||
FONT_REGULAR = "./media/fonts/NotoSans-Regular.ttf"
|
||||
FONT_BOLD = "./media/fonts/NotoSans-Bold.ttf"
|
||||
FONT_BLACK = "./media/fonts/NotoSans-Black.ttf"
|
||||
|
||||
FONT_MONO = "./media/fonts/NotoSansMono-Regular.ttf"
|
||||
|
||||
CTA_BUTTON_THEME = {
|
||||
background: 0xff_1a5fb4
|
||||
}
|
||||
|
||||
THEME = {
|
||||
TextBlock: {
|
||||
text_static: true,
|
||||
font: FONT_REGULAR,
|
||||
text_shadow: true,
|
||||
text_shadow_color: 0x44_000000
|
||||
},
|
||||
Link: {
|
||||
font: FONT_REGULAR,
|
||||
color: 0xff_bbbbbb,
|
||||
hover: {
|
||||
color: 0xff_ffffff
|
||||
},
|
||||
active: {
|
||||
color: 0xff_888888
|
||||
}
|
||||
},
|
||||
Button: {
|
||||
font: FONT_BOLD,
|
||||
text_shadow: false,
|
||||
background: 0x88_5e5c64,
|
||||
border_thickness: 1,
|
||||
border_color: 0xff_000000
|
||||
},
|
||||
EditLine: {
|
||||
font: FONT_REGULAR
|
||||
},
|
||||
ListBox: {
|
||||
text_align: :left,
|
||||
text_size: 24,
|
||||
font: FONT_REGULAR,
|
||||
# background: 0xaa_000000,
|
||||
# border_color: 0xff_000000,
|
||||
# hover: {
|
||||
# background: 0xaa_222222
|
||||
# },
|
||||
# active: {
|
||||
# background: 0xaa_444444
|
||||
# }
|
||||
},
|
||||
Menu: {
|
||||
border_thickness: 1,
|
||||
border_color: 0xff_000000
|
||||
},
|
||||
MenuItem: {
|
||||
text_size: 24,
|
||||
text_align: :left,
|
||||
font: FONT_REGULAR,
|
||||
background: 0xee_000000,
|
||||
border_color: 0xaa_000000,
|
||||
hover: {
|
||||
background: 0xee_222222
|
||||
},
|
||||
active: {
|
||||
background: 0xee_444444
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
Reference in New Issue
Block a user