Add edge-to-edge tweak support to TextInput
This commit is contained in:
parent
20305b5b1d
commit
19c16faeb2
@ -15,7 +15,7 @@
|
|||||||
<children>
|
<children>
|
||||||
<HBox spacing="10.0">
|
<HBox spacing="10.0">
|
||||||
<children>
|
<children>
|
||||||
<TextField promptText="Untitled paragraph" styleClass="no-border" HBox.hgrow="ALWAYS" />
|
<TextField promptText="Untitled paragraph" styleClass="edge-to-edge" HBox.hgrow="ALWAYS" />
|
||||||
<Button mnemonicParsing="false">
|
<Button mnemonicParsing="false">
|
||||||
<graphic>
|
<graphic>
|
||||||
<FontIcon iconLiteral="mdomz-more_horiz" />
|
<FontIcon iconLiteral="mdomz-more_horiz" />
|
||||||
@ -133,7 +133,7 @@
|
|||||||
</children>
|
</children>
|
||||||
</HBox>
|
</HBox>
|
||||||
<Separator prefWidth="200.0" styleClass="small" />
|
<Separator prefWidth="200.0" styleClass="small" />
|
||||||
<TextArea prefHeight="100.0" promptText="It's great time to write your content" styleClass="no-border" VBox.vgrow="ALWAYS" />
|
<TextArea prefHeight="100.0" promptText="It's great time to write your content" styleClass="edge-to-edge" VBox.vgrow="ALWAYS" />
|
||||||
</children>
|
</children>
|
||||||
<padding>
|
<padding>
|
||||||
<Insets bottom="20.0" left="20.0" right="20.0" top="20.0" />
|
<Insets bottom="20.0" left="20.0" right="20.0" top="20.0" />
|
||||||
|
@ -53,8 +53,4 @@
|
|||||||
-fx-background-insets: 0, 1;
|
-fx-background-insets: 0, 1;
|
||||||
-fx-background-radius: 10px;
|
-fx-background-radius: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.no-border {
|
|
||||||
-fx-background-insets: 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -86,6 +86,12 @@ $color-fg-password: -color-fg-muted !default;
|
|||||||
-fx-background-color: -color-input-border-focused, -color-input-bg-readonly;
|
-fx-background-color: -color-input-border-focused, -color-input-bg-readonly;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.edge-to-edge {
|
||||||
|
-fx-background-color: -color-input-bg;
|
||||||
|
-fx-background-insets: 0;
|
||||||
|
-fx-background-radius: 0;
|
||||||
|
}
|
||||||
|
|
||||||
// input group
|
// input group
|
||||||
&.left-pill {
|
&.left-pill {
|
||||||
-fx-background-radius: cfg.$border-radius 0 0 cfg.$border-radius, cfg.$inner-border-radius 0 0 cfg.$inner-border-radius;
|
-fx-background-radius: cfg.$border-radius 0 0 cfg.$border-radius, cfg.$inner-border-radius 0 0 cfg.$inner-border-radius;
|
||||||
|
Loading…
Reference in New Issue
Block a user