Closed GiveMePseudonyms closed 4 days ago
Running through this reproduction steps and I see that VBox
is not the cause of the problem...
See this code where we reset the content of it:
tabs.SetTabLocation(container.TabLocationTop)
vbox = container.NewVBox()
//vbox causes theme issues, open an issue on GH for this
//comment out the line below and set w.content to tabs to fix the issue
vbox.Add(tabs)
//set this to vbox to cause theme issue
//when content is set to tabs, this issue does not occur
w.SetContent(vbox)
That renders correctly. Digging in more.
OMG that should have been easier to find. The problem is that you are drawing a MASSIVE white line, which is essentially a white rectangle that is taller than the whole app. By adding that to your VBox it is making the items also in the box unreadable. So remove the mad 1000
stroke width:
divider.StrokeWidth = 1
Checklist
Describe the bug
When using AppTabs inside a vbox, the system-theme is ignored and the app defaults to the light theme.
This occurs on both Linux (Pop!_OS 22.04 LTS) 64-bit GNOME 42.9 X11 windowing
and MacOS Sonoma 14.5, intel
I have not tested this on any other platform.
How to reproduce
Screenshots
This is how the app should look
This is how the issue looks when setting w.content to the vbox and putting the AppTabs into the vbox:
Example code
Fyne version
v2 / v2.5.2
Go compiler version
1.23.3 linux/amd64, 1.23.3 darwin/amd64
Operating system and version
Pop!_OS 22.04 LTS, MacOS Sonoma 14.5
Additional Information
No response