From 2ab6cb0ada6370e6ea83a73e0a6a39ea3ff90715 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Sat, 1 Mar 2014 11:05:40 +0100 Subject: [PATCH] hover effect --- gen/eu/siacs/conversations/R.java | 40 +++++++++++-------- .../sufficientlysecure/keychain/api/R.java | 2 +- res/drawable/blue.xml | 5 +++ res/drawable/bluebackground.xml | 9 +++++ res/drawable/darkblue.xml | 5 +++ res/drawable/darkred.xml | 5 +++ res/drawable/red.xml | 5 +++ res/drawable/redbackground.xml | 9 +++++ res/layout/fragment_conversation.xml | 8 ++-- .../conversations/entities/MucOptions.java | 39 +++++++++++++++++- 10 files changed, 104 insertions(+), 23 deletions(-) create mode 100644 res/drawable/blue.xml create mode 100644 res/drawable/bluebackground.xml create mode 100644 res/drawable/darkblue.xml create mode 100644 res/drawable/darkred.xml create mode 100644 res/drawable/red.xml create mode 100644 res/drawable/redbackground.xml diff --git a/gen/eu/siacs/conversations/R.java b/gen/eu/siacs/conversations/R.java index b189b887b..afe690627 100644 --- a/gen/eu/siacs/conversations/R.java +++ b/gen/eu/siacs/conversations/R.java @@ -26,23 +26,29 @@ public final class R { public static final int activity_vertical_margin=0x7f070001; } public static final class drawable { - public static final int es_slidingpane_shadow=0x7f020000; - public static final int ic_action_add=0x7f020001; - public static final int ic_action_add_person=0x7f020002; - public static final int ic_action_cancel_launchersize=0x7f020003; - public static final int ic_action_delete=0x7f020004; - public static final int ic_action_group=0x7f020005; - public static final int ic_action_person=0x7f020006; - public static final int ic_action_refresh=0x7f020007; - public static final int ic_action_secure=0x7f020008; - public static final int ic_action_send=0x7f020009; - public static final int ic_action_send_now=0x7f02000a; - public static final int ic_action_unsecure=0x7f02000b; - public static final int ic_launcher=0x7f02000c; - public static final int ic_profile=0x7f02000d; - public static final int message_border=0x7f02000e; - public static final int notification=0x7f02000f; - public static final int section_header=0x7f020010; + public static final int blue=0x7f020000; + public static final int bluebackground=0x7f020001; + public static final int darkblue=0x7f020002; + public static final int darkred=0x7f020003; + public static final int es_slidingpane_shadow=0x7f020004; + public static final int ic_action_add=0x7f020005; + public static final int ic_action_add_person=0x7f020006; + public static final int ic_action_cancel_launchersize=0x7f020007; + public static final int ic_action_delete=0x7f020008; + public static final int ic_action_group=0x7f020009; + public static final int ic_action_person=0x7f02000a; + public static final int ic_action_refresh=0x7f02000b; + public static final int ic_action_secure=0x7f02000c; + public static final int ic_action_send=0x7f02000d; + public static final int ic_action_send_now=0x7f02000e; + public static final int ic_action_unsecure=0x7f02000f; + public static final int ic_launcher=0x7f020010; + public static final int ic_profile=0x7f020011; + public static final int message_border=0x7f020012; + public static final int notification=0x7f020013; + public static final int red=0x7f020014; + public static final int redbackground=0x7f020015; + public static final int section_header=0x7f020016; } public static final class id { public static final int account_confirm_password_desc=0x7f0a001c; diff --git a/gen/org/sufficientlysecure/keychain/api/R.java b/gen/org/sufficientlysecure/keychain/api/R.java index bc32bf116..a49700a61 100644 --- a/gen/org/sufficientlysecure/keychain/api/R.java +++ b/gen/org/sufficientlysecure/keychain/api/R.java @@ -8,7 +8,7 @@ package org.sufficientlysecure.keychain.api; public final class R { public static final class drawable { - public static final int ic_action_cancel_launchersize = 0x7f020003; + public static final int ic_action_cancel_launchersize = 0x7f020007; } public static final class string { public static final int openpgp_install_openkeychain_via = 0x7f050001; diff --git a/res/drawable/blue.xml b/res/drawable/blue.xml new file mode 100644 index 000000000..5692154ad --- /dev/null +++ b/res/drawable/blue.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/res/drawable/bluebackground.xml b/res/drawable/bluebackground.xml new file mode 100644 index 000000000..fbf6d3170 --- /dev/null +++ b/res/drawable/bluebackground.xml @@ -0,0 +1,9 @@ + + + + + diff --git a/res/drawable/darkblue.xml b/res/drawable/darkblue.xml new file mode 100644 index 000000000..b33c38ceb --- /dev/null +++ b/res/drawable/darkblue.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/res/drawable/darkred.xml b/res/drawable/darkred.xml new file mode 100644 index 000000000..1313cc2f6 --- /dev/null +++ b/res/drawable/darkred.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/res/drawable/red.xml b/res/drawable/red.xml new file mode 100644 index 000000000..abdc07d6f --- /dev/null +++ b/res/drawable/red.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/res/drawable/redbackground.xml b/res/drawable/redbackground.xml new file mode 100644 index 000000000..ddca66f44 --- /dev/null +++ b/res/drawable/redbackground.xml @@ -0,0 +1,9 @@ + + + + + diff --git a/res/layout/fragment_conversation.xml b/res/layout/fragment_conversation.xml index 4e0d2030c..cea2be1f6 100644 --- a/res/layout/fragment_conversation.xml +++ b/res/layout/fragment_conversation.xml @@ -66,7 +66,7 @@ android:id="@+id/new_fingerprint" android:layout_width="fill_parent" android:layout_height="wrap_content" - android:background="#e92727" + android:background="@drawable/redbackground" android:orientation="vertical" android:visibility="gone" > @@ -94,7 +94,7 @@ android:id="@+id/pgp_keyentry" android:layout_width="fill_parent" android:layout_height="wrap_content" - android:background="#ffa713" + android:background="@drawable/bluebackground" android:orientation="vertical" android:visibility="gone" > @@ -103,14 +103,14 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="OpenPGP encrypted messages found" - android:textColor="#000" + android:textColor="#eee" android:textStyle="bold" android:padding="8dp" android:textSize="20sp"/>