Skip to content

Commit 650a57b

Browse files
committed
updated styles of dialogs.
1 parent f222790 commit 650a57b

16 files changed

Lines changed: 69 additions & 132 deletions
700 Bytes
Binary file not shown.

resources/ui/css/custom_classes.css

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@
5555
-fx-padding: 15px 15px 15px 15px;
5656
}
5757

58+
.dialog-actions-root > .hbox {
59+
-fx-alignment: center-right;
60+
-fx-spacing: 4px;
61+
}
62+
5863
.dialog-content-root {
5964
-fx-padding: 10px 15px 0px 15px;
6065
-fx-alignment: center;
@@ -531,6 +536,22 @@
531536
* *
532537
******************************************************************************/
533538

539+
.settings-dialog {
540+
}
541+
542+
.settings-dialog > .dialog-content-root {
543+
-fx-padding: 0px 0px 0px 0px;
544+
}
545+
546+
.settings-dialog > .dialog-content-root > .tab-pane {
547+
-fx-max-height: 260px;
548+
}
549+
550+
.settings-dialog > .dialog-content-root > .tab-pane > .tab-content-area > .vbox {
551+
-fx-spacing: 2px;
552+
-fx-padding: 6px 15px 0px 0px;
553+
}
554+
534555
.settings-dialog-label {
535556
-fx-alignment: center-right;
536557
-fx-min-width: 250px;
@@ -560,6 +581,18 @@
560581
-fx-min-width: 20px;
561582
}
562583

584+
.settings-dialog-message-label {
585+
-fx-alignment: center;
586+
-fx-text-alignment: center;
587+
-fx-min-height: 35;
588+
-fx-pref-height: -fx-min-height;
589+
-fx-max-height: -fx-min-height;
590+
-fx-fill: red;
591+
-fx-text-fill: red;
592+
-fx-wrap-text: true;
593+
-fx-font-size: 15px;
594+
}
595+
563596
/*******************************************************************************
564597
* *
565598
* Audio Editor *

resources/ui/css/custom_ids.bss

-520 Bytes
Binary file not shown.

resources/ui/css/custom_ids.css

Lines changed: 5 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -116,22 +116,11 @@
116116
-fx-min-width: 30px;
117117
}
118118

119-
#AssetComponentBar {
120-
-fx-background-color: transparent;
121-
-fx-min-height: 30;
122-
-fx-pref-height: -fx-min-height;
123-
-fx-max-height: -fx-min-height;
124-
-fx-alignment: center-left;
125-
}
126-
127-
#AssetComponentBarButton {
128-
-fx-min-height: 30;
129-
-fx-pref-height: -fx-min-height;
130-
-fx-max-height: -fx-min-height;
131-
-fx-min-width: 30;
132-
-fx-pref-width: -fx-min-width;
133-
-fx-max-width: -fx-min-width;
134-
}
119+
/*******************************************************************************
120+
* *
121+
* Asset Editor Dialog *
122+
* *
123+
******************************************************************************/
135124

136125
#AssetEditorDialogButtonContainer {
137126
-fx-alignment: center-right;
@@ -197,24 +186,6 @@
197186
-fx-max-width: -fx-min-width;
198187
}
199188

200-
/*******************************************************************************
201-
* *
202-
* Settings Dialog *
203-
* *
204-
******************************************************************************/
205-
206-
#SettingsDialogMessageLabel {
207-
-fx-alignment: center;
208-
-fx-text-alignment: center;
209-
-fx-min-height: 35;
210-
-fx-pref-height: -fx-min-height;
211-
-fx-max-height: -fx-min-height;
212-
-fx-fill: red;
213-
-fx-text-fill: red;
214-
-fx-wrap-text: true;
215-
-fx-font-size: 15px;
216-
}
217-
218189
#ImageChannelPreview {
219190
-fx-background-color: -var-background-color;
220191
-fx-effect: -fx-shadow-panel;

resources/ui/css/external.bss

-7 Bytes
Binary file not shown.

