Skip to content

Commit

Permalink
fix: Colour toolbar button in Welcome app is now a toggle (fixes #218) (
Browse files Browse the repository at this point in the history
#282)

Also made sure latched buttons are always white and not whatever the
toolbar background colour is (which doesn't look right).
  • Loading branch information
tomsci authored Feb 18, 2024
1 parent 814b087 commit 3dbfc5e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 0 deletions.
Binary file not shown.
Binary file modified examples/Scripts/Welcome.system/c/System/Apps/Welcome/Welcome.opl
Binary file not shown.
2 changes: 2 additions & 0 deletions src/opl.lua
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,8 @@ function gBUTTON(text, type, width, height, state, bmpId, maskId, layout)
end

lightGrey()
gCOLORBACKGROUND(0xFF, 0xFF, 0xFF)

if state == 0 then
gXBORDER(2, 0x84, width, height)
gMOVE(3, 3)
Expand Down

0 comments on commit 3dbfc5e

Please sign in to comment.