Skip to content

Commit

Permalink
Made more whitening changes
Browse files Browse the repository at this point in the history
* Changed progress popup and book titles to black on white
* Made default dictionary size shorter
* Added margin to dictionary rows
* Added IPA font (still hooking them up)
  • Loading branch information
makuto committed Jun 17, 2020
1 parent faf352e commit 455c65b
Show file tree
Hide file tree
Showing 11 changed files with 142 additions and 16 deletions.
5 changes: 5 additions & 0 deletions .idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

117 changes: 117 additions & 0 deletions app/src/main/assets/IPA_Font_License_Agreement_v1.0.txt

Large diffs are not rendered by default.

Binary file added app/src/main/assets/ipaexg.ttf
Binary file not shown.
Binary file added app/src/main/assets/ipaexm.ttf
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -1025,7 +1025,7 @@ public View getView(final int index, final LibraryBook object, View convertView,
image.setImageDrawable(backupCover);
TextView text = (TextView) result.findViewById(R.id.bookLabel);
text.setText(object.getTitle());
text.setBackgroundResource(R.drawable.alphabet_bar_bg_dark);
text.setBackgroundResource(R.drawable.alphabet_bar_bg);

loadCover(image, object, index);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ public void onCurrentMatchChanged(SelectedWord word, Entries match) {

public void showPane() {
if (!this.isDisplaying() || this.getHeight() < 10) {
this.setHeight((int) (bookReader.getHeight() / 2.6));
this.setHeight((int) (bookReader.getHeight() / 3.2));
this.reveal();
}
}
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/drawable/alphabet_bar_bg.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="#20777777" />
<solid android:color="#ffffffff" />
<corners android:radius="8dip" />
</shape>
7 changes: 3 additions & 4 deletions app/src/main/res/layout/bookcase_row.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,10 @@
android:id="@+id/bookLabel"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:gravity="center"
android:text="@string/small_text"
android:textAppearance="?android:attr/textAppearanceSmall"
android:gravity="center"
android:layout_gravity="bottom"
android:textColor="@color/opaque_white"
/>
android:textColor="@color/opaque_black" />

</FrameLayout>
3 changes: 2 additions & 1 deletion app/src/main/res/layout/definition_row.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@
android:id="@+id/def"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#FF0000"
android:paddingLeft="10dp"
android:paddingRight="10dp"
android:textSize="20sp" />
14 changes: 7 additions & 7 deletions app/src/main/res/layout/fragment_reading.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,40 +51,40 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:background="@color/translucent_black"
android:background="@color/opaque_white"
android:gravity="center"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textColor="@color/opaque_white" />/>
android:textColor="@color/opaque_black" />/>

<TextView
android:id="@+id/authorField"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/myTitleBarTextView"
android:background="@color/translucent_black"
android:background="@color/opaque_white"
android:gravity="center"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textColor="@color/opaque_white" />
android:textColor="@color/opaque_black" />


<TextView
android:id="@+id/percentageField"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/authorField"
android:background="@color/translucent_black"
android:background="@color/opaque_white"
android:text="@string/zero_percent"

android:textAppearance="?android:attr/textAppearanceSmall"
android:textColor="@color/opaque_white" />
android:textColor="@color/opaque_black" />

<SeekBar
android:id="@+id/titleProgress"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@id/percentageField"
android:background="@color/translucent_black"
android:background="@color/opaque_white"
android:paddingLeft="16dp"
android:paddingRight="16dp" />
</RelativeLayout>
Expand Down
6 changes: 5 additions & 1 deletion app/src/main/res/values/arrays.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
</string-array>

<string-array name="fonts">
<item>IPAMincho</item>
<item>IPAGothic</item>
<item>mamelon</item>
<item>boku2r</item>
<item>kokoro</item>
Expand All @@ -46,6 +48,8 @@
</string-array>

<string-array name="fontLabels">
<item>IPA Mincho</item>
<item>IPA Gothic</item>
<item>Mamelon Maru</item>
<item>Boku2r Gothic</item>
<item>Kokoro Mincho</item>
Expand Down Expand Up @@ -94,4 +98,4 @@
<item>reversed</item>
</string-array>

</resources>
</resources>

0 comments on commit 455c65b

Please sign in to comment.