convert the existing system-specific LnF to generic system

auto-update
Zlatin Balevsky 2021-10-25 23:12:06 +01:00
parent 8392f1af5b
commit 1fa08728db
No known key found for this signature in database
GPG Key ID: A72832072D525E41
1 changed files with 7 additions and 0 deletions

View File

@ -71,6 +71,11 @@ class Initialize extends AbstractLifecycleHandler {
guiPropsFile.withInputStream { props.load(it) }
uiSettings = new UISettings(props)
if (LNFs.SYSTEM_ALIASES.contains(uiSettings.lnf)) {
log.info("converting user specified lnf from ${uiSettings.lnf} to system")
uiSettings.lnf = "system"
}
def lnf
log.info("settting user-specified lnf $uiSettings.lnf")
try {
@ -79,6 +84,8 @@ class Initialize extends AbstractLifecycleHandler {
log.log(Level.WARNING,"couldn't set desired look and feel, switching to defaults", bad)
lnf = lookAndFeel("system","gtk","metal")
uiSettings.lnf = lnf.getID()
if(LNFs.SYSTEM_ALIASES.contains(uiSettings.lnf))
uiSettings.lnf = "system"
}
if (uiSettings.font != null || uiSettings.autoFontSize || uiSettings.fontSize > 0 ) {