mirror of
https://gitee.com/willfree/minoaClientWindows_gradle.git
synced 2026-06-12 19:08:02 +08:00
53 lines
1.0 KiB
CSS
53 lines
1.0 KiB
CSS
/*
|
|
* Metro style Push Button
|
|
* Author: wefree
|
|
*/
|
|
.barButton {
|
|
-fx-padding: 10 22 10 22;
|
|
-fx-border-width: 0;
|
|
-fx-background-radius: 0;
|
|
-fx-background-color: #8C634F;
|
|
-fx-background-insets: 0 0 0 0, 0, 1, 2;
|
|
}
|
|
|
|
.barButton:hover {
|
|
-fx-background-color: #3a3a3a;
|
|
}
|
|
|
|
.barButton:pressed, .button:default:hover:pressed {
|
|
-fx-background-color: white;
|
|
}
|
|
|
|
.barButton:focused {
|
|
-fx-background-color: #3a3a3a;
|
|
-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; */
|
|
}
|
|
|
|
.barButton:disabled, .button:default:disabled {
|
|
-fx-opacity: 0.4;
|
|
-fx-background-color: #1d1d1d;
|
|
}
|
|
|
|
.barButton:default {
|
|
-fx-background-color: -fx-focus-color;
|
|
}
|
|
|
|
.barButton:default:hover {
|
|
-fx-background-color: derive(-fx-focus-color,30%);
|
|
}
|
|
|
|
/*
|
|
* 针对导航栏区域设置不同的颜色
|
|
*/
|
|
|
|
#mainBar{
|
|
-fx-background-color: #8C634F;
|
|
}
|
|
|
|
#secondaryBar{
|
|
-fx-background-color: #E7E5E5;
|
|
} |