Skip to content

thatlittleboy/TeXstudio-Qt-Stylesheet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TeXstudio-Qt-Stylesheet

Dark mode Qt stylesheet (WIP), developed primarily for TeXstudio, a LaTeX editor. Built around a dark colour scheme (majority being different shades of gray and dark blue), with red and blue accents. Also, there's red text highlighting, instead of the default Windows blue, for fun! :)

Slightly modified from (and credits to):

Sample images:

Main text editor and internal pdf viewer

Menu

Config Dialog

To Use:

Mandatory:

  • Place stylesheet.qss and the rc folder into TXS config folder.
  • Replace C:/Users/user/AppData/Roaming/TeXstudio/rc/ with your name in the stylesheet

For best effects (cf. sample images): I would recommend using the following settings (change under Options -> Configure TeXstudio):

Optionally/Personal taste: Change the internal PDF viewer background colour, and the internal PDF viewer highlight colour. These are not controlled by the Qt Stylesheet; You can customize this in Options -> Configure TeXstudio -> Internal PDF viewer -> Paper Color and Highlight Color. You'll need Show Advanced Options checked in the bottom left hand corner of the config dialog to see these options.

I have also provided a texstudio.ini file that should give your TeXstudio the complete look: it has all default settings except for 3 things:

(i) the background colour and syntax highlighting of the editor window (mine is modified from Solarized Dark theme),

[formats]
version=1.0
data\align-ampersand\bold=true
data\align-ampersand\fontFamily=
...
...
...
data\braceMatch\wrapAround=false

(see the provided texstudio.ini for the full list -- just grab everything below [formats]).

(ii) the internal PDF viewer background colour (a slight yellowish colour), and

Preview\PaperColor=#faffcf

(iii) the internal PDF viewer highlight colour (pale blue).

Preview\HighlightColor=#77b8f93F

If you don't want to override your current settings by using the provided texstudio.ini file, you can just replace the corresponding lines within your texstudio.ini instead.

To Do / Unsure how to fix at the moment:

  • Symbols side panel and a few icons are black (on transparent background?), thus are hard to see with the dark background of everything else (cf. Math -> Math Accents). Whereas others (cf. LaTeX -> Font Styles) are fine;
  • Table in Config TeXstudio -> Syntax Highlighting is a mess.. Not sure how much of it can be influenced/fixed by QSS; Fixed since git_0ba02d0.
  • Some pop-up dialogs still not inheriting the QSS, (cf. Edit Macros dialog, Select Color dialog);
  • The "right-click context menu" in the editor not inheriting QSS as well (the "right-click" context menu on the internal pdf viewer, inherits it fine, however);

About

Dark mode Qt Stylesheet (QSS) for TXS (WIP)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published