Skip to content

How to enable dark mode in chromium #650

Closed Answered by felix-ebbe
felix-ebbe asked this question in Q&A
Discussion options

You must be logged in to vote

To answer my own question:
There is a script called start_chromium-browser in the ~/scripts folder. Here you have to add --enable-features=WebContentsForceDark and --force-dark-mode to the flags variable like so:

flags=(
   --enable-features=WebContentsForceDark
   --force-dark-mode
   --kiosk
   --touch-events=enabled
   --disable-pinch
   --noerrdialogs
   --disable-session-crashed-bubble
   --simulate-outdated-no-au='Tue, 31 Dec 2099 23:59:59 GMT'
   --disable-component-update
   --overscroll-history-navigation=0
   --disable-features=TranslateUI
   --autoplay-policy=no-user-gesture-required
)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by felix-ebbe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant