mirror of https://github.com/tasks/tasks
Add custom widget theme with color picker
This commit introduces a new "Custom" theme option for the widget, allowing users to select a custom background color. Changes include: - Added "Custom" theme to widget_themes array in arrays.xml. - Introduced new string resources for custom theme color in strings.xml. - Modified preferences_widget.xml to include a color picker preference for the custom theme. - Updated WidgetSettings.kt to manage the visibility and functionality of the custom color picker based on theme selection. - Extended WidgetPreferences.kt to store and retrieve the custom theme color, and to apply it to the widget's background. - Implemented a isLight utility function in Theme.kt to determine text color based on the custom background color.pull/3687/head
parent
a299363fe8
commit
b0f1b54403
Loading…
Reference in New Issue