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

Welcome/examples page completely black #2

Open
TheSunCat opened this issue Jun 6, 2024 · 5 comments
Open

Welcome/examples page completely black #2

TheSunCat opened this issue Jun 6, 2024 · 5 comments
Assignees

Comments

@TheSunCat
Copy link

Hi! Thanks so much for maintaining my favorite color scheme for Qt Creator. I've been using it for a few months and recently updated Qt Creator, only to be greeted with this welcome page:

image

I am using both the creatortheme and the style, with the mocha variation. Qt Creator prints this on start, which is likely related:

Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "Token_Basic_Black".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "Token_Basic_White".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "Token_Accent_Default".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "Token_Accent_Muted".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "Token_Accent_Subtle".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "Token_Background_Default".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "Token_Background_Muted".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "Token_Background_Subtle".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "Token_Foreground_Default".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "Token_Foreground_Muted".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "Token_Foreground_Subtle".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "Token_Text_Default".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "Token_Text_Muted".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "Token_Text_Subtle".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "Token_Text_Accent".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "Token_Stroke_Strong".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "Token_Stroke_Muted".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "Token_Stroke_Subtle".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "Token_Notification_Alert".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "Token_Notification_Success".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "Token_Notification_Neutral".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "Token_Notification_Danger".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "TextEditor_Selection_ScrollBarColor".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "DScontrolBackground_toolbarIdle".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "DScontrolBackground_toolbarHover".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "DStoolbarBackground".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "DStoolbarIcon_blocked".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "DSthumbnailBackground_baseState".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "DSidleGreen".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "DSrunningGreen".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "DSstatusbarBackground".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "DScontrolBackground_statusbarIdle".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "DScontrolBackground_topToolbarHover".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "DSControlBackground_statusbarHover".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "DScontrolOutline_topToolbarIdle".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "DScontrolOutline_topToolbarHover".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "DSprimaryButton_hoverHighlight".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "DSstateBackgroundColor_hover".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "DSstateControlBackgroundColor_hover".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "DSstateControlBackgroundColor_globalHover".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "DSpopoutBackground".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "DSpopoutControlBackground_idle".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "DSpopoutControlBackground_hover".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "DSpopoutControlBackground_globalHover".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "DSpopoutControlBackground_interaction".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "DSpopoutControlBackground_disabled".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "DSpopoutPopupBackground".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "DSpopoutControlBorder_idle".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "DSpopoutControlBorder_hover".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "DSpopoutControlBorder_interaction".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "DSpopoutControlBorder_disabled".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "DSpopoutButtonBackground_idle".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "DSpopoutButtonBackground_hover".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "DSpopoutButtonBackground_interaction".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "DSpopoutButtonBackground_disabled".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "DSpopoutButtonBorder_idle".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "DSpopoutButtonBorder_hover".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "DSpopoutButtonBorder_interaction".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "DSpopoutButtonBorder_disabled".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "DSscrollBarHandle_idle".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "DSconnectionCodeEditor".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "DSpillText".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "DSpillTextSelected".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "DspillTextEdit".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "DSpillDefaultBackgroundIdle".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "DSpillDefaultBackgroundHover".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "DSpillOperatorBackgroundIdle".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "DSpillOperatorBackgroundHover".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "DSpillLiteralBackgroundIdle".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "DSpillLiteralBackgroundHover".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "DSconnectionEditorMicroToolbar".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "DSconnectionEditorButtonBackground_hover".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "DSconnectionEditorButtonBorder_hover".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "DSstatePanelBackground".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "DSstateHighlight".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "TerminalForeground".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "TerminalBackground".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "TerminalSelection".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "TerminalFindMatch".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "TerminalAnsi0".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "TerminalAnsi1".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "TerminalAnsi2".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "TerminalAnsi3".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "TerminalAnsi4".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "TerminalAnsi5".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "TerminalAnsi6".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "TerminalAnsi7".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "TerminalAnsi8".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "TerminalAnsi9".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "TerminalAnsi10".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "TerminalAnsi11".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "TerminalAnsi12".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "TerminalAnsi13".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "TerminalAnsi14".
Theme "/home/mat/.config/QtProject/qtcreator/themes/catppuccin-mocha.creatortheme" misses color setting for key "TerminalAnsi15".

The rest of the program appears unaffected. I am using Qt Creator 12.0.1 based on Qt 6.7.1, from nixpkgs.

@backwardspy
Copy link
Member

hey, thanks for raising this! looks like they added a bunch of new keys in version 12. i'll let you know when the theme's updated and ready for a test run.

@backwardspy backwardspy self-assigned this Jun 7, 2024
@oldlonecoder
Copy link

oldlonecoder commented Oct 14, 2024

In my opinion, it is Trolltech's responsibility to look at them - because missing key's implementation/assign shall not prevent GUI building. Visual Fallback principle is not applied there.

BTW, Thank you very much for your beautiful theme! I can no longer code without it. I've made little changes here and here and wow! Mixed Latte IDE GUI with the macchiato (modified to my particular tastes) for the code editor.

qtcreator-rice

@KraziMeanieDev
Copy link

Any updates on this?

@PsychedelicShayna
Copy link

PsychedelicShayna commented Dec 21, 2024

@KraziMeanieDev @backwardspy @TheSunCat @oldlonecoder

Forked and Fixing

I should have all 4 variants fixed by tomorrow since it's the weekends and I actually have the time.

I already fixed Frappe by hand, and I'm writing a Python script that'll assume the color palette will come from the same variables in the .creatortheme by comparing the .figmatokens file created for Frappe to the original base dark.figmatokens file I'm using as a reference, and locating the constants whose name in the .creatortheme have the colors I used in new .figmatokens file.

It should take care of the other three variants automatically, assuming the color palette is constant in its location in the .creatortheme which it seems to be.

That script should be able to fix most themes broken by this new change. I'll pass it along here in the issue, separately from the PR with all 4 variants fixed, once it's done and I confirm everything works, so that you guys can use it for yourselves to fix any other themes that broke because of this new update.

Here's the current state of Frappe post-fix.

ksnip_tmp_zOwIFi

ksnip_tmp_tCYanP

Note

Although both the theme and editor theme have to both be applied, or else the editor theme gets messed up, and any open files should be closed and re-opened for the editor theme to show correctly (which should be its own PR at QtCreator). It's easier to just apply the UI theme, restart, then apply the editor theme, restart, to be sure it displays right, otherwise some of the nonsense from the previous style carries over:

ksnip_tmp_twlFXR

I'll take care of this, don't worry. I don't really use Qt Creator that much anymore, but Catppuccin is one of my goto's in Neovim, so I have a quite a fondness for this theme. It shall regain its rightful place in Qt Creator once more (:

Oh and thank @ACCSCI for bringing this to my attention!

@PsychedelicShayna
Copy link

Quick update: that Python script grew way out of control in terms of scope, and is gonna be something more useful than originally intended.

I'll port the remaining two manually today as that'll be way faster at this point; I've been focusing too heavily on the script.

It's hardly a script at this point, but its own Qt application that's turning into somewhat of a theming utility to generate themes from color palettes (which I grabbed from catppuccin.com), and is a much more intuitive way to create and edit themes than the built-in dialog in Qt Creator, as it takes care of all three files at once.. I kinda may or may not have gotten carried away.. a little.. maybe..

How fitting that it'll be Christmas when I'm done and give them a final pass of polish (would make more sense for Latte to have purple buttons than the default green Qt buttons, no?)

As for the script theme engine, I have to draw a line somewhere and stop moving the goalpost. Time estimates mean so little when you're the one in control of deciding what features you're gonna keep adding in istg.

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

5 participants