Merge pull request #1494 from osodebailar/feature/rounded-dialogs

rounded dialogs like in android 12
This commit is contained in:
Milos Kozak 2022-03-24 15:26:58 +01:00 committed by GitHub
commit ea995f705a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
32 changed files with 167 additions and 180 deletions

View file

@ -2,11 +2,10 @@
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
style="@style/StyleDialog"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:focusableInTouchMode="true" android:focusableInTouchMode="true"
android:minWidth="300dp"
android:orientation="vertical"
tools:context=".dialogs.CalibrationDialog"> tools:context=".dialogs.CalibrationDialog">
<LinearLayout <LinearLayout
@ -14,14 +13,11 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="vertical"> android:orientation="vertical">
<RelativeLayout <RelativeLayout
style="@style/StyleDialogHeader"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center">
android:background="?attr/dialogTitleBackground"
android:orientation="horizontal"
android:padding="5dp">
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="wrap_content"

View file

@ -2,11 +2,10 @@
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
style="@style/StyleDialog"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:focusableInTouchMode="true" android:focusableInTouchMode="true"
android:minWidth="300dp"
android:orientation="vertical"
tools:context=".dialogs.CarbsDialog"> tools:context=".dialogs.CarbsDialog">
<LinearLayout <LinearLayout
@ -15,12 +14,10 @@
android:orientation="vertical"> android:orientation="vertical">
<RelativeLayout <RelativeLayout
style="@style/StyleDialogHeader"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center">
android:background="?attr/dialogTitleBackground"
android:orientation="horizontal"
android:padding="5dp">
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="wrap_content"

View file

@ -2,11 +2,10 @@
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
style="@style/StyleDialog"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:focusableInTouchMode="true" android:focusableInTouchMode="true"
android:minWidth="300dp"
android:orientation="vertical"
tools:context=".dialogs.CareDialog"> tools:context=".dialogs.CareDialog">
<LinearLayout <LinearLayout
@ -15,12 +14,10 @@
android:orientation="vertical"> android:orientation="vertical">
<RelativeLayout <RelativeLayout
style="@style/StyleDialogHeader"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center">
android:background="?attr/dialogTitleBackground"
android:orientation="horizontal"
android:padding="5dp">
<ImageView <ImageView
android:id="@+id/icon" android:id="@+id/icon"
@ -40,6 +37,7 @@
android:text="@string/careportal_profileswitch" android:text="@string/careportal_profileswitch"
android:textAlignment="center" android:textAlignment="center"
android:textAppearance="?android:attr/textAppearanceLarge" /> android:textAppearance="?android:attr/textAppearanceLarge" />
</RelativeLayout> </RelativeLayout>
<LinearLayout <LinearLayout

View file

@ -2,11 +2,10 @@
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
style="@style/StyleDialog"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:focusableInTouchMode="true" android:focusableInTouchMode="true"
android:minWidth="300dp"
android:orientation="vertical"
tools:context=".dialogs.ExtendedBolusDialog"> tools:context=".dialogs.ExtendedBolusDialog">
<LinearLayout <LinearLayout
@ -15,12 +14,10 @@
android:orientation="vertical"> android:orientation="vertical">
<RelativeLayout <RelativeLayout
style="@style/StyleDialogHeader"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center">
android:background="?attr/dialogTitleBackground"
android:orientation="horizontal"
android:padding="5dp">
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="wrap_content"

View file

@ -2,11 +2,10 @@
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
style="@style/StyleDialog"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:focusableInTouchMode="true" android:focusableInTouchMode="true"
android:minWidth="300dp"
android:orientation="vertical"
tools:context=".dialogs.FillDialog"> tools:context=".dialogs.FillDialog">
<LinearLayout <LinearLayout
@ -15,12 +14,10 @@
android:orientation="vertical"> android:orientation="vertical">
<RelativeLayout <RelativeLayout
style="@style/StyleDialogHeader"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center">
android:background="?attr/dialogTitleBackground"
android:orientation="horizontal"
android:padding="5dp">
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="wrap_content"

View file

@ -2,11 +2,10 @@
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
style="@style/StyleDialog"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:focusableInTouchMode="true" android:focusableInTouchMode="true"
android:minWidth="300dp"
android:orientation="vertical"
tools:context=".dialogs.InsulinDialog"> tools:context=".dialogs.InsulinDialog">
<LinearLayout <LinearLayout
@ -15,12 +14,10 @@
android:orientation="vertical"> android:orientation="vertical">
<RelativeLayout <RelativeLayout
style="@style/StyleDialogHeader"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center">
android:background="?attr/dialogTitleBackground"
android:orientation="horizontal"
android:padding="5dp">
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="wrap_content"

View file

@ -2,11 +2,10 @@
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
style="@style/StyleDialog"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:focusableInTouchMode="true" android:focusableInTouchMode="true"
android:minWidth="300dp"
android:orientation="vertical"
tools:context=".dialogs.LoopDialog"> tools:context=".dialogs.LoopDialog">
<LinearLayout <LinearLayout
@ -15,12 +14,10 @@
android:orientation="vertical"> android:orientation="vertical">
<RelativeLayout <RelativeLayout
style="@style/StyleDialogHeader"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center">
android:background="?attr/dialogTitleBackground"
android:orientation="horizontal"
android:padding="5dp">
<ImageView <ImageView
android:id="@+id/loop_icon" android:id="@+id/loop_icon"

View file

@ -2,11 +2,10 @@
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
style="@style/StyleDialog"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:focusableInTouchMode="true" android:focusableInTouchMode="true"
android:minWidth="300dp"
android:orientation="vertical"
tools:context=".dialogs.ProfileSwitchDialog"> tools:context=".dialogs.ProfileSwitchDialog">
<LinearLayout <LinearLayout
@ -15,12 +14,10 @@
android:orientation="vertical"> android:orientation="vertical">
<RelativeLayout <RelativeLayout
style="@style/StyleDialogHeader"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center">
android:background="?attr/dialogTitleBackground"
android:orientation="horizontal"
android:padding="5dp">
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="wrap_content"

View file

@ -2,11 +2,10 @@
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
style="@style/StyleDialog"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:focusableInTouchMode="true" android:focusableInTouchMode="true"
android:minWidth="300dp"
android:orientation="vertical"
tools:context=".dialogs.TempBasalDialog"> tools:context=".dialogs.TempBasalDialog">
<LinearLayout <LinearLayout
@ -15,12 +14,10 @@
android:orientation="vertical"> android:orientation="vertical">
<RelativeLayout <RelativeLayout
style="@style/StyleDialogHeader"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center">
android:background="?attr/dialogTitleBackground"
android:orientation="horizontal"
android:padding="5dp">
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="wrap_content"

View file

@ -2,11 +2,10 @@
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
style="@style/StyleDialog"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:focusableInTouchMode="true" android:focusableInTouchMode="true"
android:minWidth="300dp"
android:orientation="vertical"
tools:context=".dialogs.TempTargetDialog"> tools:context=".dialogs.TempTargetDialog">
<LinearLayout <LinearLayout
@ -15,12 +14,10 @@
android:orientation="vertical"> android:orientation="vertical">
<RelativeLayout <RelativeLayout
style="@style/StyleDialogHeader"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center">
android:background="?attr/dialogTitleBackground"
android:orientation="horizontal"
android:padding="5dp">
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="wrap_content"

View file

@ -2,11 +2,10 @@
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
style="@style/StyleDialog"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:focusableInTouchMode="true" android:focusableInTouchMode="true"
android:minWidth="300dp"
android:orientation="vertical"
tools:context=".dialogs.TreatmentDialog"> tools:context=".dialogs.TreatmentDialog">
<LinearLayout <LinearLayout
@ -15,13 +14,10 @@
android:orientation="vertical"> android:orientation="vertical">
<RelativeLayout <RelativeLayout
style="@style/StyleDialogHeader"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center">
android:background="?attr/dialogTitleBackground"
android:orientation="horizontal"
android:padding="5dp"
android:layout_marginBottom="5dp">
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="wrap_content"

View file

@ -2,11 +2,10 @@
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
style="@style/StyleDialog"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:focusableInTouchMode="true" android:focusableInTouchMode="true"
android:minWidth="300dp"
android:orientation="vertical"
tools:context=".dialogs.InsulinDialog"> tools:context=".dialogs.InsulinDialog">
<LinearLayout <LinearLayout
@ -15,12 +14,10 @@
android:orientation="vertical"> android:orientation="vertical">
<RelativeLayout <RelativeLayout
style="@style/StyleDialogHeader"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center">
android:background="?attr/dialogTitleBackground"
android:orientation="horizontal"
android:padding="5dp">
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="wrap_content"

View file

@ -2,11 +2,10 @@
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
style="@style/StyleDialog"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:focusableInTouchMode="true" android:focusableInTouchMode="true"
android:minWidth="300dp"
android:orientation="vertical"
tools:context=".dialogs.WizardInfoDialog"> tools:context=".dialogs.WizardInfoDialog">
<LinearLayout <LinearLayout
@ -15,12 +14,10 @@
android:orientation="vertical"> android:orientation="vertical">
<RelativeLayout <RelativeLayout
style="@style/StyleDialogHeader"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center">
android:background="?attr/dialogTitleBackground"
android:orientation="horizontal"
android:padding="5dp">
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="wrap_content"

View file

@ -1,6 +1,7 @@
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
style="@style/StyleDialog"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
tools:context=".plugins.general.overview.dialogs.EditQuickWizardDialog"> tools:context=".plugins.general.overview.dialogs.EditQuickWizardDialog">
@ -11,12 +12,10 @@
android:orientation="vertical"> android:orientation="vertical">
<RelativeLayout <RelativeLayout
style="@style/StyleDialogHeader"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center">
android:background="?attr/dialogTitleBackground"
android:orientation="horizontal"
android:padding="5dp">
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="wrap_content"

View file

@ -2,11 +2,10 @@
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
style="@style/StyleDialog"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:focusableInTouchMode="true" android:focusableInTouchMode="true"
android:minWidth="300dp"
android:orientation="vertical"
tools:context=".plugins.general.automation.dialogs.EditActionDialog"> tools:context=".plugins.general.automation.dialogs.EditActionDialog">
<LinearLayout <LinearLayout
@ -15,12 +14,10 @@
android:orientation="vertical"> android:orientation="vertical">
<RelativeLayout <RelativeLayout
style="@style/StyleDialogHeader"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center">
android:background="?attr/dialogTitleBackground"
android:orientation="horizontal"
android:padding="5dp">
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="wrap_content"

View file

@ -2,11 +2,11 @@
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:focusableInTouchMode="true" android:focusableInTouchMode="true"
android:minWidth="300dp"
android:orientation="vertical"
tools:context=".plugins.general.automation.dialogs.EditEventDialog"> tools:context=".plugins.general.automation.dialogs.EditEventDialog">
<LinearLayout <LinearLayout
@ -15,12 +15,10 @@
android:orientation="vertical"> android:orientation="vertical">
<RelativeLayout <RelativeLayout
style="@style/StyleDialogHeader"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center">
android:background="?attr/dialogTitleBackground"
android:orientation="horizontal"
android:padding="5dp">
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="wrap_content"

View file

@ -2,11 +2,10 @@
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
style="@style/StyleDialog"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:focusableInTouchMode="true" android:focusableInTouchMode="true"
android:minWidth="300dp"
android:orientation="vertical"
tools:context="info.nightscout.androidaps.plugins.general.automation.dialogs.ChooseOperationDialog"> tools:context="info.nightscout.androidaps.plugins.general.automation.dialogs.ChooseOperationDialog">
<LinearLayout <LinearLayout
@ -15,12 +14,10 @@
android:orientation="vertical"> android:orientation="vertical">
<RelativeLayout <RelativeLayout
style="@style/StyleDialogHeader"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center">
android:background="?attr/dialogTitleBackground"
android:orientation="horizontal"
android:padding="5dp">
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="wrap_content"

