Add additional row in vertical and horizontal pager in horizontal clock mode showing favorites (#246)
* Add setting for clock widget to show two DynamicZones, one of them always being favorites * implementing horizontal pager * undoing changes * checking if withFavoriteBar is set in horizontal layout * Clock widget: use compose pager, not accompanist pager * Pull favorites part provider from view model * Clock widget settings: remove divider * Remove date_part from settings.proto * Remove datePart settings references --------- Co-authored-by: MM20 <15646950+MM2-0@users.noreply.github.com>
This commit is contained in:
@@ -50,9 +50,8 @@ fun createFactorySettings(context: Context): Settings {
|
||||
.setColor(Settings.ClockWidgetSettings.ClockWidgetColors.Auto)
|
||||
.setAlarmPart(true)
|
||||
.setBatteryPart(true)
|
||||
.setDatePart(true)
|
||||
.setMusicPart(true)
|
||||
.setFavoritesPart(false)
|
||||
.setFavoritesPart(true)
|
||||
.setFillHeight(true)
|
||||
.build()
|
||||
)
|
||||
|
||||
-1
@@ -8,7 +8,6 @@ class Migration_2_3: VersionedMigration(2, 3) {
|
||||
builder.clockWidget.toBuilder()
|
||||
.setAlarmPart(true)
|
||||
.setBatteryPart(true)
|
||||
.setDatePart(true)
|
||||
.setMusicPart(true)
|
||||
)
|
||||
}
|
||||
|
||||
@@ -115,7 +115,7 @@ message Settings {
|
||||
EmptyClock = 4;
|
||||
}
|
||||
ClockStyle clock_style = 2;
|
||||
bool date_part = 3;
|
||||
reserved 3;
|
||||
bool music_part = 4;
|
||||
bool battery_part = 5;
|
||||
bool alarm_part = 6;
|
||||
|
||||
Reference in New Issue
Block a user