Experiment with changing styles.
This commit is contained in:
parent
527cfe80d3
commit
47a8fcd67d
10
main.py
10
main.py
@ -7,6 +7,9 @@ import time
|
|||||||
import webbrowser
|
import webbrowser
|
||||||
|
|
||||||
from PySide2.QtCore import QObject, QThread, Signal, Slot
|
from PySide2.QtCore import QObject, QThread, Signal, Slot
|
||||||
|
|
||||||
|
from PySide2.QtGui import QPalette, QColor
|
||||||
|
|
||||||
from PySide2.QtWidgets import (
|
from PySide2.QtWidgets import (
|
||||||
QApplication,
|
QApplication,
|
||||||
QDialog,
|
QDialog,
|
||||||
@ -48,6 +51,11 @@ class Dialog(QDialog):
|
|||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(Dialog, self).__init__()
|
super(Dialog, self).__init__()
|
||||||
|
|
||||||
|
palette = self.palette()
|
||||||
|
palette.setColor(QPalette.Window, QColor(255, 255, 255))
|
||||||
|
self.setPalette(palette)
|
||||||
|
self.setAutoFillBackground(True)
|
||||||
|
|
||||||
self.setWindowTitle("OrgEditor")
|
self.setWindowTitle("OrgEditor")
|
||||||
scrSize = self.screen().size()
|
scrSize = self.screen().size()
|
||||||
self.resize(scrSize.width() / 1.5, scrSize.height() / 1.5)
|
self.resize(scrSize.width() / 1.5, scrSize.height() / 1.5)
|
||||||
@ -156,7 +164,7 @@ class Dialog(QDialog):
|
|||||||
|
|
||||||
def build_agenda_task_widget(self, item):
|
def build_agenda_task_widget(self, item):
|
||||||
box = QHBoxLayout()
|
box = QHBoxLayout()
|
||||||
frame = QGroupBox()
|
frame = QFrame()
|
||||||
frame.setLayout(box)
|
frame.setLayout(box)
|
||||||
|
|
||||||
state_button = QPushButton(text=f"{item.state or '-'}", maximumWidth=60)
|
state_button = QPushButton(text=f"{item.state or '-'}", maximumWidth=60)
|
||||||
|
Loading…
Reference in New Issue
Block a user