Dialogs have a 24dp outer spacing

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2022-07-28 19:43:30 +02:00
parent a70ef7b572
commit 14d827c88a
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B
3 changed files with 18 additions and 16 deletions

View file

@ -31,13 +31,14 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="vertical"> android:orientation="vertical"
android:paddingTop="@dimen/dialog_padding">
<TextView <TextView
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingStart="@dimen/standard_padding" android:paddingStart="@dimen/dialog_padding"
android:paddingEnd="@dimen/standard_padding" android:paddingEnd="@dimen/dialog_padding"
android:text="@string/polls_question" android:text="@string/polls_question"
android:textColor="@color/colorPrimary" android:textColor="@color/colorPrimary"
android:textStyle="bold" /> android:textStyle="bold" />
@ -46,8 +47,8 @@
android:id="@+id/poll_create_question" android:id="@+id/poll_create_question"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="@dimen/standard_margin" android:layout_marginStart="@dimen/dialog_padding"
android:layout_marginEnd="@dimen/standard_margin" android:layout_marginEnd="@dimen/dialog_padding"
android:inputType="textMultiLine" android:inputType="textMultiLine"
tools:ignore="Autofill,LabelFor"> tools:ignore="Autofill,LabelFor">
@ -58,8 +59,8 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="@dimen/standard_margin" android:layout_marginTop="@dimen/standard_margin"
android:paddingStart="@dimen/standard_padding" android:paddingStart="@dimen/dialog_padding"
android:paddingEnd="@dimen/standard_padding" android:paddingEnd="@dimen/dialog_padding"
android:text="@string/polls_options" android:text="@string/polls_options"
android:textColor="@color/colorPrimary" android:textColor="@color/colorPrimary"
android:textStyle="bold" /> android:textStyle="bold" />
@ -75,9 +76,9 @@
style="@style/OutlinedButton" style="@style/OutlinedButton"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="@dimen/standard_margin" android:layout_marginStart="@dimen/dialog_padding"
android:layout_marginTop="@dimen/standard_half_margin" android:layout_marginTop="@dimen/standard_half_margin"
android:layout_marginEnd="@dimen/standard_margin" android:layout_marginEnd="@dimen/dialog_padding"
android:minHeight="@dimen/min_size_clickable_area" android:minHeight="@dimen/min_size_clickable_area"
android:text="@string/polls_add_option" android:text="@string/polls_add_option"
app:cornerRadius="@dimen/button_corner_radius" app:cornerRadius="@dimen/button_corner_radius"
@ -89,8 +90,8 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="@dimen/standard_margin" android:layout_marginTop="@dimen/standard_margin"
android:layout_marginBottom="@dimen/standard_half_margin" android:layout_marginBottom="@dimen/standard_half_margin"
android:paddingStart="@dimen/standard_padding" android:paddingStart="@dimen/dialog_padding"
android:paddingEnd="@dimen/standard_padding" android:paddingEnd="@dimen/dialog_padding"
android:text="@string/polls_settings" android:text="@string/polls_settings"
android:textColor="@color/colorPrimary" android:textColor="@color/colorPrimary"
android:textStyle="bold" /> android:textStyle="bold" />
@ -121,8 +122,8 @@
android:layout_marginTop="@dimen/standard_margin" android:layout_marginTop="@dimen/standard_margin"
android:gravity="end" android:gravity="end"
android:orientation="horizontal" android:orientation="horizontal"
android:paddingStart="@dimen/standard_padding" android:paddingStart="@dimen/dialog_padding"
android:paddingEnd="@dimen/standard_padding" android:paddingEnd="@dimen/dialog_padding"
android:paddingBottom="@dimen/standard_padding"> android:paddingBottom="@dimen/standard_padding">
<com.google.android.material.button.MaterialButton <com.google.android.material.button.MaterialButton

View file

@ -27,7 +27,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:minHeight="@dimen/min_size_clickable_area" android:minHeight="@dimen/min_size_clickable_area"
android:orientation="horizontal" android:orientation="horizontal"
android:paddingStart="@dimen/standard_padding" android:paddingStart="@dimen/dialog_padding"
android:paddingEnd="@dimen/zero" android:paddingEnd="@dimen/zero"
tools:background="@color/white"> tools:background="@color/white">
@ -45,7 +45,7 @@
style="@style/Widget.AppTheme.Button.IconButton" style="@style/Widget.AppTheme.Button.IconButton"
android:layout_width="@dimen/min_size_clickable_area" android:layout_width="@dimen/min_size_clickable_area"
android:layout_height="@dimen/min_size_clickable_area" android:layout_height="@dimen/min_size_clickable_area"
android:layout_marginStart="5dp" android:layout_marginEnd="@dimen/standard_half_margin"
android:contentDescription="@string/nc_action_open_main_menu" android:contentDescription="@string/nc_action_open_main_menu"
app:cornerRadius="@dimen/button_corner_radius" app:cornerRadius="@dimen/button_corner_radius"
app:icon="@drawable/ic_baseline_close_24" app:icon="@drawable/ic_baseline_close_24"

View file

@ -59,6 +59,7 @@
<dimen name="standard_half_padding">8dp</dimen> <dimen name="standard_half_padding">8dp</dimen>
<dimen name="standard_half_margin">8dp</dimen> <dimen name="standard_half_margin">8dp</dimen>
<dimen name="default_login_width">400dp</dimen> <dimen name="default_login_width">400dp</dimen>
<dimen name="dialog_padding">24dp</dimen>
<dimen name="call_grid_item_min_height">180dp</dimen> <dimen name="call_grid_item_min_height">180dp</dimen>
<dimen name="call_controls_height">110dp</dimen> <dimen name="call_controls_height">110dp</dimen>
@ -71,7 +72,7 @@
<dimen name="reaction_bottom_sheet_layout_size">40dp</dimen> <dimen name="reaction_bottom_sheet_layout_size">40dp</dimen>
<dimen name="standard_eighth_margin">2dp</dimen> <dimen name="standard_eighth_margin">2dp</dimen>
<dimen name="default_checkbox_dialog_start_margin">10dp</dimen> <dimen name="default_checkbox_dialog_start_margin">18dp</dimen>
<dimen name="mediatab_file_icon_size">50dp</dimen> <dimen name="mediatab_file_icon_size">50dp</dimen>
</resources> </resources>