QGtk3Theme: define light, midlight, mid, dark and shadow colors

Define color groups used for shading and in order to render specific
inactive texts, e.g. menu item text.

Found-by: Piotr Wierciński <piotr.wiercinski@qt.io>
Change-Id: I736f5aff1ff5379ce3f78b53e547b0b5f552779f
Reviewed-by: Santhosh Kumar <santhosh.kumar.selvaraj@qt.io>
Reviewed-by: Piotr Wierciński <piotr.wiercinski@qt.io>
(cherry picked from commit fd09519bbd4e7ea89b898c7496e7e06980ee9672)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit 516cae81dfc82c7289445c34389aa6bf0de2d79f)
This commit is contained in:
Axel Spoerl 2023-10-19 15:19:12 +02:00 committed by Qt Cherry-pick Bot
parent c58254ca2c
commit 57c2e60b58

View File

@ -579,6 +579,18 @@ void QGtk3Storage::createMapping()
MODIFY(Normal, Text, -100, -100, -100);
ADD(All, PlaceholderText, Dark);
// Light, midlight, dark, mid, shadow colors
LIGHTER(Normal, Button, 125);
ADD(All, Light)
LIGHTER(Normal, Button, 113);
ADD(All, Midlight)
LIGHTER(Normal, Button, 113);
ADD(All, Mid)
LIGHTER(Normal, Button, 87);
ADD(All, Dark)
LIGHTER(Normal, Button, 5);
ADD(All, Shadow)
SAVE(SystemPalette);
CLEAR;
}