mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 09:08:52 -06:00
Small changes to ScoreView
This commit is contained in:
@@ -170,9 +170,10 @@ public class HabitScoreView extends ScrollableDataView implements HabitDataView
|
|||||||
|
|
||||||
columnHeight = 8 * baseSize;
|
columnHeight = 8 * baseSize;
|
||||||
|
|
||||||
|
float minStrokeWidth = UIHelper.dpToPixels(getContext(), 1);
|
||||||
pGraph.setTextSize(baseSize * 0.5f);
|
pGraph.setTextSize(baseSize * 0.5f);
|
||||||
pGraph.setStrokeWidth(baseSize * 0.1f);
|
pGraph.setStrokeWidth(baseSize * 0.1f);
|
||||||
pGrid.setStrokeWidth(baseSize * 0.025f);
|
pGrid.setStrokeWidth(Math.min(minStrokeWidth, baseSize * 0.05f));
|
||||||
|
|
||||||
if(isTransparencyEnabled)
|
if(isTransparencyEnabled)
|
||||||
initCache(width, height);
|
initCache(width, height);
|
||||||
@@ -266,7 +267,7 @@ public class HabitScoreView extends ScrollableDataView implements HabitDataView
|
|||||||
|
|
||||||
rect.set(0, 0, baseSize, baseSize);
|
rect.set(0, 0, baseSize, baseSize);
|
||||||
rect.offset(k * columnWidth + (columnWidth - baseSize) / 2,
|
rect.offset(k * columnWidth + (columnWidth - baseSize) / 2,
|
||||||
paddingTop + columnHeight - height - columnWidth / 2);
|
paddingTop + columnHeight - height - baseSize / 2);
|
||||||
|
|
||||||
if (!prevRect.isEmpty())
|
if (!prevRect.isEmpty())
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -141,8 +141,8 @@
|
|||||||
<item name="cardBackgroundColor">@color/black</item>
|
<item name="cardBackgroundColor">@color/black</item>
|
||||||
|
|
||||||
<item name="highContrastTextColor">@color/white</item>
|
<item name="highContrastTextColor">@color/white</item>
|
||||||
<item name="mediumContrastTextColor">@color/white_ac</item>
|
<item name="mediumContrastTextColor">@color/white_aa</item>
|
||||||
<item name="lowContrastTextColor">@color/white_a0</item>
|
<item name="lowContrastTextColor">@color/white_a2</item>
|
||||||
|
|
||||||
<item name="highContrastReverseTextColor">@color/white</item>
|
<item name="highContrastReverseTextColor">@color/white</item>
|
||||||
<item name="mediumContrastReverseTextColor">@color/grey_500</item>
|
<item name="mediumContrastReverseTextColor">@color/grey_500</item>
|
||||||
|
|||||||
Reference in New Issue
Block a user