View file

@ -2,11 +2,10 @@
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
style="@style/StyleDialog"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:focusableInTouchMode="true" android:focusableInTouchMode="true"
android:minWidth="300dp"
android:orientation="vertical"
tools:context=".plugins.general.automation.dialogs.EditEventDialog"> tools:context=".plugins.general.automation.dialogs.EditEventDialog">
<LinearLayout <LinearLayout
@ -15,12 +14,10 @@
android:orientation="vertical"> android:orientation="vertical">
<RelativeLayout <RelativeLayout
style="@style/StyleDialogHeader"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center">
android:background="?attr/dialogTitleBackground"
android:orientation="horizontal"
android:padding="5dp">
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="wrap_content"

View file

@ -2,11 +2,10 @@
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
style="@style/StyleDialog"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:focusableInTouchMode="true" android:focusableInTouchMode="true"
android:minWidth="300dp"
android:orientation="vertical"
tools:context="info.nightscout.androidaps.plugins.general.automation.dialogs.EditEventDialog"> tools:context="info.nightscout.androidaps.plugins.general.automation.dialogs.EditEventDialog">
<LinearLayout <LinearLayout
@ -15,12 +14,10 @@
android:orientation="vertical"> android:orientation="vertical">
<RelativeLayout <RelativeLayout
style="@style/StyleDialogHeader"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center">
android:background="?attr/dialogTitleBackground"
android:orientation="horizontal"
android:padding="5dp">
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="wrap_content"

View file

@ -2,11 +2,10 @@
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
style="@style/StyleDialog"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:focusableInTouchMode="true" android:focusableInTouchMode="true"
android:minWidth="300dp"
android:orientation="vertical"
tools:context="info.nightscout.androidaps.plugins.general.automation.dialogs.EditEventDialog"> tools:context="info.nightscout.androidaps.plugins.general.automation.dialogs.EditEventDialog">
<LinearLayout <LinearLayout
@ -15,12 +14,10 @@
android:orientation="vertical"> android:orientation="vertical">
<LinearLayout <LinearLayout
style="@style/StyleDialogHeader"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center">
android:background="?attr/dialogTitleBackground"
android:orientation="horizontal"
android:padding="5dp">
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="wrap_content"

View file

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape>
<padding
android:bottom="2dp"
android:left="10dp"
android:right="10dp"
android:top="10dp" />
<solid android:color="?attr/backgroundColor" />
<corners android:radius="?android:dialogCornerRadius" />
</shape>
</item>
</layer-list>

View file

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape>
<padding/>
<solid android:color="?dialogTitleBackground" />
<corners
android:topRightRadius="?android:dialogCornerRadius"
android:topLeftRadius="?android:dialogCornerRadius" />
</shape>
</item>
</layer-list>

View file

@ -1,5 +1,10 @@
<vector android:height="48dp" android:tint="#FFFFFF" <vector xmlns:android="http://schemas.android.com/apk/res/android"
android:viewportHeight="24.0" android:viewportWidth="24.0" android:width="48dp"
android:width="48dp" xmlns:android="http://schemas.android.com/apk/res/android"> android:height="48dp"
<path android:fillColor="#FF000000" android:pathData="M22,12l-4,-4v3H3v2h15v3z"/> android:tint="#FFFFFF"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="?attr/colorControlNormal"
android:pathData="M22,12l-4,-4v3H3v2h15v3z" />
</vector> </vector>

View file

@ -4,17 +4,15 @@
--> -->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
style="@style/StyleDialog"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent">
android:orientation="vertical">
<RelativeLayout <RelativeLayout
style="@style/StyleDialogHeader"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center" >
android:background="?dialogTitleBackground"
android:orientation="horizontal"
android:padding="5dp">
<ImageView <ImageView
android:id="@+id/alertdialog_icon" android:id="@+id/alertdialog_icon"

