From 00ffabff4cfe90ddd2751aca490ce019e5bea3aa Mon Sep 17 00:00:00 2001 From: meikpiep Date: Sat, 7 Oct 2023 15:39:24 +0200 Subject: [PATCH] Tweaks grid theming to use narrow strokes --- .../main/kotlin/com/holokenmod/ui/grid/GridPaintHolder.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/holoken-app/src/main/kotlin/com/holokenmod/ui/grid/GridPaintHolder.kt b/holoken-app/src/main/kotlin/com/holokenmod/ui/grid/GridPaintHolder.kt index dfe8eb08..9c1eb360 100644 --- a/holoken-app/src/main/kotlin/com/holokenmod/ui/grid/GridPaintHolder.kt +++ b/holoken-app/src/main/kotlin/com/holokenmod/ui/grid/GridPaintHolder.kt @@ -70,7 +70,7 @@ class GridPaintHolder(gridUI: GridUI) { innerGridPaint.color = ColorUtils.blendARGB( MaterialColors.getColor(gridUI, com.google.android.material.R.attr.colorSecondary), MaterialColors.getColor(gridUI, com.google.android.material.R.attr.colorSurface), - 0.85f + 0.5f ) cageSelectedPaint.flags = Paint.ANTI_ALIAS_FLAG @@ -187,12 +187,12 @@ class GridPaintHolder(gridUI: GridUI) { } fun innerGridPaint(cellSize: Float): Paint { - return innerGridPaint.apply { strokeWidth = gridPaintStrokeWidth(cellSize) } + return innerGridPaint.apply { strokeWidth = gridPaintStrokeWidth(cellSize) / 2 } } fun gridPaintRadius(cellSize: Float): Float = 0.21f * cellSize - private fun gridPaintStrokeWidth(cellSize: Float): Float = max(0.042f * cellSize, 1f) + private fun gridPaintStrokeWidth(cellSize: Float): Float = max(0.02f * cellSize, 1f) fun backgroundPaint(): Paint = backgroundPaint } \ No newline at end of file