mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2025-12-15 08:42:34 +00:00
Update theme: testing and dangerous buttons now have slight gradient
This commit is contained in:
@@ -29,7 +29,7 @@ class W3DHub
|
||||
|
||||
stack(width: 0.5)
|
||||
|
||||
button "Confirm", width: 0.25, background: 0xff_800000, hover: { background: 0xff_d00000 }, active: { background: 0xff_600000, color: 0xff_ffffff } do
|
||||
button "Confirm", width: 0.25, **DANGEROUS_BUTTON do
|
||||
pop_state
|
||||
@options[:accept_callback]&.call
|
||||
end
|
||||
|
||||
22
lib/theme.rb
22
lib/theme.rb
@@ -7,12 +7,28 @@ class W3DHub
|
||||
MAX_PAGE_WIDTH = 1200
|
||||
|
||||
TESTING_BUTTON = {
|
||||
background: 0xff_ff8800,
|
||||
background: 0xff_ff8800..0xff_dd6600,
|
||||
border_color: Gosu::Color::NONE,
|
||||
hover: {
|
||||
background: 0xff_ffaa00
|
||||
background: 0xff_dd6600..0xff_bb4400,
|
||||
border_color: 0xff_ff8800,
|
||||
},
|
||||
active: {
|
||||
background: 0xff_ffec00
|
||||
background: 0xff_bb4400..0xff_dd6600,
|
||||
border_color: 0xff_ff8800
|
||||
}
|
||||
}
|
||||
|
||||
DANGEROUS_BUTTON = {
|
||||
background: 0xff_800000..0xff_600000,
|
||||
border_color: Gosu::Color::NONE,
|
||||
hover: {
|
||||
background: 0xff_600000..0xff_400000,
|
||||
border_color: 0xff_800000,
|
||||
},
|
||||
active: {
|
||||
background: 0xff_400000..0xff_600000,
|
||||
border_color: 0xff_800000
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user