Update theme: testing and dangerous buttons now have slight gradient

This commit is contained in:
2024-04-04 15:07:40 -05:00
parent 67c52c84a1
commit c9c5e18d70
2 changed files with 20 additions and 4 deletions

View File

@@ -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

View File

@@ -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
}
}