Skip to content

Commit

Permalink
Improve styling
Browse files Browse the repository at this point in the history
  • Loading branch information
nienow committed Jan 27, 2024
1 parent f91ffd3 commit 5d38f3c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 10 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ android {
applicationId = "dev.randombits.intervaltimer"
minSdk = 24
targetSdk = 33
versionCode = 5
versionName = "1.0.5"
versionCode = 7
versionName = "1.0.7"

vectorDrawables {
useSupportLibrary = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,10 @@ class TimerFragment : Fragment() {

override fun onStatusChange(status: TimerStatus, set: Int) {
if (status === TimerStatus.ACTIVE) {
// view.setBackgroundColor(resources.getColor(R.color.activeBg));
statusTextView.setTextColor(resources.getColor(R.color.activeBg));
} else if (status === TimerStatus.REST) {
// view.setBackgroundColor(resources.getColor(R.color.restBg));
statusTextView.setTextColor(resources.getColor(R.color.restBg));
} else {
// view.setBackgroundColor(resources.getColor(R.color.startBg));
statusTextView.setTextColor(resources.getColor(R.color.text));
}

Expand Down
8 changes: 4 additions & 4 deletions app/src/main/res/layout/fragment_settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
android:layout_height="wrap_content"
android:src="@drawable/minus"
android:contentDescription="@string/decrease_active_time"
android:scaleType="fitCenter" android:padding="16dp"/>
android:scaleType="fitCenter" android:padding="16dp" android:background="@color/white"/>

<EditText
android:id="@+id/activeTime"
Expand All @@ -42,7 +42,7 @@
android:layout_height="wrap_content"
android:src="@drawable/add_24"
android:contentDescription="@string/increase_active_time"
android:scaleType="fitCenter" android:padding="16dp"/>
android:scaleType="fitCenter" android:padding="16dp" android:background="@color/white"/>
</LinearLayout>
<TextView
android:text="@string/restTime_label"
Expand All @@ -61,7 +61,7 @@
android:layout_height="wrap_content"
android:src="@drawable/minus"
android:contentDescription="@string/decrease_rest_time"
android:scaleType="fitCenter" android:padding="16dp"/>
android:scaleType="fitCenter" android:padding="16dp" android:background="@color/white"/>

<EditText
android:id="@+id/restTime"
Expand All @@ -78,7 +78,7 @@
android:layout_height="wrap_content"
android:src="@drawable/add_24"
android:contentDescription="@string/increase_rest_time"
android:scaleType="fitCenter" android:padding="16dp"/>
android:scaleType="fitCenter" android:padding="16dp" android:background="@color/white"/>
</LinearLayout>

<Button
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id("com.android.application") version "8.2.0" apply false
id("org.jetbrains.kotlin.android") version "1.9.0" apply false
id("org.jetbrains.kotlin.android") version "1.8.10" apply false
}
1 change: 1 addition & 0 deletions metadata/en-US/changelogs/7.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update styling

0 comments on commit 5d38f3c

Please sign in to comment.