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

Title color changes with os dark mode and cannot be fixed #801

Open
s5409693 opened this issue Apr 4, 2022 · 0 comments
Open

Title color changes with os dark mode and cannot be fixed #801

s5409693 opened this issue Apr 4, 2022 · 0 comments

Comments

@s5409693
Copy link

s5409693 commented Apr 4, 2022

Hello,

Gooey is a great help for me to deploy code to non-programmers, but some people have their OS in dark mode. Gooey picks up the dark mode in some widgets, but not in all, so I would like to prescribe the font and background color of every part of a Gooey application, but the program title and program description cannot be changed.

  • OS: Debian 11
  • Python version: 3.8.8
  • Gooey version: 1.0.8.1
  • Problem description: I have noticed that when my OS (Debian 11) is in dark mode, some of the widgets adopt the dark theme and some don't, making the application look very strange. So I tried to prescribe the font and background color of all widgets, which worked fine. For the program title and description, however, I have found no way to alter the font color. If it is possible and I just have not found the way how to do it, it would be nice to add this to the documentation. Please find some example code below
  • Expected behavior: Either (a) the program title color can be prescribed or (b) if this is not possible, at least the program title does not change depending on the user's OS settings.
  • Actual behavior: I have not found a way to prescribe the color and when I change gnome-tweaks -- appearance -- themes -- applications from Adwaita to Adwaita-dark, the title color changes from black to white.
  • Code example:
import gooey

@gooey.Gooey(
        header_color = '#ff0000',       # tried, but has no effect
        header_font_color = '#ff0000',  # tried, but has no effect
        header_bg_color = '#0000ff',    # this works fine
        )
def main():
    parser = gooey.GooeyParser(description='Some test parser')
    parser.add_argument('input_filename', type=str, widget='FileChooser')
    args = parser.parse_args()

if __name__ == "__main__":
    main()
  • Appearance with Adwaita
    gooey_light
  • Appearance with Adwaita-dark
    gooey_dark

Thank you and best regards
Paul Seibert

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant