1 /* 2 * Copyright (c) 2014, Oracle and/or its affiliates. 3 * All rights reserved. Use is subject to license terms. 4 * 5 * This file is available and licensed under the following license: 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 11 * - Redistributions of source code must retain the above copyright 12 * notice, this list of conditions and the following disclaimer. 13 * - Redistributions in binary form must reproduce the above copyright 14 * notice, this list of conditions and the following disclaimer in 15 * the documentation and/or other materials provided with the distribution. 16 * - Neither the name of Oracle Corporation nor the names of its 17 * contributors may be used to endorse or promote products derived 18 * from this software without specific prior written permission. 19 * 20 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 21 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 23 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 24 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 25 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 26 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 30 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 */ 32 33 /******************************************************************************* 34 * * 35 * Embedded Styling * 36 * * 37 ******************************************************************************/ 38 39 .touch-sizes .button, 40 .touch-sizes .toggle-button, 41 .touch-sizes .label { 42 -fx-padding: 0.5em 1.1em 0.5em 1.1em; 43 -fx-font-size: 1.5em; 44 } 45 .touch-sizes .scroll-bar > .increment-button, 46 .touch-sizes .scroll-bar > .decrement-button { 47 -fx-padding: 0.75em; 48 } 49 .touch-sizes .list-view .list-cell { 50 -fx-padding: 0.4em 0.8em 0.4em 0.8em; 51 } 52 .touch-sizes .list-view .list-cell { 53 -fx-font-size: 1.3em; 54 } 55 .touch-sizes .slider { 56 -fx-min-width: 200px; 57 } 58 .touch-sizes .slider .track { 59 -fx-padding: 0.5em; 60 } 61 .touch-sizes .slider .thumb { 62 -fx-padding: 1.3em; 63 -fx-background-radius: 100; 64 } 65 66 /******************************************************************************* 67 * * 68 * High Contrast Theme * 69 * * 70 ******************************************************************************/ 71 72 .contrast { 73 -app-color-hi: #5bf900; 74 -app-color-lo: black; 75 -app-hover: #666666; 76 -fx-background-color: -app-color-lo; 77 } 78 79 /*-------------------------- map pin ------------------------- */ 80 81 .map-pin { 82 -fx-shape: "M13.558,0C6.07,0,0,6.07,0,13.558s13.558,22.346,13.558,22.346s13.558-14.858,13.558-22.346S21.045,0,13.558,0z 83 M13.558,20.762c-4.084,0-7.395-3.311-7.395-7.395s3.311-7.395,7.395-7.395c4.084,0,7.396,3.311,7.396,7.395 84 S17.642,20.762,13.558,20.762z"; 85 -fx-background-color: black, white; 86 -fx-background-insets: 0, 2; 87 -fx-effect: dropshadow( two-pass-box, rgba(0, 0, 0, 0.5), 10, 0.0, 0, 10 ); 88 -fx-pref-width: 48; 89 -fx-pref-height: 60; 90 } 91 .map-pin .arrow-button .arrow { 92 -fx-padding: 0; 93 } 94 .contrast .map-pin { 95 -fx-background-color: -app-color-lo, -app-color-hi; 96 } 97 98 /*------------------ button, toggle buttons ------------------ */ 99 100 .contrast .button, 101 .contrast .toggle-button { 102 -fx-text-fill: -app-color-hi; 103 -fx-background-color: -app-color-hi, -app-color-lo; 104 -fx-background-insets: 0, 2; 105 -fx-background-radius: 2, 1; 106 } 107 .contrast .toggle-button:selected { 108 -fx-background-color: -app-color-hi, -app-hover; 109 } 110 .contrast .button:hover, 111 .contrast .toggle-button:hover { 112 -fx-background-color: -app-color-hi, -app-hover; 113 } 114 .contrast .toggle-button.left-pill { 115 -fx-background-insets: 0, 2 1 2 2; 116 -fx-background-radius: 2 0 0 2, 1 0 0 1; 117 } 118 .contrast .toggle-button.right-pill { 119 -fx-background-insets: 0, 2 2 2 1; 120 -fx-background-radius: 0 2 2 0, 0 1 1 0; 121 } 122 123 /*-------------------------- labels -------------------------- */ 124 125 .contrast .label { 126 -fx-text-fill: -app-color-hi; 127 } 128 129 /*-------------------------- slider -------------------------- */ 130 131 .contrast .slider .track { 132 -fx-background-color: -app-color-hi, -app-color-lo; 133 -fx-background-insets: 0, 1; 134 } 135 .contrast .slider .thumb { 136 -fx-background-color: -app-color-hi, -app-color-lo; 137 -fx-background-insets: 0, 2; 138 } 139 .contrast .slider .thumb:hover { 140 -fx-background-color: -app-color-hi, -app-hover; 141 } 142 143 /*------------------------- ListView ------------------------- */ 144 145 .contrast .list-view { 146 -fx-background-color: -app-color-lo; 147 } 148 .contrast .list-view .list-cell .text { 149 -fx-fill: -app-color-hi; 150 } 151 .contrast .list-view .list-cell { 152 -fx-background-color: -app-color-lo; 153 } 154 .contrast .list-view .list-cell:filled:hover { 155 -fx-background-color: -app-hover; 156 } 157 .contrast .list-view .list-cell:selected:filled:hover { 158 -fx-background-color: -app-color-hi; 159 } 160 .contrast .list-view .list-cell:selected { 161 -fx-background-color: -app-color-hi; 162 } 163 .contrast .list-view .list-cell:selected .text { 164 -fx-fill: -app-color-lo; 165 } 166 167 /*------------------------ ScrollBars ------------------------ */ 168 169 .contrast .scroll-bar .track-background { 170 -fx-background-color: -app-color-lo; 171 } 172 .contrast .scroll-bar:vertical { 173 -fx-background-color: -app-color-lo; 174 -fx-background-insets: 0; 175 } 176 .contrast .scroll-bar:horizontal { 177 -fx-background-color: -app-color-lo; 178 -fx-background-insets: 0; 179 } 180 .contrast .scroll-bar .thumb { 181 -fx-background-color: -app-color-hi, -app-color-lo; 182 } 183 .contrast .scroll-bar > .increment-button > .increment-arrow, 184 .contrast .scroll-bar > .decrement-button > .decrement-arrow { 185 -fx-background-color: -app-color-hi; 186 } 187 .contrast .scroll-pane > .corner { 188 -fx-background-color: -app-color-lo; 189 -fx-background-insets: 0; 190 } 191 192 /*------------------------ SplitPane ------------------------- */ 193 194 .contrast .split-pane { 195 -fx-background-color: -app-color-lo; 196 } 197 .contrast .split-pane > .split-pane-divider { 198 -fx-background-color: -app-color-lo; 199 }