Ported even more buttons to use new design (Key and User editor)
Added drawables for them
This commit is contained in:
BIN
OpenKeychain/src/main/res/drawable-mdpi/minus.png
Normal file
BIN
OpenKeychain/src/main/res/drawable-mdpi/minus.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 263 B |
BIN
OpenKeychain/src/main/res/drawable-mdpi/plus.png
Normal file
BIN
OpenKeychain/src/main/res/drawable-mdpi/plus.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 231 B |
BIN
OpenKeychain/src/main/res/drawable-xhdpi/minus.png
Normal file
BIN
OpenKeychain/src/main/res/drawable-xhdpi/minus.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 323 B |
BIN
OpenKeychain/src/main/res/drawable-xhdpi/plus.png
Normal file
BIN
OpenKeychain/src/main/res/drawable-xhdpi/plus.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 281 B |
BIN
OpenKeychain/src/main/res/drawable-xxhdpi/minus.png
Normal file
BIN
OpenKeychain/src/main/res/drawable-xxhdpi/minus.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 447 B |
BIN
OpenKeychain/src/main/res/drawable-xxhdpi/plus.png
Normal file
BIN
OpenKeychain/src/main/res/drawable-xxhdpi/plus.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 493 B |
@@ -8,8 +8,8 @@
|
||||
android:left="6dip"
|
||||
android:right="6dip"
|
||||
android:top="6dip" />
|
||||
<solid android:color="#ebebeb" />
|
||||
<stroke android:color="#cccccc" android:width="1.5dip" />
|
||||
<stroke android:color="#ebebeb" />
|
||||
</shape>
|
||||
</item>
|
||||
<item android:state_focused="true">
|
||||
@@ -19,8 +19,8 @@
|
||||
android:left="6dip"
|
||||
android:right="6dip"
|
||||
android:top="6dip" />
|
||||
<stroke android:color="#cccccc" android:width="1.5dip" />
|
||||
<solid android:color="#ebebeb"/>
|
||||
<stroke android:color="#cccccc" android:width="1.5dip" />
|
||||
</shape>
|
||||
</item>
|
||||
<item >
|
||||
@@ -30,8 +30,8 @@
|
||||
android:left="6dip"
|
||||
android:right="6dip"
|
||||
android:top="6dip" />
|
||||
<stroke android:color="#cccccc" android:width="1.5dip" />
|
||||
<solid android:color="#ffffff" />
|
||||
<stroke android:color="#cccccc" android:width="1.5dip" />
|
||||
</shape>
|
||||
</item>
|
||||
</selector>
|
||||
37
OpenKeychain/src/main/res/drawable/button_rounded_green.xml
Normal file
37
OpenKeychain/src/main/res/drawable/button_rounded_green.xml
Normal file
@@ -0,0 +1,37 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_pressed="true" >
|
||||
<shape android:shape="rectangle" >
|
||||
<padding
|
||||
android:bottom="6dip"
|
||||
android:left="6dip"
|
||||
android:right="6dip"
|
||||
android:top="6dip" />
|
||||
<corners android:radius="6dip" />
|
||||
<solid android:color="#47a447" />
|
||||
</shape>
|
||||
</item>
|
||||
<item android:state_focused="true">
|
||||
<shape android:shape="rectangle" >
|
||||
<padding
|
||||
android:bottom="6dip"
|
||||
android:left="6dip"
|
||||
android:right="6dip"
|
||||
android:top="6dip" />
|
||||
<corners android:radius="6dip" />
|
||||
<solid android:color="#47a447"/>
|
||||
</shape>
|
||||
</item>
|
||||
<item >
|
||||
<shape android:shape="rectangle" >
|
||||
<padding
|
||||
android:bottom="6dip"
|
||||
android:left="6dip"
|
||||
android:right="6dip"
|
||||
android:top="6dip" />
|
||||
<corners android:radius="6dip" />
|
||||
<solid android:color="#5cb85c" />
|
||||
</shape>
|
||||
</item>
|
||||
</selector>
|
||||
37
OpenKeychain/src/main/res/drawable/button_rounded_red.xml
Normal file
37
OpenKeychain/src/main/res/drawable/button_rounded_red.xml
Normal file
@@ -0,0 +1,37 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_pressed="true" >
|
||||
<shape android:shape="rectangle" >
|
||||
<padding
|
||||
android:bottom="6dip"
|
||||
android:left="6dip"
|
||||
android:right="6dip"
|
||||
android:top="6dip" />
|
||||
<corners android:radius="6dip" />
|
||||
<solid android:color="#d2322d" />
|
||||
</shape>
|
||||
</item>
|
||||
<item android:state_focused="true">
|
||||
<shape android:shape="rectangle" >
|
||||
<padding
|
||||
android:bottom="6dip"
|
||||
android:left="6dip"
|
||||
android:right="6dip"
|
||||
android:top="6dip" />
|
||||
<corners android:radius="6dip" />
|
||||
<solid android:color="#d2322d"/>
|
||||
</shape>
|
||||
</item>
|
||||
<item >
|
||||
<shape android:shape="rectangle" >
|
||||
<padding
|
||||
android:bottom="6dip"
|
||||
android:left="6dip"
|
||||
android:right="6dip"
|
||||
android:top="6dip" />
|
||||
<corners android:radius="6dip" />
|
||||
<solid android:color="#d9534f" />
|
||||
</shape>
|
||||
</item>
|
||||
</selector>
|
||||
@@ -26,14 +26,14 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/label_no_passphrase" />
|
||||
|
||||
<com.beardedhen.androidbootstrap.BootstrapButton
|
||||
<Button
|
||||
android:id="@+id/edit_key_btn_change_passphrase"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="60dp"
|
||||
android:padding="4dp"
|
||||
android:text="@string/btn_set_passphrase"
|
||||
bootstrapbutton:bb_icon_left="fa-pencil"
|
||||
bootstrapbutton:bb_type="default" />
|
||||
android:drawableLeft="@drawable/ic_action_edit"
|
||||
android:background="@drawable/button_edgy" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/edit_key_container"
|
||||
|
||||
@@ -155,15 +155,13 @@
|
||||
</TableRow>
|
||||
</TableLayout>
|
||||
|
||||
<com.beardedhen.androidbootstrap.BootstrapButton
|
||||
<ImageButton
|
||||
android:id="@+id/delete"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="10dp"
|
||||
bootstrapbutton:bb_icon_left="fa-minus"
|
||||
bootstrapbutton:bb_roundedCorners="true"
|
||||
bootstrapbutton:bb_size="small"
|
||||
bootstrapbutton:bb_type="danger" />
|
||||
android:src="@drawable/minus"
|
||||
android:background="@drawable/button_rounded_red"/>
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<org.sufficientlysecure.keychain.ui.widget.SectionView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:bootstrapbutton="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical" >
|
||||
@@ -23,15 +22,13 @@
|
||||
android:singleLine="true"
|
||||
android:text="Section Name" />
|
||||
|
||||
<com.beardedhen.androidbootstrap.BootstrapButton
|
||||
<ImageButton
|
||||
android:id="@+id/plusbutton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="10dp"
|
||||
bootstrapbutton:bb_icon_left="fa-plus"
|
||||
bootstrapbutton:bb_roundedCorners="true"
|
||||
bootstrapbutton:bb_size="small"
|
||||
bootstrapbutton:bb_type="success" />
|
||||
android:src="@drawable/plus"
|
||||
android:background="@drawable/button_rounded_green"/>
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<org.sufficientlysecure.keychain.ui.widget.UserIdEditor xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:bootstrapbutton="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical" >
|
||||
@@ -76,18 +75,16 @@
|
||||
</TableRow>
|
||||
</TableLayout>
|
||||
|
||||
<com.beardedhen.androidbootstrap.BootstrapButton
|
||||
<ImageButton
|
||||
android:id="@+id/delete"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_margin="10dp"
|
||||
android:layout_margin="10dip"
|
||||
android:layout_marginLeft="4dip"
|
||||
android:layout_marginRight="6dip"
|
||||
bootstrapbutton:bb_icon_left="fa-minus"
|
||||
bootstrapbutton:bb_roundedCorners="true"
|
||||
bootstrapbutton:bb_size="small"
|
||||
bootstrapbutton:bb_type="danger" />
|
||||
android:src="@drawable/minus"
|
||||
android:background="@drawable/button_rounded_red" />
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
|
||||
Reference in New Issue
Block a user