Skip to content

Commit d6b9c4f

Browse files
committed
Include default themes
They are apparently now part of the binary Fixes #341
1 parent c2592ae commit d6b9c4f

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

yin_yang/plugins/konsole.py

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import os
33
import re
44
from configparser import ConfigParser
5+
from doctest import debug
56
from itertools import chain
67
from pathlib import Path
78
from shutil import copyfile
@@ -109,8 +110,26 @@ def available_themes(self) -> dict:
109110
config_parser.read(theme_path)
110111
theme_name = config_parser['General']['Description']
111112
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+
}
112132

113-
assert themes_dict != {}, 'No themes found!'
114133
return themes_dict
115134

116135
@property

0 commit comments

Comments
 (0)