Skip to content

Commit 8cc2172

Browse files
pdanpdanrstoenescu
authored andcommitted
More adaptive colors (quasarframework#1739)
1 parent ac6f946 commit 8cc2172

20 files changed

+47
-0
lines changed

src/components/action-sheet/action-sheet.ios.styl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
min-height 48px
1212
padding 0 16px
1313
color $faded
14+
color var(--q-color-faded, $faded)
1415
text-align center
1516

1617
.q-actionsheet-grid
@@ -32,3 +33,4 @@
3233
height 48px
3334
span
3435
color $faded
36+
color var(--q-color-faded, $faded)

src/components/action-sheet/action-sheet.mat.styl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
min-height 56px
33
padding 0 16px
44
color $faded
5+
color var(--q-color-faded, $faded)
56

67
.q-actionsheet-body
78
max-height 500px
@@ -25,3 +26,4 @@
2526
height 48px
2627
span
2728
color $faded
29+
color var(--q-color-faded, $faded)

src/components/color/color.ios.styl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,12 @@
8585
input
8686
background black
8787
color $light
88+
color var(--q-color-light, $light)
8889
border 1px solid $dark
90+
border 1px solid var(--q-color-dark, $dark)
8991
.q-color-inputs
9092
color $light
93+
color var(--q-color-light, $light)
9194
.q-color-swatch
9295
border 1px solid $dark
96+
border 1px solid var(--q-color-dark, $dark)

src/components/color/color.mat.styl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,12 @@
8383
input
8484
background black
8585
color $light
86+
color var(--q-color-light, $light)
8687
border 1px solid $dark
88+
border 1px solid var(--q-color-dark, $dark)
8789
.q-color-inputs
8890
color $light
91+
color var(--q-color-light, $light)
8992
.q-color-swatch
9093
border 1px solid $dark
94+
border 1px solid var(--q-color-dark, $dark)

src/components/datetime/datetime.ios.styl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@
105105

106106
.q-datetime-dark
107107
background $dark
108+
background var(--q-color-dark, $dark)
108109

109110
.modal-buttons
110111
background black

src/components/datetime/datetime.mat.styl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,10 @@ div + .q-datetime-time
153153

154154
.q-datetime-dark
155155
background $dark
156+
background var(--q-color-dark, $dark)
156157
.q-datetime-arrow
157158
color $light
159+
color var(--q-color-light, $light)
158160
.q-datetime-header, .q-datetime-clock
159161
background $grey-8
160162
.q-datetime-view-day
@@ -230,6 +232,7 @@ for $pos in 0..23
230232
border-color $grey-4
231233
&.q-datetime-dark
232234
border 1px solid $dark
235+
border 1px solid var(--q-color-dark, $dark)
233236

234237
@media (min-width $breakpoint-md-min)
235238
.q-datetime-datestring
@@ -257,3 +260,4 @@ for $pos in 0..23
257260
border-color $grey-4
258261
&.q-datetime-dark
259262
border 1px solid $dark
263+
border 1px solid var(--q-color-dark, $dark)

src/components/field/field.ios.styl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,18 @@
3434
.q-field-with-error
3535
.q-field-icon, .q-field-label, .q-field-bottom
3636
color $negative
37+
color var(--q-color-negative, $negative)
3738
.q-field-no-input
3839
border-top 1px solid $negative
40+
border-top 1px solid var(--q-color-negative, $negative)
3941

4042
.q-field-with-warning
4143
.q-field-icon, .q-field-label, .q-field-bottom
4244
color $warning
45+
color var(--q-color-warning, $warning)
4346
.q-field-no-input
4447
border-top 1px solid $warning
48+
border-top 1px solid var(--q-color-warning, $warning)
4549

4650
qfield-vertical()
4751
.q-field-label + .q-field-content

src/components/field/field.mat.styl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,18 @@
3434
.q-field-with-error
3535
.q-field-icon, .q-field-label, .q-field-bottom
3636
color $negative
37+
color var(--q-color-negative, $negative)
3738
.q-field-no-input
3839
border-top 1px solid $negative
40+
border-top 1px solid var(--q-color-negative, $negative)
3941

4042
.q-field-with-warning
4143
.q-field-icon, .q-field-label, .q-field-bottom
4244
color $warning
45+
color var(--q-color-warning, $warning)
4346
.q-field-no-input
4447
border-top 1px solid $warning
48+
border-top 1px solid var(--q-color-warning, $warning)
4549

4650
qfield-vertical()
4751
.q-field-label + .q-field-content

src/components/input-frame/input-frame.ios.styl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
&:before
1919
height 1px
2020
color $light
21+
color var(--q-color-light, $light)
2122
transform scaleY(1)
2223
&:after
2324
width 0
@@ -120,12 +121,14 @@ div.q-input-target
120121
.q-if-error
121122
&:before, &:after, &:not(.q-if-inverted) .q-if-label
122123
color $negative
124+
color var(--q-color-negative, $negative)
123125
&:hover:before
124126
color lighten($negative, 46%)
125127

126128
.q-if-warning
127129
&:before, &:after, &:not(.q-if-inverted) .q-if-label
128130
color $warning
131+
color var(--q-color-warning, $warning)
129132
&:hover:before
130133
color lighten($warning, 46%)
131134

src/components/input-frame/input-frame.mat.styl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
&:before
1919
height 1px
2020
color $light
21+
color var(--q-color-light, $light)
2122
transform scaleY(1)
2223
&:after
2324
width 0
@@ -120,12 +121,14 @@ div.q-input-target
120121
.q-if-error
121122
&:before, &:after, &:not(.q-if-inverted) .q-if-label
122123
color $negative
124+
color var(--q-color-negative, $negative)
123125
&:hover:before
124126
color lighten($negative, 46%)
125127

126128
.q-if-warning
127129
&:before, &:after, &:not(.q-if-inverted) .q-if-label
128130
color $warning
131+
color var(--q-color-warning, $warning)
129132
&:hover:before
130133
color lighten($warning, 46%)
131134

0 commit comments

Comments
 (0)