mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-16 04:39:54 +01:00
Merge branch '313-move-forum-buttons-to-toolbar' into 'master'
Move create forum post and share forum buttons in action bar According to the designs in #305, the 'create forum post' and 'share forum' buttons will go into the in action bar. In the spirit of keeping MRs small and to avoid conflicts with #306, I did this first and independently of future work. This also introduces constants for the `GROUP_ID`, `FORUM_NAME` and `MIN_TIMESTAMP` as they were used for the two buttons. Closes #313 See merge request !150
This commit is contained in:
9
briar-android/res/drawable/forum_item_create_white.xml
Normal file
9
briar-android/res/drawable/forum_item_create_white.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportHeight="24.0"
|
||||
android:viewportWidth="24.0">
|
||||
<path
|
||||
android:fillColor="#FFFFFFFF"
|
||||
android:pathData="M3,17.25V21h3.75L17.81,9.94l-3.75,-3.75L3,17.25zM20.71,7.04c0.39,-0.39 0.39,-1.02 0,-1.41l-2.34,-2.34c-0.39,-0.39 -1.02,-0.39 -1.41,0l-1.83,1.83 3.75,3.75 1.83,-1.83z"/>
|
||||
</vector>
|
||||
9
briar-android/res/drawable/social_share_white.xml
Normal file
9
briar-android/res/drawable/social_share_white.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportHeight="24.0"
|
||||
android:viewportWidth="24.0">
|
||||
<path
|
||||
android:fillColor="#FFFFFFFF"
|
||||
android:pathData="M18,16.08c-0.76,0 -1.44,0.3 -1.96,0.77L8.91,12.7c0.05,-0.23 0.09,-0.46 0.09,-0.7s-0.04,-0.47 -0.09,-0.7l7.05,-4.11c0.54,0.5 1.25,0.81 2.04,0.81 1.66,0 3,-1.34 3,-3s-1.34,-3 -3,-3 -3,1.34 -3,3c0,0.24 0.04,0.47 0.09,0.7L8.04,9.81C7.5,9.31 6.79,9 6,9c-1.66,0 -3,1.34 -3,3s1.34,3 3,3c0.79,0 1.5,-0.31 2.04,-0.81l7.12,4.16c-0.05,0.21 -0.08,0.43 -0.08,0.65 0,1.61 1.31,2.92 2.92,2.92 1.61,0 2.92,-1.31 2.92,-2.92s-1.31,-2.92 -2.92,-2.92z"/>
|
||||
</vector>
|
||||
18
briar-android/res/menu/forum_actions.xml
Normal file
18
briar-android/res/menu/forum_actions.xml
Normal file
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<item
|
||||
android:id="@+id/action_forum_compose_post"
|
||||
android:icon="@drawable/forum_item_create_white"
|
||||
android:title="@string/forum_compose_post"
|
||||
app:showAsAction="ifRoom"/>
|
||||
|
||||
<item
|
||||
android:id="@+id/action_forum_share"
|
||||
android:icon="@drawable/social_share_white"
|
||||
android:title="@string/forum_share_button"
|
||||
app:showAsAction="ifRoom"/>
|
||||
|
||||
</menu>
|
||||
@@ -81,7 +81,8 @@
|
||||
<string name="forum_created_toast">Forum created</string>
|
||||
<string name="forum_share_with_all">Share this forum with all contacts</string>
|
||||
<string name="forum_share_with_some">Share this forum with chosen contacts</string>
|
||||
<string name="share_button">Share Forum</string>
|
||||
<string name="forum_share_button">Share Forum</string>
|
||||
<string name="forum_compose_post">New Forum Post</string>
|
||||
<string name="from">From:</string>
|
||||
<string name="anonymous">Anonymous</string>
|
||||
<string name="new_identity_item">New identity\u2026</string>
|
||||
|
||||
Reference in New Issue
Block a user