aboutsummaryrefslogtreecommitdiffstats
path: root/OpenKeychain/src/main/res
diff options
context:
space:
mode:
authorDaniel Albert <albert_daniel@t-online.de>2014-06-29 13:59:51 +0200
committerDaniel Albert <albert_daniel@t-online.de>2014-06-29 13:59:51 +0200
commit9091c2224032c07a46988890a2767eecbb794634 (patch)
tree6cd0523f94890376601fbe9a80737c6ad68f2857 /OpenKeychain/src/main/res
parent4beff43a83eafd6f217304a51ec87e2242754f1c (diff)
downloadopen-keychain-9091c2224032c07a46988890a2767eecbb794634.tar.gz
open-keychain-9091c2224032c07a46988890a2767eecbb794634.tar.bz2
open-keychain-9091c2224032c07a46988890a2767eecbb794634.zip
Added new button style and converted account_settings and the select_secret_key_layout to use it
Diffstat (limited to 'OpenKeychain/src/main/res')
-rw-r--r--OpenKeychain/src/main/res/drawable-hdpi/ic_action_accounts.pngbin0 -> 641 bytes
-rw-r--r--OpenKeychain/src/main/res/drawable-mdpi/ic_action_accounts.pngbin0 -> 506 bytes
-rw-r--r--OpenKeychain/src/main/res/drawable-xhdpi/ic_action_accounts.pngbin0 -> 765 bytes
-rw-r--r--OpenKeychain/src/main/res/drawable-xxhdpi/ic_action_accounts.pngbin0 -> 1093 bytes
-rw-r--r--OpenKeychain/src/main/res/drawable/button_edgy.xml37
-rw-r--r--OpenKeychain/src/main/res/layout/api_account_settings_fragment.xml9
-rw-r--r--OpenKeychain/src/main/res/layout/select_secret_key_layout_fragment.xml9
7 files changed, 45 insertions, 10 deletions
diff --git a/OpenKeychain/src/main/res/drawable-hdpi/ic_action_accounts.png b/OpenKeychain/src/main/res/drawable-hdpi/ic_action_accounts.png
new file mode 100644
index 000000000..7cc407315
--- /dev/null
+++ b/OpenKeychain/src/main/res/drawable-hdpi/ic_action_accounts.png
Binary files differ
diff --git a/OpenKeychain/src/main/res/drawable-mdpi/ic_action_accounts.png b/OpenKeychain/src/main/res/drawable-mdpi/ic_action_accounts.png
new file mode 100644
index 000000000..2bf88c183
--- /dev/null
+++ b/OpenKeychain/src/main/res/drawable-mdpi/ic_action_accounts.png
Binary files differ
diff --git a/OpenKeychain/src/main/res/drawable-xhdpi/ic_action_accounts.png b/OpenKeychain/src/main/res/drawable-xhdpi/ic_action_accounts.png
new file mode 100644
index 000000000..f1ec295d2
--- /dev/null
+++ b/OpenKeychain/src/main/res/drawable-xhdpi/ic_action_accounts.png
Binary files differ
diff --git a/OpenKeychain/src/main/res/drawable-xxhdpi/ic_action_accounts.png b/OpenKeychain/src/main/res/drawable-xxhdpi/ic_action_accounts.png
new file mode 100644
index 000000000..da24654eb
--- /dev/null
+++ b/OpenKeychain/src/main/res/drawable-xxhdpi/ic_action_accounts.png
Binary files differ
diff --git a/OpenKeychain/src/main/res/drawable/button_edgy.xml b/OpenKeychain/src/main/res/drawable/button_edgy.xml
new file mode 100644
index 000000000..d296642b8
--- /dev/null
+++ b/OpenKeychain/src/main/res/drawable/button_edgy.xml
@@ -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" />
+ <stroke android:color="#cccccc" android:width="1.5dip" />
+ <stroke android:color="#ebebeb" />
+ </shape>
+ </item>
+ <item android:state_focused="true">
+ <shape android:shape="rectangle" >
+ <padding
+ android:bottom="6dip"
+ android:left="6dip"
+ android:right="6dip"
+ android:top="6dip" />
+ <stroke android:color="#cccccc" android:width="1.5dip" />
+ <solid android:color="#ebebeb"/>
+ </shape>
+ </item>
+ <item >
+ <shape android:shape="rectangle" >
+ <padding
+ android:bottom="6dip"
+ android:left="6dip"
+ android:right="6dip"
+ android:top="6dip" />
+ <stroke android:color="#cccccc" android:width="1.5dip" />
+ <solid android:color="#ffffff" />
+ </shape>
+ </item>
+</selector> \ No newline at end of file
diff --git a/OpenKeychain/src/main/res/layout/api_account_settings_fragment.xml b/OpenKeychain/src/main/res/layout/api_account_settings_fragment.xml
index 32843eb29..7bb861547 100644
--- a/OpenKeychain/src/main/res/layout/api_account_settings_fragment.xml
+++ b/OpenKeychain/src/main/res/layout/api_account_settings_fragment.xml
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:bootstrapbutton="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
xmlns:custom="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
@@ -43,7 +42,7 @@
android:layout_height="wrap_content"
tools:layout="@layout/select_secret_key_layout_fragment" />
- <com.beardedhen.androidbootstrap.BootstrapButton
+ <Button
android:id="@+id/api_account_settings_create_key"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
@@ -52,9 +51,9 @@
android:layout_marginRight="4dp"
android:layout_marginTop="4dp"
android:text="@string/api_settings_create_key"
- bootstrapbutton:bb_icon_left="fa-key"
- bootstrapbutton:bb_size="default"
- bootstrapbutton:bb_type="default" />
+ android:background="@drawable/button_edgy"
+ android:drawableLeft="@drawable/ic_action_accounts"
+ android:textSize="14dip"/>
<org.sufficientlysecure.keychain.ui.widget.FoldableLinearLayout
android:layout_width="match_parent"
diff --git a/OpenKeychain/src/main/res/layout/select_secret_key_layout_fragment.xml b/OpenKeychain/src/main/res/layout/select_secret_key_layout_fragment.xml
index cc2ab0cac..63eeb8eaf 100644
--- a/OpenKeychain/src/main/res/layout/select_secret_key_layout_fragment.xml
+++ b/OpenKeychain/src/main/res/layout/select_secret_key_layout_fragment.xml
@@ -1,11 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<LinearLayout 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="horizontal">
- <com.beardedhen.androidbootstrap.BootstrapButton
+ <Button
android:id="@+id/select_secret_key_select_key_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
@@ -14,9 +13,9 @@
android:layout_marginRight="4dp"
android:layout_marginTop="4dp"
android:text="@string/api_settings_select_key"
- bootstrapbutton:bb_icon_left="fa-key"
- bootstrapbutton:bb_size="default"
- bootstrapbutton:bb_type="default" />
+ android:drawableLeft="@drawable/ic_action_accounts"
+ android:background="@drawable/button_edgy"
+ android:textSize="14dp"/>
<LinearLayout
android:layout_width="match_parent"