Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Cannot change text color for menubar items #119

Open
Ago0495 opened this issue Aug 23, 2024 · 0 comments
Open

bug: Cannot change text color for menubar items #119

Ago0495 opened this issue Aug 23, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Ago0495
Copy link

Ago0495 commented Aug 23, 2024

Describe the bug

Foreground color for the text on a item cannot be changed when added to a Menubar Object

To Reproduce

Steps to reproduce the behavior:

local basalt = require("basalt")

local mainFrame = basalt.createFrame()
local aList = mainFrame:addMenubar()
aList:addItem("1. Entry")
aList:addItem("2. Entry",colors.yellow)
aList:addItem("3. Entry",colors.yellow,colors.green)
aList:addItem("4. Entry")
aList:setSelectionColor(colors.green, colors.red)
basalt.autoUpdate()

Expected behavior

First item colors will be default, gray background and black text
Second item will be yellow background and black text
Third item will be yellow background and black text
Selected item will have a green background and red text

the third item text should be green but defaults to the foreground color of the parent object, in this case black

Screenshots

bug

Additional context

In the code for the menubar, "Basalt/objects/Menubar.lua", lines 117 and 120, FgCol should be fgCol

Checklist

[ X] I am running the latest version.
Tick the box if you are running the latest version!

@Ago0495 Ago0495 added the bug Something isn't working label Aug 23, 2024
@Ago0495 Ago0495 changed the title bug: [TITLE] bug: Cannot change text color for menubar items Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant