Skip to content

Commit

Permalink
Add separator line between logging and timeline items
Browse files Browse the repository at this point in the history
  • Loading branch information
MrApplejuice committed May 29, 2024
1 parent baedf11 commit 64cd0b1
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,6 @@ abstract class LoggingControls(val childId: Int) {
open fun postInit() {}
}

val ACTIVITIES = listOf(
BabyBuddyClient.EVENTS.CHANGE,
BabyBuddyClient.EVENTS.NOTE,
BabyBuddyClient.ACTIVITIES.SLEEP,
BabyBuddyClient.ACTIVITIES.FEEDING,
BabyBuddyClient.ACTIVITIES.TUMMY_TIME,
BabyBuddyClient.ACTIVITIES.PUMPING,
)

interface TimerBase {
fun updateTimer(timer: Timer?)
}
Expand Down
40 changes: 39 additions & 1 deletion app/src/main/res/layout/baby_manager.xml
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,45 @@
android:id="@+id/loggingEditors"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"></LinearLayout>
android:orientation="vertical">

</LinearLayout>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="4dp"
android:layout_marginTop="16dp"
android:gravity="center"
android:orientation="horizontal">

<FrameLayout
android:id="@+id/leftTimelineTitleLine"
style="@style/SeparatorLine"
android:layout_width="wrap_content"
android:layout_height="4dp"
android:layout_margin="10dp"
android:layout_weight="1">

</FrameLayout>

<TextView
android:id="@+id/timelineTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0"
android:text="Timeline" />

<FrameLayout
android:id="@+id/rightTimelineTitleLine"
style="@style/SeparatorLine"
android:layout_width="wrap_content"
android:layout_height="4dp"
android:layout_margin="10dp"
android:layout_weight="1">

</FrameLayout>
</LinearLayout>

<LinearLayout
android:id="@+id/innerTimeline"
Expand Down
4 changes: 4 additions & 0 deletions app/src/main/res/values-night/themes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,8 @@
<style name="TutorialArrow">
<item name="android:backgroundTint">@color/light_tutorial_highlight</item>
</style>

<style name="SeparatorLine">
<item name="android:background">@color/semi_transparent_light_background</item>
</style>
</resources>
1 change: 0 additions & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@
<string name="cancel_timer_warning_stop">Stop</string>
<string name="cancel_timer_warning_keep">Keep</string>


<!--- Store activities: Conflicts -->
<string name="conflicting_activity_title">Overlapping time entries</string>
<string name="conflicting_activity_text">
Expand Down
4 changes: 4 additions & 0 deletions app/src/main/res/values/themes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,8 @@
<style name="TutorialArrow">
<item name="android:backgroundTint">@color/dark_tutorial_highlight</item>
</style>

<style name="SeparatorLine">
<item name="android:background">@color/semi_transparent_dark_background</item>
</style>
</resources>

0 comments on commit 64cd0b1

Please sign in to comment.