@@ -197,24 +197,24 @@ class AwidgetProvider : AppWidgetProvider() {
197197
198198 // --- Load Preferences ---
199199 val showTime = prefs.getBoolean(" show_time" , true )
200- val sizeTime = prefs.getFloat(" size_time" , 64f )
200+ val sizeTime = prefs.getFloat(" size_time" , 56f )
201201
202202 val showDate = prefs.getBoolean(" show_date" , true )
203- val sizeDate = prefs.getFloat(" size_date" , 14f )
203+ val sizeDate = prefs.getFloat(" size_date" , 16f )
204204
205205 val showBattery = prefs.getBoolean(" show_battery" , true )
206- val sizeBattery = prefs.getFloat(" size_battery" , 24f )
207- val boldBattery = prefs.getBoolean(" bold_battery" , false )
206+ val sizeBattery = prefs.getFloat(" size_battery" , 32f )
207+ val boldBattery = prefs.getBoolean(" bold_battery" , true )
208208
209- val showTemp = prefs.getBoolean(" show_temp" , true )
209+ val showTemp = prefs.getBoolean(" show_temp" , false )
210210 val sizeTemp = prefs.getFloat(" size_temp" , 18f )
211211 val boldTemp = prefs.getBoolean(" bold_temp" , false )
212212
213213 val showWeatherCondition = prefs.getBoolean(" show_weather_condition" , false )
214214 val sizeWeather = prefs.getFloat(" size_weather" , 18f )
215215 val boldWeather = prefs.getBoolean(" bold_weather" , false )
216216
217- var showEvents = prefs.getBoolean(" show_events" , true )
217+ var showEvents = prefs.getBoolean(" show_events" , false )
218218 if (showEvents && androidx.core.content.ContextCompat .checkSelfPermission(context, android.Manifest .permission.READ_CALENDAR ) != android.content.pm.PackageManager .PERMISSION_GRANTED ) {
219219 showEvents = false
220220 }
@@ -250,7 +250,7 @@ class AwidgetProvider : AppWidgetProvider() {
250250 val sizeWorldClock = prefs.getFloat(" size_world_clock" , 18f )
251251 val worldClockZoneStr = prefs.getString(" world_clock_zone_str" , " UTC" ) ? : " UTC"
252252
253- val showStorage = prefs.getBoolean(" show_storage" , true )
253+ val showStorage = prefs.getBoolean(" show_storage" , false )
254254 val sizeStorage = prefs.getFloat(" size_storage" , 14f )
255255
256256 var showTasks = prefs.getBoolean(" show_tasks" , false )
@@ -286,7 +286,7 @@ class AwidgetProvider : AppWidgetProvider() {
286286
287287 val fontStyle = prefs.getInt(" font_style" , 0 )
288288
289- val bgOpacity = prefs.getFloat(" bg_opacity" , 100f )
289+ val bgOpacity = prefs.getFloat(" bg_opacity" , 85f )
290290 val textColorPrimaryIdx = prefs.getInt(" text_color_primary_idx" , 0 )
291291 val textColorSecondaryIdx = prefs.getInt(" text_color_secondary_idx" , 0 )
292292 val bgColorIdx = prefs.getInt(" bg_color_idx" , 0 )
@@ -366,7 +366,7 @@ class AwidgetProvider : AppWidgetProvider() {
366366 }
367367 }
368368
369- val showOutline = prefs.getBoolean(" show_outline" , true )
369+ val showOutline = prefs.getBoolean(" show_outline" , false )
370370 val outlineColor = resolveOutlineColor(outlineColorIdx)
371371 views.setImageViewResource(R .id.widget_outline, R .drawable.widget_bg_outline)
372372 views.setViewVisibility(R .id.widget_outline, if (showOutline) android.view.View .VISIBLE else android.view.View .GONE )
@@ -753,12 +753,19 @@ class AwidgetProvider : AppWidgetProvider() {
753753 // Calculate cumulative Y positions for each visible item
754754 val rightDp = context.resources.displayMetrics.density
755755 var cumulativeTopDp = 24f // Starting top margin from top of widget
756+ var isFirstVisible = true
756757 for (entry in rightStack) {
757758 if (entry.isVisible) {
759+ if (isFirstVisible) {
760+ // Compensate for font intrinsic top padding (matches left side logic)
761+ val intrinsicGap = entry.size * 0.18f
762+ cumulativeTopDp = maxOf(0f , 24f - intrinsicGap)
763+ isFirstVisible = false
764+ }
758765 val topPaddingPx = (cumulativeTopDp * rightDp).toInt()
759766 views.setViewPadding(entry.viewId, 0 , topPaddingPx, 0 , 0 )
760767 // Advance by this item's height + small gap
761- val itemHeightDp = entry.size * 1.2f // approximate line height
768+ val itemHeightDp = entry.size * 1.15f // approximate line height
762769 cumulativeTopDp + = itemHeightDp + 2f
763770 }
764771 }
0 commit comments