diff --git a/data/common.css b/data/common.css index 0acd83b4..aeeba604 100644 --- a/data/common.css +++ b/data/common.css @@ -1,6 +1,33 @@ -/* Theme independent style */ +/* Theme independent styles */ + +sq_view { + font-family: cantarell, sans-serif; + font-size: 1.5em; +} + +sq_button { + border-radius: 4px; + margin: 2px; +} + +sq_view.wide sq_button { + margin: 3px; +} + +sq_button.latched, +sq_button.locked { + font-weight: bold; +} + +sq_button.action { + font-size: 0.75em; +} + +sq_button.small { + font-size: 0.5em; +} sq_view.pin sq_button { border-radius: 0px; margin: 1px 1px 1px 1px; -} +} \ No newline at end of file diff --git a/data/style-Adwaita:dark.css b/data/style-Adwaita:dark.css index 8a89a4d4..f5ef3f88 100644 --- a/data/style-Adwaita:dark.css +++ b/data/style-Adwaita:dark.css @@ -1,34 +1,22 @@ +/* Adwaita-dark style keyboard */ sq_view { background-color: rgba(0, 0, 0, 255); color: #ffffff; - font-family: cantarell, sans-serif; - font-size: 25px; } sq_view sq_button { color: #deddda; background: #464448; - border-style: solid; - border-width: 1px; - border-color: #5e5c64; - border-radius: 3px; - margin: 4px 2px 4px 2px; -} - -sq_view.wide sq_button { - margin: 1px 1px 1px 1px; } sq_button:active { background: #747077; - border-color: #96949d; } sq_button.altline, sq_button.special, sq_button.wide { background: #2b292f; - border-color: #3e3a44; } sq_button.latched { @@ -41,22 +29,12 @@ sq_button.locked { color: #1c71d8; } -sq_button.action { - font-size: 0.75em; -} - -sq_button.small { - font-size: 0.5em; -} - #Return { background: #1c71d8; - border-color: #1a5fb4; } #Return:active { background: #1c71d8; - border-color: #3584e4; } @import url("resource:///sm/puri/squeekboard/common.css"); diff --git a/data/style.css b/data/style.css index 3feec5c7..cd685f14 100644 --- a/data/style.css +++ b/data/style.css @@ -1,65 +1,47 @@ +/* Keyboard style */ sq_view { - background-color: @theme_base_color; /*rgba(0, 0, 0, 255);*/ - color: @theme_text_color; /*#ffffff;*/ - font-family: cantarell, sans-serif; - font-size: 25px; + background-color: mix(@theme_base_color, @theme_fg_color, 0.1); + box-shadow:inset 0 1px 0 0 mix(@borders, @theme_base_color, 0.8); } -sq_view sq_button { - color: @theme_fg_color; /*#deddda;*/ - background: mix(@theme_bg_color, @theme_base_color, -0.5); /* #464448; */ - border-style: solid; - border-width: 1px; - border-color: @borders; /* #5e5c64;*/ - border-radius: 3px; - margin: 4px 2px 4px 2px; +sq_button { + color: @theme_fg_color; + background: alpha(@theme_fg_color, 0.07); + box-shadow: 0 1px 0 0 rgba(0,0,0,0.2); } -sq_view.wide sq_button { - margin: 1px 1px 1px 1px; -} - -sq_button:active, -sq_button.altline:active, -sq_button.special:active, -sq_button.wide:active { - background: mix(@theme_bg_color, @theme_selected_bg_color, 0.4);/* #747077; */ - border-color: mix(@borders, @theme_selected_fg_color, 0.5);/* #96949d; */ +sq_button:active { + background: alpha(@theme_fg_color, 0.11); } sq_button.altline, -sq_button.special, -sq_button.wide { - background: mix(@theme_bg_color, @theme_base_color, 0.5); /*#2b292f;*/ - border-color: @borders; /* #3e3a44; */ +sq_button.special { + background: alpha(@theme_fg_color, 0.15); +} + +sq_button.altline:active, +sq_button.special:active { + background: alpha(@theme_fg_color, 0.2); } sq_button.latched { - background: @theme_fg_color; /*#ffffff;*/ - color: @theme_bg_color; /*#2b292f;*/ + background: alpha(@theme_fg_color, 0.2); + color: alpha(@theme_fg_color, 0.8); } sq_button.locked { - background: @theme_fg_color; /*#ffffff;*/ - color: mix(@theme_selected_bg_color, @theme_bg_color, 0.4); /*#2b292f;*/ -} - -sq_button.action { - font-size: 0.75em; -} - -sq_button.small { - font-size: 0.5em; + background: alpha(@theme_fg_color, 0.5); + color: @theme_base_color; } #Return { - background: @theme_selected_bg_color; /* #1c71d8; */ - border-color: @borders; /*#1a5fb4;*/ + background: @theme_selected_bg_color; + color: @theme_selected_fg_color; } #Return:active { - background: mix(@theme_selected_bg_color, @theme_bg_color, 0.4); /*#1c71d8;*/ - border-color: @borders; /*#3584e4;*/ + background: mix(@theme_selected_bg_color, black, 0.2); + color: mix(@theme_selected_fg_color, black, 0.2); } @import url("resource:///sm/puri/squeekboard/common.css");