|
2 | 2 | import os |
3 | 3 | import re |
4 | 4 | from configparser import ConfigParser |
| 5 | +from doctest import debug |
5 | 6 | from itertools import chain |
6 | 7 | from pathlib import Path |
7 | 8 | from shutil import copyfile |
@@ -109,8 +110,26 @@ def available_themes(self) -> dict: |
109 | 110 | config_parser.read(theme_path) |
110 | 111 | theme_name = config_parser['General']['Description'] |
111 | 112 | themes_dict[theme] = theme_name |
| 113 | + |
| 114 | + if themes_dict == {}: |
| 115 | + # sync with https://invent.kde.org/utilities/konsole/-/blob/master/data/color-schemes/BlackOnWhite.colorscheme |
| 116 | + # these are included in the binary |
| 117 | + return { |
| 118 | + 'BlackOnLightYellow': 'Black on Light Yellow', |
| 119 | + 'BlackOnRandomLight': 'Black on Random Light', |
| 120 | + 'BlackOnWhite': 'Black on White', |
| 121 | + 'BlueOnBlack': 'Blue on Black', |
| 122 | + 'Breeze': 'Breeze', |
| 123 | + 'Campbell': 'Campbell', |
| 124 | + 'DarkPastels': 'Dark Pastels', |
| 125 | + 'GreenOnBlack': 'Green on Black', |
| 126 | + 'Linux': 'Linux Colors', |
| 127 | + 'RedOnBlack': 'Red on Black', |
| 128 | + 'Solarized': 'Solarized', |
| 129 | + 'SolarizedLight': 'Solarized Light', |
| 130 | + 'WhiteOnBlack': 'White on Black' |
| 131 | + } |
112 | 132 |
|
113 | | - assert themes_dict != {}, 'No themes found!' |
114 | 133 | return themes_dict |
115 | 134 |
|
116 | 135 | @property |
|
0 commit comments