View file

@ -1,18 +1,16 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
style="@style/StyleDialog"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical"
tools:context="info.nightscout.androidaps.dialogs.BolusProgressDialog"> tools:context="info.nightscout.androidaps.dialogs.BolusProgressDialog">
<RelativeLayout <RelativeLayout
style="@style/StyleDialogHeader"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center">
android:background="?attr/dialogTitleBackground"
android:orientation="horizontal"
android:padding="5dp">
<ImageView <ImageView
android:id="@+id/header_icon" android:id="@+id/header_icon"

View file

@ -1,18 +1,16 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
style="@style/StyleDialog"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical"
tools:context="info.nightscout.androidaps.dialogs.ErrorDialog"> tools:context="info.nightscout.androidaps.dialogs.ErrorDialog">
<RelativeLayout <RelativeLayout
style="@style/StyleDialogHeader"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center">
android:background="?attr/dialogTitleBackground"
android:orientation="horizontal"
android:padding="5dp">
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="wrap_content"

View file

@ -1,11 +1,10 @@
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
style="@style/StyleDialog"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:focusableInTouchMode="true" android:focusableInTouchMode="true"
android:minWidth="300dp"
android:orientation="vertical"
tools:context="info.nightscout.androidaps.dialogs.ProfileViewerDialog"> tools:context="info.nightscout.androidaps.dialogs.ProfileViewerDialog">
<LinearLayout <LinearLayout
@ -14,12 +13,10 @@
android:orientation="vertical"> android:orientation="vertical">
<RelativeLayout <RelativeLayout
style="@style/StyleDialogHeader"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center">
android:background="?attr/dialogTitleBackground"
android:orientation="horizontal"
android:padding="5dp">
<ImageView <ImageView
android:id="@+id/header_icon" android:id="@+id/header_icon"

View file

@ -25,9 +25,13 @@
<color name="overviewPillColorDefault">#1c171c</color> <color name="overviewPillColorDefault">#1c171c</color>
<color name="colorOnPrimaryDefault">#FFFFFF</color> <color name="colorOnPrimaryDefault">#FFFFFF</color>
<color name="defaultbackground">#424242</color> <color name="defaultbackground">#000000</color>
<color name="defaulttextcolor">#B3FFFFFF</color> <color name="defaulttextcolor">#B3FFFFFF</color>
<!---Android Dark ans Light Theme Base colors-->
<color name="background_dark">#262626</color>
<color name="background_light">#FFFFFF</color>
<!-- Tabs--> <!-- Tabs-->
<color name="tabText">#d0d0d0</color> <color name="tabText">#d0d0d0</color>
<color name="tabSelectedText">@color/white</color> <color name="tabSelectedText">@color/white</color>

View file

@ -113,6 +113,8 @@
<item name="splashBackgroundColor">@color/splashBackground</item> <item name="splashBackgroundColor">@color/splashBackground</item>
<!---Application Background Color --> <!---Application Background Color -->
<item name="android:windowBackground">@color/black</item> <item name="android:windowBackground">@color/black</item>
<!---Dialogfragment Background Color -->
<item name="android:dialogCornerRadius">12dp</item>
</style> </style>
<style name="Theme.MaterialComponents.DayNight.DarkActionBar" parent="Theme.MaterialComponents.DayNight.Bridge"/> <style name="Theme.MaterialComponents.DayNight.DarkActionBar" parent="Theme.MaterialComponents.DayNight.Bridge"/>
@ -203,7 +205,7 @@
<!-- Alert Dialogs --> <!-- Alert Dialogs -->
<style name="DialogTheme" parent="ThemeOverlay.MaterialComponents.Dialog.Alert"> <style name="DialogTheme" parent="ThemeOverlay.MaterialComponents.Dialog.Alert">
<item name="backgroundColor">@color/dialog_title_background</item> <item name="backgroundColor">@color/background_dark</item>
<item name="buttonBarNegativeButtonStyle">@style/DialogOkCancelButtonStyle</item> <item name="buttonBarNegativeButtonStyle">@style/DialogOkCancelButtonStyle</item>
<item name="buttonBarPositiveButtonStyle">@style/DialogOkCancelButtonStyle</item> <item name="buttonBarPositiveButtonStyle">@style/DialogOkCancelButtonStyle</item>
<item name="buttonBarNeutralButtonStyle">@style/DialogOkCancelButtonStyle</item> <item name="buttonBarNeutralButtonStyle">@style/DialogOkCancelButtonStyle</item>

