From a0ae4fe8cbfbbf86058b8d9f30e6bf09d04c583b Mon Sep 17 00:00:00 2001 From: Rafael Irgolic Date: Wed, 17 Feb 2021 21:10:58 +0000 Subject: [PATCH] New palette colors --- Orange/widgets/data/__init__.py | 12 +++++++++++- Orange/widgets/evaluate/__init__.py | 12 +++++++++++- Orange/widgets/model/__init__.py | 11 ++++++++++- Orange/widgets/unsupervised/__init__.py | 11 ++++++++++- Orange/widgets/visualize/__init__.py | 11 ++++++++++- 5 files changed, 52 insertions(+), 5 deletions(-) diff --git a/Orange/widgets/data/__init__.py b/Orange/widgets/data/__init__.py index 26a3816dc4c..5e3c3862d8e 100644 --- a/Orange/widgets/data/__init__.py +++ b/Orange/widgets/data/__init__.py @@ -1,3 +1,4 @@ + NAME = "Data" ID = "orange.widgets.data" @@ -12,6 +13,15 @@ ICON = "icons/Category-Data.svg" -BACKGROUND = "#FFD39F" +from AnyQt.QtGui import QPalette + +BACKGROUND = { + 'light': { + QPalette.Light: '#febc57', + QPalette.Midlight: '#fe9457', + QPalette.Button: '#fe9057', + }, + 'plain': "#FFD39F", +} PRIORITY = 1 diff --git a/Orange/widgets/evaluate/__init__.py b/Orange/widgets/evaluate/__init__.py index b19110dba1e..38c479dc53f 100644 --- a/Orange/widgets/evaluate/__init__.py +++ b/Orange/widgets/evaluate/__init__.py @@ -2,11 +2,21 @@ Widgets from Evaluate category """ + NAME = "Evaluate" DESCRIPTION = "Evaluate classification/regression performance." -BACKGROUND = "#C3F3F3" +from AnyQt.QtGui import QPalette + +BACKGROUND = { + 'light': { + QPalette.Light: '#a5ebeb', + QPalette.Midlight: '#5cebeb', + QPalette.Button: '#4be3f2', + }, + 'plain': "#C3F3F3", +} ICON = "icons/Category-Evaluate.svg" diff --git a/Orange/widgets/model/__init__.py b/Orange/widgets/model/__init__.py index d43d24dd36d..5693e3f8cdb 100644 --- a/Orange/widgets/model/__init__.py +++ b/Orange/widgets/model/__init__.py @@ -4,7 +4,16 @@ DESCRIPTION = 'Prediction.' -BACKGROUND = '#FAC1D9' +from AnyQt.QtGui import QPalette + +BACKGROUND = { + 'light': { + QPalette.Light: '#ffbddb', + QPalette.Midlight: '#ff8dc6', + QPalette.Button: '#f175b6', + }, + 'plain': "#FAC1D9", +} ICON = 'icons/Category-Model.svg' diff --git a/Orange/widgets/unsupervised/__init__.py b/Orange/widgets/unsupervised/__init__.py index 912138e530e..f8c4cb96834 100644 --- a/Orange/widgets/unsupervised/__init__.py +++ b/Orange/widgets/unsupervised/__init__.py @@ -13,7 +13,16 @@ DESCRIPTION = "Unsupervised learning." -BACKGROUND = "#CAE1EF" +from AnyQt.QtGui import QPalette + +BACKGROUND = { + 'light': { + QPalette.Light: '#aed2d9', + QPalette.Midlight: '#5abced', + QPalette.Button: '#499fd8', + }, + 'plain': "#CAE1EF", +} ICON = "icons/Category-Unsupervised.svg" diff --git a/Orange/widgets/visualize/__init__.py b/Orange/widgets/visualize/__init__.py index ff3394c681d..547405a34c0 100644 --- a/Orange/widgets/visualize/__init__.py +++ b/Orange/widgets/visualize/__init__.py @@ -15,7 +15,16 @@ DESCRIPTION = "Widgets for data visualization." -BACKGROUND = "#FFB7B1" +from AnyQt.QtGui import QPalette + +BACKGROUND = { + 'light': { + QPalette.Light: '#f2b6b8', + QPalette.Midlight: '#ff8a99', + QPalette.Button: '#ff7a8a', + }, + 'plain': "#FFB7B1", +} ICON = "icons/Category-Visualize.svg"