-
Notifications
You must be signed in to change notification settings - Fork 197
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
Provide a dark theme #255
Comments
You can already tweak the colours as you like using the combination of colour schemes (for editor) and But I will try to make the default choice more smart in the next releases. |
I spent some time looking for options on Edit and Preferences where to change to a dark theme, and found none... Ended up at this ticket, and now I'm following any changes here. I would suggest adding at least two color schemes to the editor, light and dark, and some guidance on how to tweak those things. I only found the color scheme thing through here :) |
How did you get these examples in dark? I tried breeze-dark.css as above and the editor backgound is still white. How did you set background to dark in above screenshots? Are these real or mocks? |
@Mat001 please be sure to add |
And when adding (EDIT) |
I've followed the steps above to try to get a dark theme:
Then created a new file
Was hoping to get a dark theme like in the screens in the discussion further up. How can I get to that? |
@gcameron89777 You need to actually change your interface style to some dark style. As you seem to be using GNOME and not Plasma, so I will recommend the adwaita-qt package (use To apply the theme, you have the following options:
|
Hi @mitya57 thanks for the information. I installed adwaita-qt and added a global variable to my ~/.bashrc file:
I then closed my shell and retext, then opened again. When I opened via Ubuntu apps menu, no change. I tried opening via the terminal only with just 'retext' and it works! May I ask a couple of follow ups? When running retext in the terminal I got the foloowing warnings:
Do I need to do anything about those? Is there a forum I can ask general Q's? I looked at Stack Overflow but there's no retext tag. Should I just ask Q's on the repo? My questions might be more general rather than technical? |
That is because
This was a bug in Qt WebKit which is fixed in 5.212.0 Alpha 3, see qtwebkit/qtwebkit#798. No need to do anything, just ignore it.
You can ask on the repo, but better file a separate issue because this one has other subscribers. |
I have just pushed a commit (5343c00) with which adding custom CSS for dark themes should be no longer needed. Also earlier today I pushed retext-project/pymarkups@4536926026c830b2 which improves support for reStructuredText rendering with dark themes. So the only remaining bit that needs to be added manually is the ColorScheme block in the configuration file. |
With the current version from master, there should be no need to set ColorScheme for dark themes anymore — they now work out of the box! I used some colors from @cognifloyd's comment above — thanks a lot and I hope you don't mind. Please help testing the new version. Any feedback is welcome. |
I don't mind. I'm glad it was useful. |
With the theme 'Breeze Dark' ReText looks like this:
Instead I would like it like this:
The text was updated successfully, but these errors were encountered: