from kivy.uix.settings import SettingsWithSidebar
class MyApp(App):
def build(self):
self.settings_screen = SettingsWithSidebar()
return self.settings_screen
def on_theme_change(self, new_theme):
# Adjust sidebar color when theme changes
sidebar = self.settings_screen.children[0] # Assuming it's the first child
sidebar.background_color = self.color('background') # Use app theme color
--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/kivy-users/421622fa-67cc-4ce3-85c8-213fdb927176n%40googlegroups.com.