Skip to content

Commit

Permalink
fixed slogan font in settings
Browse files Browse the repository at this point in the history
  • Loading branch information
saschaludwig committed Feb 5, 2022
1 parent 7c61d85 commit 6f7822a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ All notable changes to this project will be documented in this file.
- refactored text clock code
- fixed crash when using API to configure boolean fields
- API: you can now use colors in web notation (#00FF00) and hex notation (0x00FF00)
- fixed slogan font in settings

### Added
- french localization for textclock
Expand Down
6 changes: 3 additions & 3 deletions settings_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,9 +403,9 @@ def restoreSettingsFromConfig(self):
self.ExampleFont_StationName.setFont(QFont(settings.value('StationNameFontName', "FreeSans"),
settings.value('StationNameFontSize', 24, type=int),
settings.value('StationNameFontWeight', QFont.Bold, type=int)))
self.ExampleFont_Slogan.setFont(QFont(settings.value('SloganNameFontName', "FreeSans"),
settings.value('SloganNameFontSize', 18, type=int),
settings.value('SloganNameFontWeight', QFont.Bold, type=int)))
self.ExampleFont_Slogan.setFont(QFont(settings.value('SloganFontName', "FreeSans"),
settings.value('SloganFontSize', 18, type=int),
settings.value('SloganFontWeight', QFont.Bold, type=int)))
self.ExampleFont_LED1.setText(f"{settings.value('LED1FontName', 'FreeSans')}, "
f"{settings.value('LED1FontSize', 24, type=int)}pt")
self.ExampleFont_LED2.setText(f"{settings.value('LED2FontName', 'FreeSans')}, "
Expand Down
2 changes: 1 addition & 1 deletion start.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
from urllib.parse import unquote

import ntplib
from PyQt5.QtCore import Qt, QSettings, QCoreApplication, QTimer, QDate, QLocale, QThread, pyqtSignal
from PyQt5.QtCore import Qt, QSettings, QCoreApplication, QTimer, QDate, QLocale, QThread
from PyQt5.QtGui import QCursor, QPalette, QKeySequence, QIcon, QPixmap, QFont
from PyQt5.QtNetwork import QUdpSocket, QNetworkInterface
from PyQt5.QtWidgets import QApplication, QWidget, QShortcut, QDialog, QLineEdit, QVBoxLayout, QLabel
Expand Down

0 comments on commit 6f7822a

Please sign in to comment.