esthétique

This commit is contained in:
NonoL3Robot
2022-03-15 23:41:56 +01:00
parent b2d8cd80a5
commit 965a00c03d
11 changed files with 142 additions and 86 deletions
+2 -2
View File
@@ -4,9 +4,9 @@
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:icon="@drawable/four"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:roundIcon="@drawable/four"
android:supportsRtl="true"
android:theme="@style/Theme.OutilCuisson">
<activity
Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

+4 -1
View File
@@ -3,11 +3,14 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical">
<com.google.android.material.tabs.TabLayout
android:id="@+id/tab_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
android:layout_height="wrap_content"
style="@style/tablayout_style" />
<androidx.viewpager2.widget.ViewPager2
android:id="@+id/activity_main_viewpager"
+18 -14
View File
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:stretchColumns="3">
android:layout_height="wrap_content">
<TextView
android:layout_width="match_parent"
@@ -10,29 +9,34 @@
android:layout_gravity="center"
android:gravity="center"
android:text="@string/afficher_titre"
android:layout_marginBottom="15dp"/>
style="@style/titre_style" />
<TableRow>
<TextView
<TableRow
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:weightSum="100">
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="70"
android:text="@string/afficher_label_plat"
android:layout_column="1"
android:layout_span="1"/>
style="@style/label_style" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="25"
android:text="@string/afficher_label_duree"
android:layout_column="2"
android:layout_span="1"
android:layout_marginLeft="100dp"
android:layout_marginRight="100dp"/>
style="@style/label_style" />
<TextView
android:layout_width="match_parent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0"
android:text="@string/afficher_label_temperature"
android:layout_column="3"
android:layout_span="1"/>
style="@style/label_style" />
</TableRow>
<ListView
+15 -7
View File
@@ -10,13 +10,16 @@
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="center"
android:text="@string/ajouter_titre" />
android:text="@string/ajouter_titre"
style="@style/titre_style" />
<TableRow> <!-- Plat -->
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/ajouter_label_plat" />
android:text="@string/ajouter_label_plat"
android:layout_gravity="center"
style="@style/label_style"/>
<EditText
android:id="@+id/input_plat"
@@ -32,7 +35,8 @@
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/ajouter_label_duree" />
android:text="@string/ajouter_label_duree"
style="@style/label_style"/>
<TimePicker
android:id="@+id/input_duree"
@@ -45,13 +49,15 @@
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/ajouter_label_temperature" />
android:text="@string/ajouter_label_temperature"
android:layout_gravity="center"
style="@style/label_style"/>
<EditText
android:id="@+id/input_temperature"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_column="3"
android:layout_span="2"
android:inputType="number" />
</TableRow>
@@ -60,16 +66,18 @@
<Button
android:id="@+id/btn_effacer"
style="?android:attr/buttonBarButtonStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_column="2"
android:text="@string/btn_effacer"/>
android:text="@string/btn_effacer"
android:textColor="@color/text_color"
style="?android:attr/buttonBarButtonStyle" />
<Button
android:id="@+id/btn_valider"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
style="@style/button_ok_style"
android:text="@string/btn_valider" />
</TableRow>
+3 -1
View File
@@ -15,5 +15,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:typeface="monospace"
android:textStyle="bold"/>
android:textStyle="bold"
android:layout_margin="@dimen/cuissons_margin"
android:textSize="@dimen/cuissons_police"/>
</LinearLayout>
+1 -1
View File
@@ -3,7 +3,7 @@
<style name="Theme.OutilCuisson" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
<!-- Primary brand color. -->
<item name="colorPrimary">@color/purple_200</item>
<item name="colorPrimaryVariant">@color/purple_700</item>
<item name="colorPrimaryVariant">@color/text_color</item>
<item name="colorOnPrimary">@color/black</item>
<!-- Secondary brand color. -->
<item name="colorSecondary">@color/teal_200</item>
+5 -2
View File
@@ -1,10 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="purple_200">#FFBB86FC</color>
<color name="purple_500">#FF6200EE</color>
<color name="purple_700">#FF3700B3</color>
<color name="teal_200">#FF03DAC5</color>
<color name="teal_700">#FF018786</color>
<color name="black">#FF000000</color>
<color name="white">#FFFFFFFF</color>
<color name="fond_notif_color">#F6160C</color>
<color name="header_color">#F6160C</color>
<color name="text_color">#AA0000</color>
<color name="background_color">#D46B0B</color>
</resources>
+9 -1
View File
@@ -1,2 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<resources></resources>
<resources>
<dimen name="cuissons_margin">5dp</dimen>
<dimen name="title_margin_bottom">10dp</dimen>
<!-- Polices -->
<dimen name="titre_police">20sp</dimen>
<dimen name="categories_police">16sp</dimen>
<dimen name="cuissons_police">16sp</dimen>
</resources>
+29 -1
View File
@@ -1,2 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<resources></resources>
<resources>
<style name="clickable_element_style">
<item name="android:backgroundTint">@color/background_color</item>
</style>
<style name="tablayout_style" parent="clickable_element_style">
<item name="tabTextColor">@color/text_color</item>
<item name="tabIndicatorColor">@color/text_color</item>
</style>
<style name="button_ok_style" parent="clickable_element_style">
<item name="android:textColor">@color/text_color</item>
</style>
<style name="button_cancel_style" parent="clickable_element_style">
<item name="buttonBarNegativeButtonStyle">?attr/buttonBarButtonStyle</item>
</style>
<style name="textview_style">
<item name="android:textColor">@color/text_color</item>
<item name="android:gravity">center</item>
<item name="android:layout_margin">@dimen/cuissons_margin</item>
</style>
<style name="titre_style" parent="@style/textview_style">
<item name="android:textSize">@dimen/titre_police</item>
<item name="android:layout_marginBottom">@dimen/title_margin_bottom</item>
</style>
<style name="label_style" parent="@style/textview_style">
<item name="android:textSize">@dimen/categories_police</item>
</style>
</resources>
+3 -3
View File
@@ -2,9 +2,9 @@
<!-- Base application theme. -->
<style name="Theme.OutilCuisson" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
<!-- Primary brand color. -->
<item name="colorPrimary">@color/purple_500</item>
<item name="colorPrimaryVariant">@color/purple_700</item>
<item name="colorOnPrimary">@color/white</item>
<item name="colorPrimary">@color/fond_notif_color</item>
<item name="colorPrimaryVariant">@color/text_color</item>
<item name="colorOnPrimary">@color/text_color</item>
<!-- Secondary brand color. -->
<item name="colorSecondary">@color/teal_200</item>
<item name="colorSecondaryVariant">@color/teal_700</item>