Archived
(re-)added option to launch timetable on the current day; reinstated functionality to launch app on CanteenFragment.kt
This commit is contained in:
@@ -13,11 +13,11 @@
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
app:defaultNavHost="true"
|
||||
app:navGraph="@navigation/main_nav_graph"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toTopOf="@+id/nav_view"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"/>
|
||||
<!-- app:navGraph="@navigation/main_nav_graph"-->
|
||||
|
||||
<com.google.android.material.bottomnavigation.BottomNavigationView
|
||||
android:id="@+id/nav_view"
|
||||
|
||||
@@ -94,6 +94,49 @@
|
||||
|
||||
</androidx.appcompat.widget.LinearLayoutCompat>
|
||||
|
||||
<!-- Highlight course -->
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/layout_current_day"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingHorizontal="16dp"
|
||||
android:paddingVertical="8dp">
|
||||
|
||||
<androidx.appcompat.widget.LinearLayoutCompat
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:orientation="vertical"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toStartOf="@+id/switch_current_day"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="@font/lato_bolditalic"
|
||||
android:text="@string/settings_current_day_title"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/settings_current_day_subtitle"
|
||||
android:textSize="16sp" />
|
||||
|
||||
</androidx.appcompat.widget.LinearLayoutCompat>
|
||||
|
||||
<com.google.android.material.materialswitch.MaterialSwitch
|
||||
android:id="@+id/switch_current_day"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<!-- Highlight course -->
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/layout_highlight"
|
||||
|
||||
@@ -150,6 +150,9 @@
|
||||
<string name="refresh_schedule_title">Aktualisiere Deinen Stud.IP-Stundenplan</string>
|
||||
<string name="refresh_schedule_subtitle">Dies wird alle Anpassungen löschen!</string>
|
||||
|
||||
<string name="settings_current_day_title">Starte Stundenplan am heutigen Tag</string>
|
||||
<string name="settings_current_day_subtitle">Ansonsten wird Montag beim Start angezeigt</string>
|
||||
|
||||
<string name="settings_highlight_title">Markiere den nächsten Kurs</string>
|
||||
<string name="settings_highlight_subtitle">Funktioniert nur, wenn Kurse sich nicht überschneiden!</string>
|
||||
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
<item name="colorErrorText">@color/md_theme_dark_error</item>
|
||||
|
||||
<item name="android:textColor">@color/md_theme_dark_onSurfaceVariant</item>
|
||||
<item name="android:textColorHighlight">@color/md_theme_dark_primaryContainer</item>
|
||||
<item name="colorText">@color/md_theme_dark_onSurfaceVariant</item>
|
||||
<item name="android:scrollbarThumbVertical">@color/md_theme_dark_primary</item> <!-- md_theme_dark_onSurfaceVariant -->
|
||||
<item name="colorOutlineVariant">@color/md_theme_dark_outlineVariant</item>
|
||||
|
||||
@@ -154,6 +154,9 @@
|
||||
<string name="refresh_schedule_title">Refresh your Stud.IP schedule</string>
|
||||
<string name="refresh_schedule_subtitle">This will clear any customisations!</string>
|
||||
|
||||
<string name="settings_current_day_title">Launch timetable on current day</string>
|
||||
<string name="settings_current_day_subtitle">If unselected, Monday will be shown on launch instead</string>
|
||||
|
||||
<string name="settings_highlight_title">Highlight next course</string>
|
||||
<string name="settings_highlight_subtitle">Only works properly if courses don\'t overlap!</string>
|
||||
|
||||
@@ -167,10 +170,10 @@
|
||||
<string name="settings_allergens_subtitle">Also applies to additives</string>
|
||||
|
||||
<string name="settings_pref_colour_title">Colour dietary preferences</string>
|
||||
<string name="settings_pref_colour_subtitle">This colours the icons similar to how they look the website</string> <!-- TODO this text sucks, DE too -->
|
||||
<string name="settings_pref_colour_subtitle">Icons will be coloured similarly to how they look the website</string> <!-- TODO this text sucks, DE too -->
|
||||
|
||||
<string name="settings_launch_canteen_title">Show canteen plan on app launch</string>
|
||||
<string name="settings_launch_canteen_subtitle">Otherwise your schedule will be shown at launch; CURRENTLY BROKEN</string>
|
||||
<string name="settings_launch_canteen_subtitle">Otherwise your schedule will be shown at launch</string>
|
||||
|
||||
<string name="settings_crashlytics_title">Opt-in to sharing crash data</string>
|
||||
<string name="settings_crashlytics_subtitle">Data will be anonymised</string> <!-- TODO is this true? -->
|
||||
@@ -203,5 +206,6 @@
|
||||
<item>if we only had one more day, what is the last thing you\'d say?</item>
|
||||
<item>love with your heart, use your head for everything else</item>
|
||||
<item>trans rights are human rights 🏳️⚧️</item>
|
||||
<item>i wouldn\'t risk any more than six minutes</item>
|
||||
</string-array>
|
||||
</resources>
|
||||
@@ -29,6 +29,7 @@
|
||||
<item name="colorPrimaryInverse">@color/md_theme_light_inversePrimary</item>
|
||||
|
||||
<item name="android:textColor">@color/md_theme_light_onSurfaceVariant</item>
|
||||
<item name="android:textColorHighlight">@color/md_theme_light_primaryContainer</item>
|
||||
<item name="colorText">@color/md_theme_light_onSurfaceVariant</item>
|
||||
<item name="android:scrollbarThumbVertical">@color/md_theme_light_primary</item> <!-- md_theme_light_onSurfaceVariant -->
|
||||
<item name="colorOutlineVariant">@color/md_theme_light_outlineVariant</item>
|
||||
|
||||
Reference in New Issue
Block a user