[Okular][Windows] Permanent dark mode and Language Switch
πΆοΈ Dark Mode
πββ¬ Switch to π Dark Mode RIGHT NOW!
Basically, we switch π dark mode like this:
βοΈ Settings
> βοΈ Configure Okular
> β
tick change colors
> π color mode: change dark & light colors
> π¨ choose 2 colors (π Colors in the gif are: #cec5b4 & #2d2d2d)
π¦ Permanent Dark Mode
But the thing is, this setting is only temporary. If you exit the app and restart it, itβll back to βοΈ light mode again!
So hereβs how to make π dark mode permanent.
- π Important: I downloaded Okular from the Microsoft Store and moved it to my πΎ
E:/
.
- π Check this path
C:\Users\YourUsername\AppData\Local\okular\okularpartrc
- If thereβs a file named
okularpartrc
, β great. If not, just create it here. (No.txt
extension, just plainokularpartrc
)
- If thereβs a file named
βοΈ Edit or Create the
okularpartrc
file:1 2 3 4 5
[Rendering] ChangeColors=true ColorMode=2 DarkColor=#2D2D2D ; π Your preferred dark background color LightColor=#CEC5B4 ; π Your preferred text color
πΎ Save the file and restart Okular.π If it doesnβt work, you may need to reset the two colors manually again and click πΎ
File > Save
just in case.Restart again. This time should be dark perfectly.
π€ Change Language (e.g. en_US
)
π οΈ Why Changing Language via UI Doesnβt Work
There is a language change issue on Windows:
In βοΈ Setting > Configure Language - Okular
, I canβt change the main language to English. When I try to change and click save, it said will change when reboot. But when I restart, it still keeps the old language setting, no matter how many times I try to change it.
So I guess hereβs the thing, once you choose one language in the process of installation, Okular from the Microsoft Store seems to lock that setting. π.
π οΈ 2 Ways to Change Language
π₯οΈ Forcing Language Change Through Environment Variables
Press
Win + R
, typesysdm.cpl
, and hit Enter. This opens the π₯οΈ System Properties window.Click on the βοΈ Advanced tab, then click on π Environment Variables.
In the π₯οΈ System variables section, click on β Newβ¦.
- π Create a New Variable:
- Variable name:
LANG
- Variable value:
en_US
- Variable name:
Click β OK to save, then β OK again to close all windows.
π Restart your computer (I managed to do it just by restarting Okular.).
- Open Okular and see if it starts in English.
π» Batch File Method (πͺ Full Control Over Okular Launch)
Instead of trying to pass the environment variable through a shortcut directly, weβll make a batch file to launch Okular in English mode.
π Open Notepad or Notepad++ (or whatever text editor you love)
Paste the following code:
1 2 3
@echo off set LANG=en_US start "" "path\to\your\okular.exe" # your path to okular.exe
- Explanation:
@echo off
: Hides the command prompt details.set LANG=en_US
: Sets the language to English temporarily.start
: Launches Okular in a new process with theLANG
environment variable applied.
- πΎ Save the file as a
.bat
file:- File Name:
LaunchOkularEnglish.bat
- Location: Save it wherever you want, but maybe keep it in the same folder as your Okular executable.
- File Name:
π Double-click the
LaunchOkularEnglish.bat
file.- Okular should now launch in English, regardless of your systemβs language settings.
π Making It Fancy
If you want, you can create a shortcut for this batch file and place it on your desktop or taskbar for easy access.
Why This Works:
The batch file temporarily sets the LANG
environment variable just for launching Okular. No impact on your other apps, no messing with global variables. Just pure, focused execution.