From 1ccc37d0fcf528bf4fe913ddb08b47456b6a3d19 Mon Sep 17 00:00:00 2001 From: Peter Hartmann Date: Fri, 16 Jun 2023 10:59:32 +0200 Subject: [PATCH] windows skin: Style keyboard --- skins/windows/QskWindowsSkin.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/skins/windows/QskWindowsSkin.cpp b/skins/windows/QskWindowsSkin.cpp index 8021a2ed..6a6c04c4 100644 --- a/skins/windows/QskWindowsSkin.cpp +++ b/skins/windows/QskWindowsSkin.cpp @@ -889,6 +889,20 @@ void Editor::setupSubWindow() void Editor::setupVirtualKeyboard() { + using Q = QskVirtualKeyboard; + + setMargin( Q::ButtonPanel, 2 ); + setGradient( Q::ButtonPanel, theme.palette.fillColor.control.defaultColor ); + setGradient( Q::ButtonPanel | Q::Hovered, theme.palette.fillColor.control.secondary ); + setGradient( Q::ButtonPanel | QskPushButton::Pressed, theme.palette.fillColor.control.tertiary ); + + setColor( Q::ButtonText, theme.palette.fillColor.text.primary ); + setFontRole( Q::ButtonText, QskWindowsSkin::BodyLarge ); + setColor( Q::ButtonText | QskPushButton::Pressed, theme.palette.fillColor.text.secondary ); + + setGradient( Q::Panel, theme.palette.background.fillColor.solidBackground.secondary ); + setPadding( Q::Panel, 8 ); + } QskWindowsTheme::QskWindowsTheme( Theme lightness )