View file

@ -28,6 +28,10 @@
<color name="defaultbackground">#424242</color> <color name="defaultbackground">#424242</color>
<color name="defaulttextcolor">#B3FFFFFF</color> <color name="defaulttextcolor">#B3FFFFFF</color>
<!---Android Dark ans Light Theme Base colors-->
<color name="background_dark">#262626</color>
<color name="background_light">#FFFFFF</color>
<!-- Tabs--> <!-- Tabs-->
<color name="tabText">#d0d0d0</color> <color name="tabText">#d0d0d0</color>
<color name="tabSelectedText">@color/white</color> <color name="tabSelectedText">@color/white</color>
@ -48,7 +52,7 @@
<color name="pumpStatusBackground">#505050</color> <color name="pumpStatusBackground">#505050</color>
<!-- Dialogs--> <!-- Dialogs-->
<color name="dialog_title_background">#303030</color> <color name="dialog_title_background">#CCCCCC</color>
<color name="activity_title_background">#121212</color> <color name="activity_title_background">#121212</color>
<color name="dialog_title_color">#FFFFFF</color> <color name="dialog_title_color">#FFFFFF</color>
<color name="dialog_title_icon_tint">#FFFFFF</color> <color name="dialog_title_icon_tint">#FFFFFF</color>

View file

@ -112,6 +112,8 @@
<item name="splashBackgroundColor">@color/splashBackground</item> <item name="splashBackgroundColor">@color/splashBackground</item>
<!---Application Background Color --> <!---Application Background Color -->
<item name="android:windowBackground">@color/white</item> <item name="android:windowBackground">@color/white</item>
<!---Dialogfragment Background Color -->
<item name="android:dialogCornerRadius">12dp</item>
</style> </style>
<style name="Theme.MaterialComponents.DayNight.DarkActionBar" parent="Theme.MaterialComponents.DayNight.Bridge"/> <style name="Theme.MaterialComponents.DayNight.DarkActionBar" parent="Theme.MaterialComponents.DayNight.Bridge"/>
@ -146,6 +148,19 @@
<item name="android:focusable">true</item> <item name="android:focusable">true</item>
</style> </style>
<style name="StyleDialog">
<item name="android:padding">0dp</item>
<item name="android:minWidth">300dp</item>
<item name="android:orientation">vertical</item>
<item name="android:background">@drawable/dialog</item>
</style>
<style name="StyleDialogHeader">
<item name="android:padding">5dp</item>
<item name="android:orientation">horizontal</item>
<item name="android:background">@drawable/dialog_header</item>
</style>
<style name="OkCancelButton.Text" ns2:ignore="NewApi"> <style name="OkCancelButton.Text" ns2:ignore="NewApi">
<item name="android:textSize">@dimen/material_button_text_size</item> <item name="android:textSize">@dimen/material_button_text_size</item>
<item name="android:singleLine">true</item> <item name="android:singleLine">true</item>

View file

@ -1,18 +1,16 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
style="@style/StyleDialog"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical"
tools:context="info.nightscout.androidaps.danars.dialogs.PairingProgressDialog"> tools:context="info.nightscout.androidaps.danars.dialogs.PairingProgressDialog">
<RelativeLayout <RelativeLayout
style="@style/StyleDialogHeader"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center">
android:background="?attr/dialogTitleBackground"
android:orientation="horizontal"
android:padding="5dp">
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="wrap_content"