Skip to content

Commit

Permalink
Feat[ui]: add divider between wiki and discord
Browse files Browse the repository at this point in the history
  • Loading branch information
artdeell committed Aug 30, 2024
1 parent 7dcad5f commit 8373b7c
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 4 deletions.
14 changes: 12 additions & 2 deletions app_pojavlauncher/src/main/res/layout-land/fragment_launcher.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,17 @@
android:text="@string/mcl_tab_wiki"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toStartOf="@id/center_guideline"/>
app:layout_constraintEnd_toStartOf="@id/social_divider"/>
<View
android:id="@+id/social_divider"
android:layout_width="@dimen/padding_tiny"
android:layout_height="0dp"
android:background="@color/divider"
android:layout_marginVertical="@dimen/padding_heavy"
app:layout_constraintTop_toTopOf="@id/news_button"
app:layout_constraintStart_toStartOf="@id/center_guideline"
app:layout_constraintEnd_toEndOf="@id/center_guideline"
app:layout_constraintBottom_toBottomOf="@id/news_button"/>
<com.kdt.mcgui.LauncherMenuButton
android:id="@+id/discord_button"
android:layout_width="0dp"
Expand All @@ -51,7 +61,7 @@
android:text="@string/mcl_button_discord"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@id/center_guideline"/>
app:layout_constraintStart_toEndOf="@id/social_divider"/>

<com.kdt.mcgui.LauncherMenuButton
android:id="@+id/custom_control_button"
Expand Down
14 changes: 12 additions & 2 deletions app_pojavlauncher/src/main/res/layout/fragment_launcher.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,17 @@
android:drawableStart="@drawable/ic_menu_news"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toStartOf="@id/center_guideline" />
app:layout_constraintEnd_toStartOf="@id/social_divider" />
<View
android:id="@+id/social_divider"
android:layout_width="@dimen/padding_tiny"
android:layout_height="0dp"
android:background="@color/divider"
android:layout_marginVertical="@dimen/padding_large"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintStart_toStartOf="@id/center_guideline"
app:layout_constraintEnd_toEndOf="@id/center_guideline"
app:layout_constraintBottom_toBottomOf="@id/news_button"/>
<com.kdt.mcgui.LauncherMenuButton
android:id="@+id/discord_button"
android:layout_width="0dp"
Expand All @@ -44,7 +54,7 @@
android:text="@string/mcl_button_discord"
android:drawableStart="@drawable/ic_discord"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintStart_toEndOf="@id/center_guideline"
app:layout_constraintStart_toEndOf="@id/social_divider"
app:layout_constraintEnd_toEndOf="parent"/>


Expand Down
1 change: 1 addition & 0 deletions app_pojavlauncher/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

<color name="minebutton_color">#57CC33</color>
<color name="background_app">#181818</color>
<color name="divider">@color/background_overlay</color>
<color name="background_overlay">#464646</color>
<color name="background_status_bar">#242424</color>
<color name="background_bottom_bar">#232323</color>
Expand Down

0 comments on commit 8373b7c

Please sign in to comment.