Skip to content

Commit

Permalink
Added option to change input field colors
Browse files Browse the repository at this point in the history
  • Loading branch information
EricKotato committed May 31, 2018
1 parent 757cdc2 commit 4e177f6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down
4 changes: 2 additions & 2 deletions slice/PageUsers.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
}

Expand Down
2 changes: 2 additions & 0 deletions slice/theme.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4e177f6

Please sign in to comment.