Add hover styling to some objects

This commit is contained in:
Sasha Koshka 2023-08-12 15:06:02 -04:00
parent 6eacdf5ccf
commit 2bd5a4a66b

View File

@ -36,11 +36,13 @@ var outerShadow = border(0xa4afc0FF, 0xa4afc0FF, 0xa4afc0ff, 0xa4afc0ff, 0, 1
var buttonColor = hex(0xe9eaeaFF) var buttonColor = hex(0xe9eaeaFF)
var buttonColorPressed = hex(0xe3e4e4FF) var buttonColorPressed = hex(0xe3e4e4FF)
var buttonColorFocused = hex(0xe4e6e8FF) var buttonColorFocused = hex(0xe4e6e8FF)
var buttonColorHovered = hex(0xf1f3f5FF)
var dotColor = hex(0xa4b1c6FF) var dotColor = hex(0xa4b1c6FF)
var inputColor = hex(0xe3e4e4FF) var inputColor = hex(0xe3e4e4FF)
var textColor = hex(0x000000FF) var textColor = hex(0x000000FF)
var backgroundColor = hex(0xd6d6d6FF) var backgroundColor = hex(0xd6d6d6FF)
var gutterColor = hex(0xbfc6d1FF) var gutterColor = hex(0xbfc6d1FF)
var gutterColorHovered = hex(0xc5cbd6FF)
type Theme struct { } type Theme struct { }
@ -71,7 +73,8 @@ func (Theme) Apply (object tomo.Object, role theme.Role) event.Cookie {
switch role.Object { switch role.Object {
case "Button": case "Button":
mouseDown := false pressed := false
hovered := false
updateStyle := func () { updateStyle := func () {
border := []tomo.Border { border := []tomo.Border {