Skip to content

Commit

Permalink
courses: smoother resource button (fixes #4971)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavi38 committed Jan 9, 2025
1 parent 516a848 commit d5a7ae3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/main/res/layout/fragment_course_detail.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,13 @@
android:layout_height="wrap_content"
android:text="@string/open_resource"
android:theme="@style/AccentButton" />

<Button
android:id="@+id/btn_resources"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="10dp"
android:theme="@style/AccentButton" />
android:theme="@style/AppThemeButton"/>
</LinearLayout>

<LinearLayout
Expand Down
6 changes: 6 additions & 0 deletions app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,12 @@
<item name="colorControlHighlight">@color/colorPrimary</item>
</style>

<style name="AppThemeButton" parent="Theme.AppCompat">
<item name="android:textColor">@color/md_white_1000</item>
<item name="colorButtonNormal">@color/mainColor</item>
<item name="colorControlHighlight">@color/total_color</item>
</style>

<style name="BlueButton" parent="Theme.AppCompat">
<item name="android:textColor">@color/md_white_1000</item>
<item name="android:background">@color/colorPrimaryDark</item>
Expand Down

0 comments on commit d5a7ae3

Please sign in to comment.