Skip to content

Commit

Permalink
Handle GNOME color-scheme values
Browse files Browse the repository at this point in the history
Relates to #72
  • Loading branch information
weisJ committed Sep 3, 2023
1 parent bf3f5d1 commit 950f8d6
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ object GtkVariants {
val variants: MutableMap<Variant, String> = EnumMap(Variant::class.java)
variants[Variant.Original] = themeName
when {
themeName == "default" || themeName == "prefer-dark" -> {
// Gor GNOME these values have to be handled separately
variants[Variant.Day] = "default"
variants[Variant.Night] = "prefer-dark"
}
themeName.contains("Adapta") -> {
variants[Variant.Day] = themeName.replace("-Nokto", "")
variants[Variant.Night] = variants[Variant.Day]!!.replace("Adapta", "Adapta-Nokto")
Expand Down

0 comments on commit 950f8d6

Please sign in to comment.