Skip to content

Commit

Permalink
Merge pull request #5182 from nextcloud-libraries/fix/42392-Create_po…
Browse files Browse the repository at this point in the history
…ssibility_to_change_a_color_theme_for_native_datetime_picker-on-default-theme

Create possibility to change a color theme for native datetime picker on system default theme
  • Loading branch information
susnux committed Jan 30, 2024
2 parents 4a2c155 + c8f7840 commit bd830cf
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/components/NcDateTimePickerNative/NcDateTimePickerNative.vue
Expand Up @@ -399,4 +399,18 @@ export default {
color-scheme: dark;
}
}
[data-theme-default],
[data-themes*=default] {
@media (prefers-color-scheme: light) {
.native-datetime-picker--input {
color-scheme: light;
}
}
@media (prefers-color-scheme: dark) {
.native-datetime-picker--input {
color-scheme: dark;
}
}
}
</style>

0 comments on commit bd830cf

Please sign in to comment.