mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 09:08:52 -06:00
Minor color changes
This commit is contained in:
@@ -147,7 +147,7 @@ public class HabitHistoryView extends ScrollableDataView
|
|||||||
protected void createPaints()
|
protected void createPaints()
|
||||||
{
|
{
|
||||||
pTextHeader = new Paint();
|
pTextHeader = new Paint();
|
||||||
pTextHeader.setColor(Color.LTGRAY);
|
pTextHeader.setColor(Color.argb(64, 0, 0, 0));
|
||||||
pTextHeader.setTextAlign(Align.LEFT);
|
pTextHeader.setTextAlign(Align.LEFT);
|
||||||
pTextHeader.setAntiAlias(true);
|
pTextHeader.setAntiAlias(true);
|
||||||
|
|
||||||
|
|||||||
@@ -100,7 +100,7 @@ public class HabitScoreView extends ScrollableDataView
|
|||||||
protected void createPaints()
|
protected void createPaints()
|
||||||
{
|
{
|
||||||
pText = new Paint();
|
pText = new Paint();
|
||||||
pText.setColor(Color.LTGRAY);
|
pText.setColor(Color.argb(64, 0, 0, 0));
|
||||||
pText.setTextAlign(Paint.Align.LEFT);
|
pText.setTextAlign(Paint.Align.LEFT);
|
||||||
pText.setAntiAlias(true);
|
pText.setAntiAlias(true);
|
||||||
|
|
||||||
@@ -109,7 +109,7 @@ public class HabitScoreView extends ScrollableDataView
|
|||||||
pGraph.setAntiAlias(true);
|
pGraph.setAntiAlias(true);
|
||||||
|
|
||||||
pGrid = new Paint();
|
pGrid = new Paint();
|
||||||
pGrid.setColor(Color.LTGRAY);
|
pGrid.setColor(Color.argb(64, 0, 0, 0));
|
||||||
pGrid.setAntiAlias(true);
|
pGrid.setAntiAlias(true);
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -240,7 +240,7 @@ public class HabitScoreView extends ScrollableDataView
|
|||||||
int nRows = 5;
|
int nRows = 5;
|
||||||
float rowHeight = rGrid.height() / nRows;
|
float rowHeight = rGrid.height() / nRows;
|
||||||
|
|
||||||
pGrid.setColor(Color.rgb(240, 240, 240));
|
pGrid.setColor(Color.argb(20, 0, 0, 0));
|
||||||
for (int i = 0; i < nRows; i++)
|
for (int i = 0; i < nRows; i++)
|
||||||
{
|
{
|
||||||
canvas.drawText(String.format("%d%%", (100 - i * 100 / nRows)), rGrid.left + 0.5f * em,
|
canvas.drawText(String.format("%d%%", (100 - i * 100 / nRows)), rGrid.left + 0.5f * em,
|
||||||
|
|||||||
@@ -103,7 +103,7 @@ public class HabitStreakView extends ScrollableDataView
|
|||||||
columnWidth = baseSize;
|
columnWidth = baseSize;
|
||||||
columnHeight = 8 * baseSize;
|
columnHeight = 8 * baseSize;
|
||||||
headerHeight = baseSize;
|
headerHeight = baseSize;
|
||||||
nColumns = width / baseSize;
|
nColumns = width / baseSize - 1;
|
||||||
|
|
||||||
pText.setTextSize(baseSize * 0.5f);
|
pText.setTextSize(baseSize * 0.5f);
|
||||||
pBar.setTextSize(baseSize * 0.5f);
|
pBar.setTextSize(baseSize * 0.5f);
|
||||||
@@ -123,7 +123,7 @@ public class HabitStreakView extends ScrollableDataView
|
|||||||
protected void createPaints()
|
protected void createPaints()
|
||||||
{
|
{
|
||||||
pText = new Paint();
|
pText = new Paint();
|
||||||
pText.setColor(Color.LTGRAY);
|
pText.setColor(Color.argb(64, 0, 0, 0));
|
||||||
pText.setTextAlign(Paint.Align.CENTER);
|
pText.setTextAlign(Paint.Align.CENTER);
|
||||||
pText.setAntiAlias(true);
|
pText.setAntiAlias(true);
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,6 @@
|
|||||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:shape="rectangle">
|
android:shape="rectangle">
|
||||||
|
|
||||||
<solid android:color="#7f000000" />
|
<solid android:color="#3fffffff" />
|
||||||
<corners android:radius="10dp" />
|
<corners android:radius="10dp" />
|
||||||
</shape>
|
</shape>
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:text="Wake up early"
|
android:text="Wake up early"
|
||||||
android:textColor="@color/white"/>
|
android:textColor="#3f000000"/>
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/imageView"
|
android:id="@+id/imageView"
|
||||||
|
|||||||
@@ -11,5 +11,4 @@
|
|||||||
android:configure="org.isoron.uhabits.widgets.HabitPickerDialog"
|
android:configure="org.isoron.uhabits.widgets.HabitPickerDialog"
|
||||||
android:widgetCategory="home_screen">
|
android:widgetCategory="home_screen">
|
||||||
|
|
||||||
|
|
||||||
</appwidget-provider>
|
</appwidget-provider>
|
||||||
Reference in New Issue
Block a user