ubuntu-flutter-community / settings

:penguin: :orange_heart: :blue_heart: An Ubuntu Desktop system settings app made with Flutter.
GNU General Public License v3.0
272 stars 47 forks source link

ThemeSection: hide themes if osversion < 22 #315

Closed Feichtmeier closed 2 years ago

Feichtmeier commented 2 years ago

The theme selector needs to be hidden if the os major version is smaller than 22 because if a gtk theme is not availible but selected gtk falls back to adwaita. Maybe we can create new themes from all the themes in /usr/share/themes/gtk3 and look up the theme_selected_bg color with yaru.dart's functions createYaruLightTheme / createYaruDarkTheme / createMaterialColor