mirror of https://gitlab.com/bashrc2/epicyon
Blue theme
parent
e1abdec2ec
commit
39e20839f5
1
Makefile
1
Makefile
|
@ -5,6 +5,7 @@ all:
|
|||
debug:
|
||||
source:
|
||||
rm -f *.*~ *~
|
||||
rm -f translations/*~
|
||||
rm -f orgs/*~
|
||||
rm -f scripts/*~
|
||||
rm -rf __pycache__
|
||||
|
|
|
@ -3,7 +3,7 @@ Font Licenses
|
|||
Absortile is under GPL. See https://www.ffonts.net/Absortile.font
|
||||
Bedstead is under CC0. See below and https://fontlibrary.org/en/font/bedstead
|
||||
CheGuevaraTextSans-Regular is under CC0. See https://fonts2u.com/cheguevara-text-sans-regular.font
|
||||
Domestic_Manners is under GPLv2. See https://www.1001fonts.com/domestic-manners-font.html
|
||||
Domestic_Manners by Dustin Norlander is under GPLv2. See https://www.1001fonts.com/domestic-manners-font.html
|
||||
Edition is public domain. See https://www.fontspace.com/edition-font-f35311
|
||||
ElectrumADFExp-Regular is by Arkandis Digital Foundry under GPLv2. See https://www.1001fonts.com/electrum-adf-exp-font.html
|
||||
GeneralFailureRegular is public domain. See https://www.fontspace.com/general-failure-font-f32565
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 130 KiB |
Binary file not shown.
After Width: | Height: | Size: 202 KiB |
44
theme.py
44
theme.py
|
@ -18,7 +18,8 @@ def getThemesList() -> []:
|
|||
also used to create the web interface dropdown list
|
||||
and to lookup function names
|
||||
"""
|
||||
return ('Default', 'LCD', 'Light', 'Purple', 'Hacker', 'HighVis')
|
||||
return ('Default', 'Blue', 'LCD', 'Light',
|
||||
'Purple', 'Hacker', 'HighVis')
|
||||
|
||||
|
||||
def setThemeInConfig(baseDir: str, name: str) -> bool:
|
||||
|
@ -50,15 +51,6 @@ def removeTheme(baseDir: str):
|
|||
os.remove(baseDir + '/' + filename)
|
||||
|
||||
|
||||
def setThemeDefault(baseDir: str):
|
||||
removeTheme(baseDir)
|
||||
setThemeInConfig(baseDir, 'default')
|
||||
themeParams = {
|
||||
"dummyValue": "1234",
|
||||
}
|
||||
setThemeFromDict(baseDir, 'default', themeParams)
|
||||
|
||||
|
||||
def setCSSparam(css: str, param: str, value: str) -> str:
|
||||
"""Sets a CSS parameter to a given value
|
||||
"""
|
||||
|
@ -152,6 +144,38 @@ def setCustomFont(baseDir: str):
|
|||
cssfile.write(css)
|
||||
|
||||
|
||||
def setThemeDefault(baseDir: str):
|
||||
removeTheme(baseDir)
|
||||
setThemeInConfig(baseDir, 'default')
|
||||
themeParams = {
|
||||
"dummyValue": "1234"
|
||||
}
|
||||
setThemeFromDict(baseDir, 'default', themeParams)
|
||||
|
||||
|
||||
def setThemeBlue(baseDir: str):
|
||||
removeTheme(baseDir)
|
||||
setThemeInConfig(baseDir, 'blue')
|
||||
themeParams = {
|
||||
"main-bg-color": "#002365",
|
||||
"text-entry-background": "#002365",
|
||||
"main-bg-color-reply": "#002365",
|
||||
"main-bg-color-report": "#002365",
|
||||
"main-header-color-roles": "#002365",
|
||||
"main-link-color": "#002365",
|
||||
"main-visited-color": "#002365",
|
||||
"button-text": "#002365",
|
||||
"color: #FFFFFE;": "color: #002365;",
|
||||
"day-number2": "#002365",
|
||||
"time-color": "#002365",
|
||||
"dropdown-fg-color": "#002365",
|
||||
"font-color-header": "#002365",
|
||||
"*font-family": "'Domestic_Manners'",
|
||||
"*src": "url('./fonts/Domestic_Manners.ttf') format('truetype')"
|
||||
}
|
||||
setThemeFromDict(baseDir, 'blue', themeParams)
|
||||
|
||||
|
||||
def setThemeHighVis(baseDir: str):
|
||||
themeParams = {
|
||||
"font-size-header": "22px",
|
||||
|
|
|
@ -225,5 +225,6 @@
|
|||
"Show/Hide Buttons": "إظهار / إخفاء الأزرار",
|
||||
"Custom Font": "خط مخصص",
|
||||
"Remove the custom font": "إزالة الخط المخصص",
|
||||
"LCD": "LCD"
|
||||
"LCD": "شاشات الكريستال السائل",
|
||||
"Blue": "أزرق"
|
||||
}
|
||||
|
|
|
@ -225,5 +225,6 @@
|
|||
"Show/Hide Buttons": "Mostra / Oculta els botons",
|
||||
"Custom Font": "Tipus de lletra personalitzats",
|
||||
"Remove the custom font": "Elimineu el tipus de lletra personalitzat",
|
||||
"LCD": "LCD"
|
||||
"LCD": "LCD",
|
||||
"Blue": "Blau"
|
||||
}
|
||||
|
|
|
@ -225,5 +225,6 @@
|
|||
"Show/Hide Buttons": "Dangos / Cuddio Botymau",
|
||||
"Custom Font": "Ffont Custom",
|
||||
"Remove the custom font": "Tynnwch y ffont arferiad",
|
||||
"LCD": "LCD"
|
||||
"LCD": "LCD",
|
||||
"Blue": "Glas"
|
||||
}
|
||||
|
|
|
@ -225,5 +225,6 @@
|
|||
"Show/Hide Buttons": "Schaltflächen ein- / ausblenden",
|
||||
"Custom Font": "Benutzerdefinierte Schriftart",
|
||||
"Remove the custom font": "Entfernen Sie die benutzerdefinierte Schriftart",
|
||||
"LCD": "LCD"
|
||||
"LCD": "LCD",
|
||||
"Blue": "Blau"
|
||||
}
|
||||
|
|
|
@ -225,5 +225,6 @@
|
|||
"Show/Hide Buttons": "Show/Hide Buttons",
|
||||
"Custom Font": "Custom Font",
|
||||
"Remove the custom font": "Remove the custom font",
|
||||
"LCD": "LCD"
|
||||
"LCD": "LCD",
|
||||
"Blue": "Blue"
|
||||
}
|
||||
|
|
|
@ -225,5 +225,6 @@
|
|||
"Show/Hide Buttons": "Botones Mostrar / Ocultar",
|
||||
"Custom Font": "Fuente personalizada",
|
||||
"Remove the custom font": "Eliminar la fuente personalizada",
|
||||
"LCD": "LCD"
|
||||
"LCD": "LCD",
|
||||
"Blue": "Azul"
|
||||
}
|
||||
|
|
|
@ -225,5 +225,6 @@
|
|||
"Show/Hide Buttons": "Afficher / masquer les boutons",
|
||||
"Custom Font": "Police personnalisée",
|
||||
"Remove the custom font": "Supprimer la police personnalisée",
|
||||
"LCD": "LCD"
|
||||
"LCD": "LCD",
|
||||
"Blue": "Bleue"
|
||||
}
|
||||
|
|
|
@ -225,5 +225,6 @@
|
|||
"Show/Hide Buttons": "Taispeáin / Folaigh Cnaipí",
|
||||
"Custom Font": "Cló Saincheaptha",
|
||||
"Remove the custom font": "Bain an cló saincheaptha",
|
||||
"LCD": "LCD"
|
||||
"LCD": "LCD",
|
||||
"Blue": "Gorm"
|
||||
}
|
||||
|
|
|
@ -225,5 +225,6 @@
|
|||
"Show/Hide Buttons": "बटन दिखाएँ / छिपाएँ",
|
||||
"Custom Font": "कस्टम फ़ॉन्ट",
|
||||
"Remove the custom font": "कस्टम फ़ॉन्ट निकालें",
|
||||
"LCD": "LCD"
|
||||
"LCD": "LCD",
|
||||
"Blue": "नीला"
|
||||
}
|
||||
|
|
|
@ -225,5 +225,6 @@
|
|||
"Show/Hide Buttons": "Mostra / Nascondi pulsanti",
|
||||
"Custom Font": "Carattere personalizzato",
|
||||
"Remove the custom font": "Rimuovi il carattere personalizzato",
|
||||
"LCD": "LCD"
|
||||
"LCD": "LCD",
|
||||
"Blue": "Blu"
|
||||
}
|
||||
|
|
|
@ -225,5 +225,6 @@
|
|||
"Show/Hide Buttons": "ボタンの表示/非表示",
|
||||
"Custom Font": "カスタムフォント",
|
||||
"Remove the custom font": "カスタムフォントを削除する",
|
||||
"LCD": "LCD"
|
||||
"LCD": "液晶",
|
||||
"Blue": "青い"
|
||||
}
|
||||
|
|
|
@ -221,5 +221,6 @@
|
|||
"Show/Hide Buttons": "Show/Hide Buttons",
|
||||
"Custom Font": "Custom Font",
|
||||
"Remove the custom font": "Remove the custom font",
|
||||
"LCD": "LCD"
|
||||
"LCD": "LCD",
|
||||
"Blue": "Blue"
|
||||
}
|
||||
|
|
|
@ -225,5 +225,6 @@
|
|||
"Show/Hide Buttons": "Botões Mostrar / Ocultar",
|
||||
"Custom Font": "Fonte Personalizada",
|
||||
"Remove the custom font": "Remova a fonte personalizada",
|
||||
"LCD": "LCD"
|
||||
"LCD": "LCD",
|
||||
"Blue": "Azul"
|
||||
}
|
||||
|
|
|
@ -225,5 +225,6 @@
|
|||
"Show/Hide Buttons": "Показать / Скрыть кнопки",
|
||||
"Custom Font": "Пользовательский шрифт",
|
||||
"Remove the custom font": "Удалить пользовательский шрифт",
|
||||
"LCD": "LCD"
|
||||
"LCD": "ЖК",
|
||||
"Blue": "синий"
|
||||
}
|
||||
|
|
|
@ -224,5 +224,6 @@
|
|||
"Show/Hide Buttons": "显示/隐藏按钮",
|
||||
"Custom Font": "自定义字体",
|
||||
"Remove the custom font": "删除自定义字体",
|
||||
"LCD": "LCD"
|
||||
"LCD": "液晶显示器",
|
||||
"Blue": "蓝色"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue