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

[Feature request] Night mode/dark mode #388

Open
lappet opened this issue Sep 16, 2018 · 18 comments
Open

[Feature request] Night mode/dark mode #388

lappet opened this issue Sep 16, 2018 · 18 comments
Labels
discussion qt-themes Related to Qt theming

Comments

@lappet
Copy link

lappet commented Sep 16, 2018

A lot of editors and websites these days come with a night mode or a dark mode where the background text is not white in color. Can we get that please?

@RiderExMachina
Copy link
Contributor

As a lover of dark themes I agree!

@gedakc
Copy link
Collaborator

gedakc commented Sep 17, 2018

Did you know that Manuskript already supports manually changing item colours?
See Edit -> Settings -> Views, and also Edit -> Settings -> Fullscreen sections.

To search through the existing issues raised for Manuskript you can add and subtract terms from the Filters. The steps to search all issues for the word "dark" are:

  1. Click on Issues in the Manuskript git page.
  2. Remove "is:open" from the Filters.
  3. Add "dark".
  4. Press Enter key.

This should create the following list of issues which contain the word "dark".

See issue 183 - Index card text almost invisible in dark themes for an example of how some users have configured dark themes.

Does that answer your question?

@HorsaTheHetrisiniLord
Copy link

No actually... I don't see exactly where it says how to configure a dark theme in that issue...

I'd much rather have an official dark theme instead of manually having to configure it.

@gedakc
Copy link
Collaborator

gedakc commented Oct 9, 2018

I believe the dark theme in the issue #183 mentioned above was selected at the desktop level.

For example in Kubuntu 16.04 I can select "Breeze Dark" under K -> Settings -> System Settings -> Workspace Theme -> Look And Feel.

kde-workspace-theme

Manuskript then uses the chosen workspace theme.

You can further refine the text editor colours using Manuskript's Edit -> Settings-> Views -> Text editor.

manuskript-text-editor-settings

@gedakc
Copy link
Collaborator

gedakc commented Oct 11, 2018

Comment from AlucardNoir copied from Manuskript 0.7.0 web site page:

I'm posting this here because I don't want to make a GitHub account and have yet another account and password to bog me down. In regards to the requested Dark Mode/Theme( #388 ) while things might work in Linux like that, on Windows things are a lot different. Dark Mode was a joke before the last update and frankly still is somewhat of a joke even after the October update. For windows, at least at the present, the program must supply it's own dark theme. Hell, even MS Office doesn't use a windows flag to turn on the inbuilt dark themes it has, and that's an MS product - MS is bad at doing dark mode.

@bobf32
Copy link

bobf32 commented Apr 8, 2019

+1 for easy way to switch to dark mode. Manual theming only seems to go so far on Windows, i.e. the text editor.

Loving the product so far, great work.

@zja203
Copy link

zja203 commented Aug 13, 2019

The thing is, the color-changing options don't seem to apply to the whole interface. I also tried to set a dark theme in Ubuntu, many of my apps switched to a dark theme, Manuskript did not. I really wish there was a dark theme because I use the black and green 'oldschool' theme for fullscreen editing, and switching back to the bright UI can be quite jarring.

This seems to be as close as I can get to an actual dark theme
image

@gedakc
Copy link
Collaborator

gedakc commented Sep 10, 2019

Added How to Enable Dark Theme wiki entry.

@corruleum
Copy link

I also do not have a dark theme available in Manuskript, similar to zja203. Linux Mint 18.2, MATE, near as I can tell it uses GTK (GTK3?) for my system dark theme (not KDE Breeze Dark). All (but one) other programs I use either respect that or provide their own dark theme.

The two theme options I have available for Manuskript theme at all: Fusion (the default, and a light theme), or Windows. Neither of these appear to pay any attention to my system's dark theme.

@zeth
Copy link
Contributor

zeth commented Apr 18, 2020

A rather belated reply to @zja203, the issue is not Manuskript, it is Ubuntu not sending your theme options across to QT apps. The way I solved this, using the stock GNOME based Ubuntu 19.10:

sudo apt install qt5-style-plugins

Then in Manuskript's settings, I found that I had more than the two original options, I chose gtk2 and the application went suitably black and orange. As shown here:

settings

@dmjohnsson23
Copy link

I just added some instructions that worked for me to get dark mode for Manuskript on Ubuntu/Gnome to the wiki page. I thought I'd point out here however, that (at least in my case) markdown headings in the text are unreadable in dark mode due to the dark blue font color used. I wasn't able to find a way to change that.

@zeth
Copy link
Contributor

zeth commented Apr 19, 2020

Interesting, using the gtk2 theme you get them in a kind of pink/salmon colour.
salmon

@zeth
Copy link
Contributor

zeth commented Apr 19, 2020

When I use the adwaita-qt, they seem readable on my screen in blue.

adwaita

@zeth
Copy link
Contributor

zeth commented Apr 19, 2020

Okay, I have tried lots and lots themes for dark mode on Ubuntu and the one that doesn't seg fault (yet) and has no major visual drawbacks is called kvantum.

sudo apt install qt5-style-kvantum qt5-style-kvantum-themes

Then choose kvantum in Manuskript.
nice

@zeth
Copy link
Contributor

zeth commented Apr 19, 2020

For the themes that crash, I got out gdb and tried to figure out what is happening but I fear the problems are in QT or with the themes themselves. I couldn't find anything that the Manuskript code is doing wrong. However, I am not a QT expert so your mileage may vary. I have found one dark theme that works (so far) and so I am happy.

@nachtvlinder
Copy link

nachtvlinder commented Nov 8, 2020

Odd thing though, kvantum doesn't show the editor in night mode. whooptie.
Would be so awesome if I could load that solarized-dark theme I like to use in some of my code editing environments ^^
Meantime, tweaks seem to work in a way.
Edit: changing the font to certain font types changes the editor to night mode, Like seems to be the UKWM or URW ones, but I didn't do a full scale test because NaNoWriMo is on and I better get writing instead, haha.

@TheJackiMonster TheJackiMonster added discussion qt-themes Related to Qt theming labels Feb 22, 2021
@zeth
Copy link
Contributor

zeth commented Jul 26, 2021

Odd thing though, kvantum doesn't show the editor in night mode. whooptie.

Yes sorry, that's the way I like it. The text of my book is black on white but the program is dark. That way I can focus on my text and let the hard work of the Manuskript devs disappear into the background.

@AlanDunaway
Copy link

A rather belated reply to @zja203, the issue is not Manuskript, it is Ubuntu not sending your theme options across to QT apps. The way I solved this, using the stock GNOME based Ubuntu 19.10:

sudo apt install qt5-style-plugins

Then in Manuskript's settings, I found that I had more than the two original options, I chose gtk2 and the application went suitably black and orange. As shown here:

settings

As soon as I select gtk, Manuskript crashes on 22.04.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion qt-themes Related to Qt theming
Projects
None yet
Development

No branches or pull requests