Commit c287ae71 authored by Javier Romero's avatar Javier Romero

Style form headers

parent aaaecf2e
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:top="-4dp"
android:right="-4dp"
android:bottom="0dp"
android:left="-4dp">
<shape
android:shape="rectangle">
<stroke
android:width="2dp"
android:color="@color/white"/>
<solid android:color="@color/transparent"/>
</shape>
</item>
</layer-list>
\ No newline at end of file
......@@ -35,13 +35,10 @@
android:orientation="vertical">
<TextView
style="@style/TextAppearance.C2SQL.Form.SectionTitle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/form_header_underline"
android:drawableLeft="@drawable/ic_form_header_gears"
android:drawablePadding="10dp"
android:text="@string/form_advanced_options"
android:textSize="20dp" />
android:text="@string/form_advanced_options" />
<android.support.design.card.MaterialCardView
style="@style/Form.SectionCardLayout"
......
......@@ -13,15 +13,11 @@
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
style="@style/TextAppearance.C2SQL.Form.SectionTitle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/form_header_underline"
android:drawableLeft="@drawable/ic_form_header_connection"
android:drawablePadding="10dp"
android:text="@string/form_connection_details"
android:textSize="20dp" />
android:text="@string/form_connection_details" />
<android.support.design.card.MaterialCardView
style="@style/Form.SectionCardLayout"
......
......@@ -15,13 +15,10 @@
android:orientation="vertical">
<TextView
style="@style/TextAppearance.C2SQL.Form.SectionTitle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/form_header_underline"
android:drawableLeft="@drawable/ic_form_header_gears"
android:drawablePadding="10dp"
android:text="@string/form_advanced_options"
android:textSize="20dp" />
android:text="@string/form_advanced_options" />
<android.support.design.card.MaterialCardView
style="@style/Form.SectionCardLayout"
......
......@@ -15,13 +15,10 @@
android:orientation="vertical">
<TextView
style="@style/TextAppearance.C2SQL.Form.SectionTitle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/form_header_underline"
android:drawableLeft="@drawable/ic_form_header_gears"
android:drawablePadding="10dp"
android:text="@string/form_ssh_tunnel"
android:textSize="20dp" />
android:text="@string/form_ssh_tunnel" />
<android.support.design.card.MaterialCardView
style="@style/Form.SectionCardLayout"
......
......@@ -26,9 +26,10 @@
</style>
<style name="Form.SectionCardLayout">
<item name="android:layout_marginTop">@dimen/form_section_padding_top</item>
<item name="android:layout_margin">3dp</item>
<item name="cardBackgroundColor">@color/greyDarkest</item>
<item name="cardCornerRadius">@dimen/form_card_corner_radius</item>
<item name="cardElevation">3dp</item>
</style>
<style name="Form.FloatLabelLayout">
......@@ -102,6 +103,12 @@
<style name="TextAppearance.C2SQL.Body" parent="android:TextAppearance.Material.Body1" />
<style name="TextAppearance.C2SQL.Form.SectionTitle" parent="TextAppearance.MaterialComponents.Subtitle1">
<item name="android:textSize">18sp</item>
<item name="android:paddingLeft">10dp</item>
<item name="android:paddingBottom">@dimen/form_padding_vertical</item>
</style>
<style name="TextAppearance.C2SQL.FloatLabel" parent="android:TextAppearance.Small">
<item name="android:textColor">@drawable/widget_fll_label</item>
<item name="android:textSize">@dimen/form_field_text_size</item>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment