Skip to content

Commit

Permalink
Style Improvements to LicenseDialog
Browse files Browse the repository at this point in the history
Additional padding has been added to the text alongside making it be left-aligned rather than center-aligned and justified. A newline has also been added to the copyright notice for Skyline to make it look nicer.
  • Loading branch information
PixelyIon committed Nov 11, 2021
1 parent 36a1f2a commit e4fbee1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions app/src/main/res/layout/license_dialog.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,17 @@
android:textAlignment="center"
android:textAppearance="@style/TextAppearance.MaterialComponents.Headline4"
android:textSize="17sp"
tools:text="Copyright © 2019-2021 Skyline Team and Contributors (https://github.com/skyline-emu/)" />
tools:text="Copyright © 2019-2021\nSkyline Team and Contributors" />

<TextView
android:id="@+id/license_content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:autoLink="web"
android:paddingTop="10dp"
android:textAlignment="center"
android:paddingBottom="15dp"
android:paddingHorizontal="15dp"
android:justificationMode="inter_word"
android:textAppearance="@style/TextAppearance.MaterialComponents.Body1"
tools:text="@string/mpl2_license" />

Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/xml/preferences.xml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
android:title="@string/licenses"
app:initialExpandedChildrenCount="5">
<emu.skyline.preference.LicensePreference
app:libraryCopyright="Copyright © 2019-2021 Skyline Team and Contributors (https://github.com/skyline-emu/)"
app:libraryCopyright="Copyright © 2019-2021\nSkyline Team and Contributors"
app:libraryLicense="@string/mpl2_license"
app:libraryUrl="https://github.com/skyline-emu/skyline"
app:summary="@string/skyline_license_description"
Expand Down

0 comments on commit e4fbee1

Please sign in to comment.