Skip to content

Commit

Permalink
refactoring style
Browse files Browse the repository at this point in the history
  • Loading branch information
teletha committed Dec 2, 2023
1 parent 201d667 commit 6edc49e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/main/java/viewtify/style/FormStyles.java
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public interface FormStyles extends StyleDSL {
background.color("-fx-control-inner-background");
margin.bottom(1, px);
padding.horizontal(10, px).vertical(10, px);
display.width(480, px);
display.width.fill();

$.hover(() -> {
background.color("-fx-control-inner-background-alt");
Expand Down
7 changes: 3 additions & 4 deletions src/main/java/viewtify/ui/view/PreferenceView.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,13 @@
import java.util.List;
import java.util.Set;

import org.controlsfx.glyphfont.FontAwesome;

import javafx.collections.ObservableList;
import javafx.scene.Node;
import javafx.scene.Parent;
import javafx.scene.control.ComboBox;
import javafx.scene.control.Labeled;

import org.controlsfx.glyphfont.FontAwesome;

import kiss.I;
import kiss.Variable;
import stylist.Style;
Expand Down Expand Up @@ -109,7 +108,7 @@ interface style extends StyleDSL {

Style search = () -> {
display.maxWidth(220, px);
margin.top(15, px).left(310, px).bottom(15, px);
margin.top(15, px).left(296, px).bottom(15, px);
};

Style root = () -> {
Expand Down

0 comments on commit 6edc49e

Please sign in to comment.