Skip to content

Commit 6d07c95

Browse files
committed
use the primary color for the brush size seekbar
1 parent 923080d commit 6d07c95

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

app/src/main/kotlin/com/simplemobiletools/draw/activities/MainActivity.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ class MainActivity : SimpleActivity(), MyCanvas.PathsChangedListener {
7979
val isStrokeWidthBarEnabled = config.showBrushSize
8080
stroke_width_bar.beVisibleIf(isStrokeWidthBarEnabled)
8181
my_canvas.setIsStrokeWidthBarEnabled(isStrokeWidthBarEnabled)
82+
updateTextColors(main_holder)
8283
}
8384

8485
override fun onPause() {

app/src/main/res/layout/activity_main.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<RelativeLayout
33
xmlns:android="http://schemas.android.com/apk/res/android"
4+
android:id="@+id/main_holder"
45
android:layout_width="match_parent"
56
android:layout_height="match_parent">
67

@@ -26,7 +27,7 @@
2627
android:src="@drawable/ic_undo"
2728
android:visibility="gone"/>
2829

29-
<SeekBar
30+
<com.simplemobiletools.commons.views.MySeekBar
3031
android:id="@+id/stroke_width_bar"
3132
android:layout_width="@dimen/stroke_bar_size"
3233
android:layout_height="wrap_content"

0 commit comments

Comments
 (0)