remove focus lines, use red text for errors

This commit is contained in:
woodser 2025-05-09 22:07:58 -04:00
parent a6ca6ee518
commit 2b1a133671
No known key found for this signature in database
GPG key ID: 55A10DD48ADEE5EF
2 changed files with 16 additions and 23 deletions

View file

@ -219,6 +219,7 @@
.jfx-combo-box {
-jfx-focus-color: transparent;
-jfx-unfocus-color: transparent;
-fx-background-color: -bs-background-color;
-fx-padding: 2 14 2 14;
}
@ -229,6 +230,11 @@
.jfx-text-field {
-fx-padding: 7 18 7 18;
-jfx-focus-color: transparent;
-jfx-unfocus-color: transparent;
-fx-background-radius: 999;
-fx-border-radius: 999;
-fx-background-color: -bs-background-color;
}
.jfx-text-field.label-float .prompt-container {
@ -373,13 +379,6 @@ tree-table-view:focused {
-fx-background-insets: 0;
}
.jfx-text-field {
-jfx-focus-color: -bs-color-primary;
-fx-background-color: -bs-background-color;
-fx-background-radius: 999;
-fx-border-radius: 999;
}
.jfx-text-field-top-label {
-fx-text-fill: -bs-color-gray-dim;
}
@ -417,7 +416,8 @@ tree-table-view:focused {
.jfx-password-field {
-fx-background-color: -bs-background-color;
-fx-background-radius: 3 3 0 0;
-jfx-focus-color: -bs-color-primary;
-jfx-focus-color: transparent;
-jfx-unfocus-color: transparent;
-fx-padding: 7 18 7 18;
-fx-background-radius: 999;
-fx-border-radius: 999;
@ -427,13 +427,9 @@ tree-table-view:focused {
-fx-translate-x: -0.333333em;
}
.jfx-password-field > .input-focused-line {
-fx-translate-x: -0.333333em;
}
.jfx-text-field:error, .jfx-password-field:error, .jfx-text-area:error {
-jfx-focus-color: -bs-rd-error-red;
-jfx-unfocus-color: -bs-rd-error-red;
.jfx-combo-box:error,
.jfx-text-field:error {
-fx-text-fill: -bs-rd-error-red;
}
.jfx-text-field .error-label, .jfx-password-field .error-label, .jfx-text-area .error-label {
@ -554,7 +550,8 @@ tree-table-view:focused {
}
.jfx-text-area {
-jfx-focus-color: -bs-color-primary;
-jfx-focus-color: transparent;
-jfx-unfocus-color: transparent;
-fx-background-color: -bs-background-color;
-fx-padding: 0.333333em 0.333333em 0.333333em 0.333333em;
-fx-background-radius: 15;
@ -569,10 +566,6 @@ tree-table-view:focused {
-fx-translate-x: -0.333333em;
}
.jfx-text-area > .input-focused-line {
-fx-translate-x: -0.333333em;
}
.wallet-seed-words {
-fx-font-family: "IBM Plex Mono";
}
@ -1365,7 +1358,8 @@ textfield */
}
.text-area-no-border:focused {
-fx-focus-color: -bs-background-color;
-fx-focus-color: transparent;
-fx-unfocus-color: transparent;
-fx-faint-focus-color: -bs-background-color;
}

View file

@ -399,14 +399,13 @@
-fx-background-color: derive(-bs-background-color, 15%);
}
.jfx-combo-box:error,
.jfx-text-field:error{
.jfx-text-field:error {
-fx-text-fill: -bs-rd-error-red;
-fx-background-color: -bs-rd-error-field;
}
.jfx-combo-box:error:focused,
.jfx-text-field:error:focused{
-fx-text-fill: -bs-rd-error-red;
-fx-background-color: derive(-bs-rd-error-field, -5%);
}