Styling fixes

This commit is contained in:
crschnick 2024-03-07 18:41:50 +00:00
parent 84ca2545f0
commit 1b5d2b7741
4 changed files with 9 additions and 36 deletions

View file

@ -8,7 +8,6 @@ import io.xpipe.app.fxcomps.SimpleCompStructure;
import io.xpipe.app.fxcomps.augment.ContextMenuAugment; import io.xpipe.app.fxcomps.augment.ContextMenuAugment;
import io.xpipe.app.fxcomps.impl.LabelComp; import io.xpipe.app.fxcomps.impl.LabelComp;
import io.xpipe.app.fxcomps.util.BindingsHelper; import io.xpipe.app.fxcomps.util.BindingsHelper;
import io.xpipe.app.fxcomps.util.PlatformThread;
import io.xpipe.app.util.HumanReadableFormat; import io.xpipe.app.util.HumanReadableFormat;
import javafx.beans.binding.Bindings; import javafx.beans.binding.Bindings;
import javafx.scene.control.ToolBar; import javafx.scene.control.ToolBar;
@ -58,7 +57,7 @@ public class BrowserStatusBarComp extends SimpleComp {
return transferred + " / " + all + name; return transferred + " / " + all + name;
} }
}); });
var progressComp = new LabelComp(text); var progressComp = new LabelComp(text).styleClass("progress");
return progressComp; return progressComp;
} }

View file

@ -18,13 +18,14 @@ public class StoreQuickAccessButtonComp extends SimpleComp {
private final StoreSection section; private final StoreSection section;
private final Consumer<StoreEntryWrapper> action; private final Consumer<StoreEntryWrapper> action;
public StoreQuickAccessButtonComp(StoreSection section, Consumer<StoreEntryWrapper> action) {this.section = section; public StoreQuickAccessButtonComp(StoreSection section, Consumer<StoreEntryWrapper> action) {
this.section = section;
this.action = action; this.action = action;
} }
@Override @Override
protected Region createSimple() { protected Region createSimple() {
var button = new IconButtonComp("mdi2p-play-speed"); var button = new IconButtonComp("mdi2c-chevron-double-right");
button.apply(struc -> { button.apply(struc -> {
struc.get().setOnAction(event -> { struc.get().setOnAction(event -> {
showMenu(struc.get()); showMenu(struc.get());

View file

@ -147,6 +147,9 @@
.browser .status-bar { .browser .status-bar {
-fx-border-width: 1 0 0 0; -fx-border-width: 1 0 0 0;
-fx-border-color: -color-border-default; -fx-border-color: -color-border-default;
}
.browser .status-bar .progress {
-fx-font-family: Roboto; -fx-font-family: Roboto;
} }
@ -154,25 +157,10 @@
-fx-padding: 0; -fx-padding: 0;
} }
.browser .overview .context-menu > * > * {
-fx-padding: 3px 10px 3px 10px;
-fx-background-radius: 1px;
-fx-spacing: 20px;
}
.browser .overview .context-menu .separator {
-fx-padding: 0;
}
.browser .breadcrumbs { .browser .breadcrumbs {
-fx-padding: 2px 10px 2px 10px; -fx-padding: 2px 10px 2px 10px;
} }
.browser .overview .context-menu .separator .line {
-fx-padding: 0;
-fx-border-insets: 0px;
}
.browser .breadcrumbs { .browser .breadcrumbs {
-fx-background-color: transparent; -fx-background-color: transparent;
} }
@ -200,21 +188,6 @@
-fx-background-insets: 0; -fx-background-insets: 0;
} }
.browser .overview .context-menu .accelerator-text {
-fx-padding: 3px 0px 3px 50px;
}
.browser .overview .context-menu > * {
-fx-padding: 0;
}
.browser .overview .context-menu {
-fx-padding: 12 0 12 0;
-fx-background-radius: 8px;
-fx-border-radius: 8px;
-fx-border-color: -color-border-default;
}
.browser .tab-pane { .browser .tab-pane {
-fx-border-width: 0 0 0 1px; -fx-border-width: 0 0 0 1px;
-fx-border-color: -color-border-default; -fx-border-color: -color-border-default;

View file

@ -10,7 +10,7 @@
} }
.context-menu > * > * { .context-menu > * > * {
-fx-padding: 5px 15 5px 15; -fx-padding: 3px 10px 3px 10px;
-fx-background-radius: 1px; -fx-background-radius: 1px;
-fx-spacing: 20px; -fx-spacing: 20px;
} }
@ -38,7 +38,7 @@
.context-menu .accelerator-text { .context-menu .accelerator-text {
-fx-padding: 3px 0px 3px 50px; -fx-padding: 0px 0px 0px 50px;
} }
.context-menu > * { .context-menu > * {