重新初始化项目
This commit is contained in:
21
src/main/resources/ui/start_lamp.css
Normal file
21
src/main/resources/ui/start_lamp.css
Normal file
@@ -0,0 +1,21 @@
|
||||
/* 设置 ScrollPane 本身背景透明 */
|
||||
.scroll-pane {
|
||||
-fx-background-color: transparent; /* 去除ScrollPane 边框和背景透明 */
|
||||
-fx-background-insets: 0; /* 去除内边距影响 */
|
||||
}
|
||||
|
||||
/* 关键:设置视口(viewport)背景透明 */
|
||||
.scroll-pane .viewport {
|
||||
-fx-background-color: transparent; /* 视口内容区域透明 */
|
||||
}
|
||||
|
||||
/* 可选:设置滚动条背景透明(如需隐藏滚动条背景) */
|
||||
.scroll-pane .scroll-bar {
|
||||
-fx-background-color: transparent;
|
||||
}
|
||||
|
||||
/* 可选:设置滚动条滑块样式(增强视觉效果) */
|
||||
.scroll-pane .scroll-bar .thumb {
|
||||
-fx-background-color: rgba(0, 0, 0, 0.2); /* 半透明滑块 */
|
||||
-fx-background-radius: 5px;
|
||||
}
|
||||
Reference in New Issue
Block a user