Skip to content

Commit

Permalink
Use hardcoded hint color on note editor. Issue #6
Browse files Browse the repository at this point in the history
  • Loading branch information
matiasdelellis committed Nov 17, 2020
1 parent 35269a4 commit 7a3a388
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
4 changes: 4 additions & 0 deletions app/src/main/java/ar/delellis/quicknotes/util/ColorUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,8 @@ public static void menuItemTintColor(MenuItem item, @ColorInt int color) {
public static String getRGBColorFromInt (@ColorInt int color) {
return String.format("#%06X", (0xFFFFFF & color));
}

public static String getRGBAColorFromInt (@ColorInt int color) {
return String.format("#%08X", color);
}
}
10 changes: 5 additions & 5 deletions app/src/main/res/layout/activity_editor.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
android:importantForAutofill="no"
android:textSize="@dimen/note_font_size_large"
android:textColor="@color/defaultNoteTint"
android:textColorHint="@color/defaultNoteHint"
app:backgroundTint="@color/transparent">
</EditText>

Expand All @@ -75,14 +76,13 @@
android:minLines="5"
android:textSize="@dimen/note_font_size_medium"
app:backgroundColor="@color/transparent"
app:quoteBackground="@color/defaultNoteTint"
app:quoteBackgroundAlpha="5%"
app:textColor="@color/defaultNoteTint"
app:bulletColor="@color/defaultNoteTint"
app:textColorHint="@color/defaultNoteHint"
app:quoteBackground="@color/defaultNoteTint"
app:quoteBackgroundAlpha="5%"
app:lineSpacingExtra="10dp"
app:blockVerticalPadding="1dp"
app:backgroundTint="?android:attr/textColorHint"
app:textColorHint="?android:attr/textColorHint">
app:blockVerticalPadding="1dp">
</org.wordpress.aztec.AztecText>

<androidx.recyclerview.widget.RecyclerView
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,6 @@
<!-- Default colors of note -->
<color name="defaultNoteColor">#F7EB96</color>
<color name="defaultNoteTint">#202124</color>
<color name="defaultNoteHint">#61000000</color>

</resources>

0 comments on commit 7a3a388

Please sign in to comment.