LiquidGUI [1.1.3.0]
- Added emoji to value text. - Refactored label styling.
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
from PySide6.QtWidgets import QLabel
|
||||
from PySide6.QtGui import QFont
|
||||
from PySide6.QtCore import Qt
|
||||
|
||||
class MainLabel(QLabel):
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
self.setAlignment(Qt.AlignmentFlag.AlignCenter)
|
||||
self.setFont(QFont("Calibri",
|
||||
18,
|
||||
weight=QFont.Weight.ExtraBold))
|
||||
class SubLabel(QLabel):
|
||||
""" Formatting for sub-labels. """
|
||||
|
||||
def __init__(self, value):
|
||||
super().__init__()
|
||||
self.setFont(QFont("Calibri", 12, weight=QFont.Weight.Thin))
|
||||
self.setText(value)
|
||||
class SubLabelValue(QLabel):
|
||||
""" Formatting for values. """
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
self.setAlignment(Qt.AlignmentFlag.AlignRight)
|
||||
self.setFont(QFont("Cascadia Code", 8))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user