resources/ui/css/external.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
.code-area {
3-
-fx-background-color: transparent;
3+
-fx-background-color: -var-background-color;
44
-fx-stroke: -var-font-color;
55
-fx-font-family: "Ubuntu Mono";
66
-fx-font-size: 13px;
Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
package com.ss.editor.ui.component.asset;
22

33
import com.ss.editor.ui.Icons;
4-
import com.ss.editor.ui.css.CSSClasses;
5-
import com.ss.editor.ui.css.CSSIds;
64
import com.ss.editor.ui.event.FXEventManager;
75
import com.ss.editor.ui.event.impl.RequestedRefreshAssetEvent;
8-
6+
import com.ss.rlib.ui.util.FXUtils;
97
import javafx.scene.control.Button;
108
import javafx.scene.image.ImageView;
119
import javafx.scene.layout.HBox;
12-
import com.ss.rlib.ui.util.FXUtils;
1310

1411
/**
1512
* The toolbar of the {@link AssetComponent} with actions.
@@ -24,14 +21,11 @@ public class AssetBarComponent extends HBox {
2421
* Instantiates a new Asset bar component.
2522
*/
2623
public AssetBarComponent() {
27-
setId(CSSIds.ASSET_COMPONENT_BAR);
2824

2925
final Button refreshAction = new Button();
30-
refreshAction.setId(CSSIds.ASSET_COMPONENT_BAR_BUTTON);
3126
refreshAction.setGraphic(new ImageView(Icons.REFRESH_18));
3227
refreshAction.setOnAction(event -> FX_EVENT_MANAGER.notify(new RequestedRefreshAssetEvent()));
3328

34-
FXUtils.addClassTo(refreshAction, CSSClasses.FLAT_BUTTON);
3529
FXUtils.addToPane(refreshAction, this);
3630
}
3731
}

src/com/ss/editor/ui/component/asset/AssetComponent.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import com.ss.editor.ui.component.asset.tree.resource.FolderElement;
1111
import com.ss.editor.ui.component.asset.tree.resource.ResourceElement;
1212
import com.ss.editor.ui.component.asset.tree.resource.ResourceElementFactory;
13+
import com.ss.editor.ui.css.CSSClasses;
1314
import com.ss.editor.ui.css.CSSIds;
1415
import com.ss.editor.ui.event.FXEventManager;
1516
import com.ss.editor.ui.event.impl.*;
@@ -173,9 +174,11 @@ private void createComponents() {
173174

174175
//FIXME пока он не нужен
175176
//FXUtils.addToPane(barComponent, this);
177+
//FXUtils.bindFixedHeight(resourceTree, heightProperty().subtract(barComponent.heightProperty()));
178+
176179
FXUtils.addToPane(resourceTree, this);
177180
FXUtils.bindFixedHeight(resourceTree, heightProperty());
178-
//FXUtils.bindFixedHeight(resourceTree, heightProperty().subtract(barComponent.heightProperty()));
181+
FXUtils.addClassTo(resourceTree, CSSClasses.TRANSPARENT_LIST_VIEW);
179182
}
180183

181184
/**

src/com/ss/editor/ui/component/asset/tree/ResourceTree.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,9 @@
1212
import com.ss.editor.ui.component.asset.tree.resource.FolderElement;
1313
import com.ss.editor.ui.component.asset.tree.resource.ResourceElement;
1414
import com.ss.editor.ui.component.asset.tree.resource.ResourceLoadingElement;
15-
import com.ss.editor.ui.css.CSSClasses;
1615
import com.ss.editor.ui.util.UIUtils;
1716
import com.ss.editor.util.EditorUtil;
1817
import com.ss.rlib.function.IntObjectConsumer;
19-
import com.ss.rlib.ui.util.FXUtils;
2018
import com.ss.rlib.util.StringUtils;
2119
import com.ss.rlib.util.array.Array;
2220
import com.ss.rlib.util.array.ArrayComparator;
@@ -179,8 +177,6 @@ public ResourceTree(@Nullable final Consumer<ResourceElement> openFunction, fina
179177
setShowRoot(true);
180178
setContextMenu(new ContextMenu());
181179
setFocusTraversable(true);
182-
183-
FXUtils.addClassTo(this, CSSClasses.TRANSPARENT_TREE_VIEW);
184180
}
185181

186182
/**

src/com/ss/editor/ui/component/creator/impl/AbstractFileCreator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public abstract class AbstractFileCreator extends AbstractSimpleEditorDialog imp
5050
* The constant DIALOG_SIZE.
5151
*/
5252
@NotNull
53-
protected static final Point DIALOG_SIZE = new Point(900, 401);
53+
protected static final Point DIALOG_SIZE = new Point(900, -1);
5454

5555
/**
5656
* The constant EXECUTOR_MANAGER.

0 commit comments

Comments
 (0)