From 026c500802ed1943ca64b2a3beadb9da98928e1f Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Mon, 1 Jul 2019 11:08:14 -0700 Subject: [PATCH] minor improvements to css --- app/task/taskmanager.cpp | 2 +- app/ui/style/css/olive-dark.css | 5 +++++ app/ui/style/css/olive-light.css | 5 +++++ app/ui/style/css/olive-mid.css | 5 +++++ 4 files changed, 16 insertions(+), 1 deletion(-) diff --git a/app/task/taskmanager.cpp b/app/task/taskmanager.cpp index 1ad215a70..1414d84b4 100644 --- a/app/task/taskmanager.cpp +++ b/app/task/taskmanager.cpp @@ -96,7 +96,7 @@ void TaskManager::DeleteTask(Task *t) tasks_.removeAll(t); // Destroy Task object - delete t; + t->deleteLater(); } void TaskManager::TaskCallback(Task::Status status) diff --git a/app/ui/style/css/olive-dark.css b/app/ui/style/css/olive-dark.css index 31d8ced4a..713692a38 100644 --- a/app/ui/style/css/olive-dark.css +++ b/app/ui/style/css/olive-dark.css @@ -71,6 +71,11 @@ QMenu { background: #191919; } +/* QProgressBar background is dark */ +QProgressBar { + background: #191919; +} + /* Ensure QPushButtons look dark when checked */ QPushButton::checked { background: #191919; diff --git a/app/ui/style/css/olive-light.css b/app/ui/style/css/olive-light.css index 716af5fa5..07d7d2b99 100644 --- a/app/ui/style/css/olive-light.css +++ b/app/ui/style/css/olive-light.css @@ -71,6 +71,11 @@ QMenu { background: #f0f0f0; } +/* QProgressBar background is dark */ +QProgressBar { + background: #f0f0f0; +} + /* Ensure QPushButtons look dark when checked */ QPushButton::checked { background: #f0f0f0; diff --git a/app/ui/style/css/olive-mid.css b/app/ui/style/css/olive-mid.css index 0b57a3f90..92c84eaba 100644 --- a/app/ui/style/css/olive-mid.css +++ b/app/ui/style/css/olive-mid.css @@ -71,6 +71,11 @@ QMenu { background: #c0c0c0; } +/* QProgressBar background is dark */ +QProgressBar { + background: #c0c0c0; +} + /* Ensure QPushButtons look dark when checked */ QPushButton::checked { background: #c0c0c0;