From 4e177f67d31eb088e0fe819c6eb93c4da3dd1a2e Mon Sep 17 00:00:00 2001 From: RadRussianRus Date: Thu, 31 May 2018 03:27:30 +0300 Subject: [PATCH] Added option to change input field colors --- README.md | 2 ++ slice/PageUsers.qml | 4 ++-- slice/theme.conf | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 27a607e..49faab1 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,8 @@ Create file `theme.conf.user` in theme folder. See `slice/theme.conf` for refere * `color_button_text` - button text color (in any state). Defaults to `#1f1f1f`. * `color_text` - main text and foreground elements color (such as progress bar and power icons). Defaults to `#dddddd`. * `color_placeholder_text` - placeholder text color (in password field). Defaults to `#888888`. +* `color_input_bg` - input field background color. Defaults to `#22ffffff`. +* `color_input_text` - input field background color. Defaults to `#dddddd`. * `color_selection_bg` - selected text background color. Defaults to `#555555`. * `color_selection_text` - selected text color. Defaults to `#dddddd`. * `color_text_bg` - text elements background color. Defaults to `#22ffffff`. diff --git a/slice/PageUsers.qml b/slice/PageUsers.qml index 20b923e..5e90a34 100644 --- a/slice/PageUsers.qml +++ b/slice/PageUsers.qml @@ -220,7 +220,7 @@ Item width: parent.width - 20 height: 25 opacity: hasLoginShown ? 1 : 0 - color: config.color_text + color: config.color_input_text selectionColor: config.color_selection_bg selectedTextColor: config.color_selection_text @@ -264,7 +264,7 @@ Item y: hasLoginShown ? pageRoot.height / 2.3 + 30 : pageRoot.height / 2.3 + 55 width: parent.width height: 40 - color: config.color_text_bg + color: config.color_input_bg opacity: hasLoginShown ? 1 : 0 } diff --git a/slice/theme.conf b/slice/theme.conf index 69a8a70..55de911 100644 --- a/slice/theme.conf +++ b/slice/theme.conf @@ -9,6 +9,8 @@ color_button_bg_selected_hover=#cccccc color_button_text=#1f1f1f color_text=#dddddd color_placeholder_text=#888888 +color_input_bg=#22ffffff +color_input_text=#dddddd color_selection_bg=#555555 color_selection_text=#dddddd color_text_bg=#22ffffff