10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package com.javafx.experiments.dukepad.calculator;
27
28 import com.javafx.experiments.dukepad.core.Fonts;
29 import com.sun.javafx.util.Utils;
30 import com.sun.javafx.scene.control.skin.ButtonSkin;
31 import com.sun.javafx.scene.control.skin.TextFieldSkin;
32 import javafx.beans.value.ChangeListener;
33 import javafx.beans.value.ObservableValue;
34 import javafx.geometry.Insets;
35 import javafx.geometry.Pos;
36 import javafx.scene.Node;
37 import javafx.scene.control.Button;
38 import javafx.scene.control.ContentDisplay;
39 import javafx.scene.control.TextField;
40 import javafx.scene.layout.Background;
41 import javafx.scene.layout.BackgroundFill;
42 import javafx.scene.layout.CornerRadii;
43 import javafx.scene.layout.Region;
44 import javafx.scene.paint.*;
45 import javafx.scene.text.Font;
46 import javafx.scene.text.Text;
47 import javafx.scene.text.TextAlignment;
48
49 /**
50 * This is used in place of CSS because the CSS processing was just too slow.
51 */
52 public class CalculatorTheme {
53 private static final Color SHADOW_C1 = new Color(1, 1, 1, .07);
54 private static final Color SHADOW_C2 = new Color(1, 1, 1, .7);
55 private static final Color SHADOW_C3 = new Color(1, 1, 1, .75);
56
|
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package com.javafx.experiments.dukepad.calculator;
27
28 import com.javafx.experiments.dukepad.core.Fonts;
29 import com.sun.javafx.util.Utils;
30 import javafx.scene.control.skin.ButtonSkin;
31 import javafx.scene.control.skin.TextFieldSkin;
32 import javafx.beans.value.ChangeListener;
33 import javafx.beans.value.ObservableValue;
34 import javafx.geometry.Insets;
35 import javafx.geometry.Pos;
36 import javafx.scene.control.Button;
37 import javafx.scene.control.ContentDisplay;
38 import javafx.scene.control.TextField;
39 import javafx.scene.layout.Background;
40 import javafx.scene.layout.BackgroundFill;
41 import javafx.scene.layout.CornerRadii;
42 import javafx.scene.layout.Region;
43 import javafx.scene.paint.*;
44 import javafx.scene.text.Font;
45 import javafx.scene.text.Text;
46 import javafx.scene.text.TextAlignment;
47
48 /**
49 * This is used in place of CSS because the CSS processing was just too slow.
50 */
51 public class CalculatorTheme {
52 private static final Color SHADOW_C1 = new Color(1, 1, 1, .07);
53 private static final Color SHADOW_C2 = new Color(1, 1, 1, .7);
54 private static final Color SHADOW_C3 = new Color(1, 1, 1, .75);
55
|