summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouie S <louie@example.com>2023-09-16 09:36:14 -0400
committerLouie S <louie@example.com>2023-09-16 09:36:14 -0400
commit5ec8db4908fab13292c9b030f92e2468b9460e99 (patch)
tree64bd1fb7f5ee65d86b3547e44b0cecb668020dad
parent20979244067ca2068d5f2bb9500cdfcbca18842e (diff)
Color completed entries green
-rwxr-xr-xassignment-list.py2
-rw-r--r--entry.py10
2 files changed, 11 insertions, 1 deletions
diff --git a/assignment-list.py b/assignment-list.py
index 8683e79..194f130 100755
--- a/assignment-list.py
+++ b/assignment-list.py
@@ -1,7 +1,7 @@
#!/usr/bin/python3
import sys
import time
-from PyQt5.QtWidgets import QAction, QApplication, QHBoxLayout, QLabel, QMainWindow, QMenu, QMessageBox, QPushButton, QScrollArea, QToolBar, QVBoxLayout, QWidget
+from PyQt5.QtWidgets import QAction, QApplication, QHBoxLayout, QLabel, QMainWindow, QMenu, QMessageBox, QScrollArea, QToolBar, QVBoxLayout, QWidget
from PyQt5.QtGui import QCursor, QFont
from PyQt5.QtCore import QDate, Qt
from config import Config
diff --git a/entry.py b/entry.py
index b51f38d..0254093 100644
--- a/entry.py
+++ b/entry.py
@@ -26,6 +26,16 @@ class Entry:
if self.done:
bullet.setText("\u2713 ")
+ bullet.setStyleSheet("""
+ QLabel{
+ color: green;
+ }
+ """)
+ body.setStyleSheet("""
+ QLabel{
+ color: green;
+ }
+ """)
else:
bullet.setText("- ")
output.addWidget(bullet)