/* * Metro style Push Button * Author: Pedro Duque Vieira * http://pixelduke.wordpress.com/2012/10/23/jmetro-windows-8-controls-on-java/ */ .button { -fx-padding: 5 22 5 22; -fx-border-color: #FFFFFF; -fx-border-width: 2; -fx-background-radius: 0; -fx-background-color: #08BEFD; -fx-font-family: "Segoe UI", Helvetica, Arial, sans-serif; -fx-font-size: 12pt; -fx-text-fill: #FFFFFF; -fx-background-insets: 0 0 0 0, 0, 1, 2; } .button:hover { -fx-background-color: #C377FE; } .button:pressed, .button:default:hover:pressed { -fx-background-color: white; -fx-text-fill: #08BEFD; } .button:focused { -fx-border-color: white, white; -fx-border-width: 1, 1; -fx-border-style: solid, segments(1, 1); -fx-border-radius: 0, 0; -fx-border-insets: 1 1 1 1, 0; } .button:disabled, .button:default:disabled { -fx-opacity: 0.4; -fx-background-color: #08BEFD; -fx-text-fill: white; } .button:default { -fx-background-color: -fx-focus-color; -fx-text-fill: #ffffff; } .button:default:hover { -fx-background-color: derive(-fx-focus-color,30%); } /* * 注册账号及找回密码的Button */ #registerButton { -fx-padding: 1 24 1 24; -fx-border-color: #FFFFFF; -fx-border-width: 2; -fx-background-radius: 0; -fx-background-color: #08BEFD; -fx-font-family: "Segoe UI", Helvetica, Arial, sans-serif; -fx-font-size: 12pt; -fx-text-fill: #FFFFFF; -fx-background-insets: 0 0 0 0, 0, 1, 2; } #refindButton { -fx-padding: 1 24 1 24; -fx-border-color: #FFFFFF; -fx-border-width: 2; -fx-background-radius: 0; -fx-background-color: #08BEFD; -fx-font-family: "Segoe UI", Helvetica, Arial, sans-serif; -fx-font-size: 12pt; -fx-text-fill: #FFFFFF; -fx-background-insets: 0 0 0 0, 0, 1, 2; } /* * 针对区域设置不同的颜色 */ #upSplite{ -fx-background-color: #586AFF; }