-
Notifications
You must be signed in to change notification settings - Fork 311
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Toggle switch for a column visibility
Update issue #2405
- Loading branch information
Showing
5 changed files
with
187 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
69 changes: 69 additions & 0 deletions
69
ganttproject/src/main/sass/biz/ganttproject/app/StatusBar.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
/*! | ||
* Copyright 2024 BarD Software s.r.o., Dmitry Barashev. | ||
* | ||
* This file is part of GanttProject, an opensource project management tool. | ||
* | ||
* GanttProject is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* GanttProject is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with GanttProject. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
@import "theme"; | ||
@import "../lib/fx/ToggleSwitch"; | ||
|
||
.statusbar { | ||
-fx-background-color: transparent; | ||
-fx-text-fill: $gp-dark-gray; | ||
-fx-padding: 1ex 24px; | ||
-fx-alignment: center-left; | ||
-fx-min-width: 50em; | ||
|
||
Button { | ||
-fx-min-height: 26px; | ||
-fx-alignment: center; | ||
-fx-background-color: transparent; | ||
-fx-padding: 0 0.5em; | ||
|
||
&:hover { | ||
-fx-fill: $gp-dark-gray; | ||
-fx-cursor: hand; | ||
|
||
&.glyph-icon { | ||
-fx-fill: $gp-dark-gray; | ||
} | ||
} | ||
.glyph-icon { | ||
-fx-alignment: center; | ||
-fx-fill: $gp-medium-gray; | ||
-glyph-size: 20px; | ||
} | ||
} | ||
Button:pressed .glyph-icon, .statusbar Button:hover:pressed .glyph-icon { | ||
-fx-fill: derive($gp-dark-gray, -15%); | ||
} | ||
} | ||
|
||
.statusbar > * { | ||
-fx-text-fill: $gp-medium-gray; | ||
} | ||
|
||
.statusbar Button .decoration-warning, | ||
.statusbar Button:hover .decoration-warning, | ||
.statusbar Button:hover:pressed .decoration-warning { | ||
-fx-fill: #ff6f85; | ||
-fx-background-color: #ff6f85; | ||
-fx-border-color: none; | ||
} | ||
|
||
.dlg-connect { | ||
-fx-pref-height: 400; | ||
-fx-pref-width: 400; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
ganttproject/src/main/sass/biz/ganttproject/lib/fx/ToggleSwitch.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/*! | ||
* Copyright 2024 BarD Software s.r.o., Dmitry Barashev. | ||
* | ||
* This file is part of GanttProject, an opensource project management tool. | ||
* | ||
* GanttProject is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* GanttProject is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with GanttProject. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
@import "../../app/theme"; | ||
|
||
.toggle-switch:selected .thumb-area{ | ||
-fx-background-color: linear-gradient(to bottom, derive(-fx-text-box-border, -20%), derive(-fx-text-box-border, -30%)), | ||
linear-gradient(to bottom, derive($gp-orange, 30%), $gp-orange); | ||
-fx-background-insets: 0, 1; | ||
} |