Sat, 18 Nov 2017 12:35:13 +0100
Added a dark style (*.qss and Python lexers) provided by Giuseppe Corbelli.
--- a/Preferences/ConfigurationPages/EditorHighlightingStylesPage.py Fri Nov 17 18:51:40 2017 +0100 +++ b/Preferences/ConfigurationPages/EditorHighlightingStylesPage.py Sat Nov 18 12:35:13 2017 +0100 @@ -479,10 +479,13 @@ @param lexers dictionary of lexer objects for which to import the styles """ + from eric6config import getConfig + stylesDir = getConfig("ericStylesDir") + fn = E5FileDialog.getOpenFileName( self, self.tr("Import Highlighting Styles"), - "", + stylesDir, self.tr("Highlighting styles file (*.e4h)")) if not fn:
--- a/Preferences/ConfigurationPages/InterfacePage.py Fri Nov 17 18:51:40 2017 +0100 +++ b/Preferences/ConfigurationPages/InterfacePage.py Sat Nov 18 12:35:13 2017 +0100 @@ -42,6 +42,7 @@ self.styleSheetPicker.setFilters(self.tr( "Qt Style Sheets (*.qss);;Cascading Style Sheets (*.css);;" "All files (*)")) + self.styleSheetPicker.setDefaultDirectory(getConfig("ericStylesDir")) # set initial values self.__populateStyleCombo()
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Styles/SolarizedDark-Python.e4h Sat Nov 18 12:35:13 2017 +0100 @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE HighlightingStyles SYSTEM "HighlightingStyles-4.3.dtd"> +<!-- Eric6 highlighting styles --> +<!-- Saved: 2017-11-17, 10:26:26--> +<!-- Author: --> +<HighlightingStyles version="4.3"> + <Lexer name="Python3"> + <Style style="0" color="#839496" paper="#002b36" font="Noto Mono,9,-1,5,50,0,0,0,0,0" eolfill="False">Default</Style> + <Style style="1" color="#586e75" paper="#002b36" font="Noto Mono,9,-1,5,50,0,0,0,0,0" eolfill="False">Comment</Style> + <Style style="2" color="#839496" paper="#002b36" font="Noto Mono,9,-1,5,50,0,0,0,0,0" eolfill="False">Number</Style> + <Style style="3" color="#2aa198" paper="#002b36" font="Noto Mono,9,-1,5,50,0,0,0,0,0" eolfill="False">Double-quoted string</Style> + <Style style="4" color="#2aa198" paper="#002b36" font="Noto Mono,9,-1,5,50,0,0,0,0,0" eolfill="False">Single-quoted string</Style> + <Style style="5" color="#859900" paper="#002b36" font="Noto Mono,9,-1,5,75,0,0,0,0,0" eolfill="False">Keyword</Style> + <Style style="6" color="#2aa198" paper="#002b36" font="Noto Mono,9,-1,5,50,0,0,0,0,0" eolfill="False">Triple single-quoted string</Style> + <Style style="7" color="#2aa198" paper="#002b36" font="Noto Mono,9,-1,5,50,0,0,0,0,0" eolfill="False">Triple double-quoted string</Style> + <Style style="8" color="#859900" paper="#002b36" font="Noto Mono,9,-1,5,75,0,0,0,0,0" eolfill="False">Class name</Style> + <Style style="9" color="#859900" paper="#002b36" font="Noto Mono,9,-1,5,75,0,0,0,0,0" eolfill="False">Function or method name</Style> + <Style style="10" color="#839496" paper="#002b36" font="Noto Mono,9,-1,5,75,0,0,0,0,0" eolfill="False">Operator</Style> + <Style style="11" color="#839496" paper="#002b36" font="Noto Mono,9,-1,5,50,0,0,0,0,0" eolfill="False">Identifier</Style> + <Style style="12" color="#586e75" paper="#002b36" font="Noto Mono,9,-1,5,50,0,0,0,0,0" eolfill="False">Comment block</Style> + <Style style="13" color="#000000" paper="#e0c0e0" font="Noto Mono,9,-1,5,50,0,0,0,0,0" eolfill="False">Unclosed string</Style> + <Style style="14" color="#407090" paper="#002b36" font="Noto Mono,9,-1,5,50,0,0,0,0,0" eolfill="False">Highlighted identifier</Style> + <Style style="15" color="#657b83" paper="#002b36" font="Noto Mono,9,-1,5,50,0,0,0,0,0" eolfill="False">Decorator</Style> + </Lexer> + <Lexer name="Python2"> + <Style style="0" color="#839496" paper="#002b36" font="Noto Mono,9,-1,5,50,0,0,0,0,0" eolfill="False">Default</Style> + <Style style="1" color="#586e75" paper="#002b36" font="Noto Mono,9,-1,5,50,0,0,0,0,0" eolfill="False">Comment</Style> + <Style style="2" color="#839496" paper="#002b36" font="Noto Mono,9,-1,5,50,0,0,0,0,0" eolfill="False">Number</Style> + <Style style="3" color="#2aa198" paper="#002b36" font="Noto Mono,9,-1,5,50,0,0,0,0,0" eolfill="False">Double-quoted string</Style> + <Style style="4" color="#2aa198" paper="#002b36" font="Noto Mono,9,-1,5,50,0,0,0,0,0" eolfill="False">Single-quoted string</Style> + <Style style="5" color="#859900" paper="#002b36" font="Noto Mono,9,-1,5,75,0,0,0,0,0" eolfill="False">Keyword</Style> + <Style style="6" color="#2aa198" paper="#002b36" font="Noto Mono,9,-1,5,50,0,0,0,0,0" eolfill="False">Triple single-quoted string</Style> + <Style style="7" color="#2aa198" paper="#002b36" font="Noto Mono,9,-1,5,50,0,0,0,0,0" eolfill="False">Triple double-quoted string</Style> + <Style style="8" color="#859900" paper="#002b36" font="Noto Mono,9,-1,5,75,0,0,0,0,0" eolfill="False">Class name</Style> + <Style style="9" color="#859900" paper="#002b36" font="Noto Mono,9,-1,5,75,0,0,0,0,0" eolfill="False">Function or method name</Style> + <Style style="10" color="#839496" paper="#002b36" font="Noto Mono,9,-1,5,75,0,0,0,0,0" eolfill="False">Operator</Style> + <Style style="11" color="#839496" paper="#002b36" font="Noto Mono,9,-1,5,50,0,0,0,0,0" eolfill="False">Identifier</Style> + <Style style="12" color="#586e75" paper="#002b36" font="Noto Mono,9,-1,5,50,0,0,0,0,0" eolfill="False">Comment block</Style> + <Style style="13" color="#000000" paper="#e0c0e0" font="Noto Mono,9,-1,5,50,0,0,0,0,0" eolfill="False">Unclosed string</Style> + <Style style="14" color="#407090" paper="#002b36" font="Noto Mono,9,-1,5,50,0,0,0,0,0" eolfill="False">Highlighted identifier</Style> + <Style style="15" color="#657b83" paper="#002b36" font="Noto Mono,9,-1,5,50,0,0,0,0,0" eolfill="False">Decorator</Style> + </Lexer> +</HighlightingStyles>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Styles/SolarizedDark.qss Sat Nov 18 12:35:13 2017 +0100 @@ -0,0 +1,46 @@ +/* Solarized Dark theme for Eric6 + * Taken from https://gist.github.com/Zren/e91ad5197f9d6b6d410f + * Author: Chris Holland + * + * Theme Notes: + * - This theme is designed to work on top of the Fusion or the Plastique client style. + * It will look weird on almost all the others (including the system default). + */ +QPalette { + /* Window colors */ + window: #2b2b2b; + background: #212121; + foreground: #dddddd; + base: #131313; + alternate-base: #42403B; + + /* Just setting palette(tooltip-base) doesn't work as intended so we set it in + * a QTooltip{} rule as well. + */ + tooltip-base: #131313; /* palette(base) */ + tooltip-text: white; /* palette(text) */ + + /* The following attributes should be done in a scale */ + light: #444444; /* Tab Borders, Scrollbar handle grips, Titled Panel border (Settings) */ + midlight: #333333; /* ? */ + button: #292929; /* Menu BG, Scrollbar and Button base. */ + mid: #252525; /* Titled Panel border (Settings) */ + dark: #202020; /* TreeView [-] and ... color (Also various borders in Windows Client Style) */ + shadow: #1d1d1d; /* ? */ + + + /* Text colors */ + text: white; + button-text: #B6B3AB; + + highlight: #268bd2; + /* highlight-text: #000000; */ + + /* Link colors */ + link: #539FA3; + link-visited: #845B90; + + /* Color of the marker line in the chat view. BG Node that is overlayed on the first new ChatLine. */ + /* 0 -> 0.1 (sharp line) */ + marker-line: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #586e75, stop: 0.1 #586e75, stop: 0.1 transparent); +}
--- a/changelog Fri Nov 17 18:51:40 2017 +0100 +++ b/changelog Sat Nov 18 12:35:13 2017 +0100 @@ -9,6 +9,8 @@ -- introduced a configuration option to limit the variables shown by the variables viewers depending on their size (in order to avoid overload situations on low power or low memory machines) +- Styles + -- added a dark style (*.qss and Python lexers) provided by Giuseppe Corbelli Version 17.11: - bug fixes
--- a/install.py Fri Nov 17 18:51:40 2017 +0100 +++ b/install.py Sat Nov 18 12:35:13 2017 +0100 @@ -739,6 +739,9 @@ '{1}{0}Styles'.format(os.sep, sourceDir), cfg['ericStylesDir'], ['*.qss']) copyTree( + '{1}{0}Styles'.format(os.sep, sourceDir), cfg['ericStylesDir'], + ['*.e4h']) + copyTree( '{1}{0}i18n'.format(os.sep, sourceDir), cfg['ericTranslationsDir'], ['*.qm']) copyTree(