diff options
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/drawable/ic_pause_circle_filled_primary_24dp.xml | 9 | ||||
-rw-r--r-- | app/src/main/res/drawable/ic_pause_circle_outline_primary_24dp.xml | 9 | ||||
-rw-r--r-- | app/src/main/res/drawable/ic_receipt_primary_24dp.xml | 9 | ||||
-rw-r--r-- | app/src/main/res/layout/page_viewlog.xml | 13 | ||||
-rw-r--r-- | app/src/main/res/menu/menu_status.xml | 8 | ||||
-rw-r--r-- | app/src/main/res/menu/menu_viewlog.xml | 13 | ||||
-rw-r--r-- | app/src/main/res/values/strings.xml | 3 |
7 files changed, 64 insertions, 0 deletions
diff --git a/app/src/main/res/drawable/ic_pause_circle_filled_primary_24dp.xml b/app/src/main/res/drawable/ic_pause_circle_filled_primary_24dp.xml new file mode 100644 index 0000000..84ac134 --- /dev/null +++ b/app/src/main/res/drawable/ic_pause_circle_filled_primary_24dp.xml | |||
@@ -0,0 +1,9 @@ | |||
1 | <vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
2 | android:width="24dp" | ||
3 | android:height="24dp" | ||
4 | android:viewportHeight="24.0" | ||
5 | android:viewportWidth="24.0"> | ||
6 | <path | ||
7 | android:fillColor="@color/textPrimary" | ||
8 | android:pathData="M12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM11,16L9,16L9,8h2v8zM15,16h-2L13,8h2v8z"/> | ||
9 | </vector> | ||
diff --git a/app/src/main/res/drawable/ic_pause_circle_outline_primary_24dp.xml b/app/src/main/res/drawable/ic_pause_circle_outline_primary_24dp.xml new file mode 100644 index 0000000..9374a21 --- /dev/null +++ b/app/src/main/res/drawable/ic_pause_circle_outline_primary_24dp.xml | |||
@@ -0,0 +1,9 @@ | |||
1 | <vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
2 | android:width="24dp" | ||
3 | android:height="24dp" | ||
4 | android:viewportHeight="24.0" | ||
5 | android:viewportWidth="24.0"> | ||
6 | <path | ||
7 | android:fillColor="@color/textPrimary" | ||
8 | android:pathData="M9,16h2L11,8L9,8v8zM12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM12,20c-4.41,0 -8,-3.59 -8,-8s3.59,-8 8,-8 8,3.59 8,8 -3.59,8 -8,8zM13,16h2L15,8h-2v8z"/> | ||
9 | </vector> | ||
diff --git a/app/src/main/res/drawable/ic_receipt_primary_24dp.xml b/app/src/main/res/drawable/ic_receipt_primary_24dp.xml new file mode 100644 index 0000000..4ce8a76 --- /dev/null +++ b/app/src/main/res/drawable/ic_receipt_primary_24dp.xml | |||
@@ -0,0 +1,9 @@ | |||
1 | <vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
2 | android:width="24dp" | ||
3 | android:height="24dp" | ||
4 | android:viewportHeight="24.0" | ||
5 | android:viewportWidth="24.0"> | ||
6 | <path | ||
7 | android:fillColor="@color/textPrimary" | ||
8 | android:pathData="M18,17L6,17v-2h12v2zM18,13L6,13v-2h12v2zM18,9L6,9L6,7h12v2zM3,22l1.5,-1.5L6,22l1.5,-1.5L9,22l1.5,-1.5L12,22l1.5,-1.5L15,22l1.5,-1.5L18,22l1.5,-1.5L21,22L21,2l-1.5,1.5L18,2l-1.5,1.5L15,2l-1.5,1.5L12,2l-1.5,1.5L9,2 7.5,3.5 6,2 4.5,3.5 3,2v20z"/> | ||
9 | </vector> | ||
diff --git a/app/src/main/res/layout/page_viewlog.xml b/app/src/main/res/layout/page_viewlog.xml new file mode 100644 index 0000000..a7afed8 --- /dev/null +++ b/app/src/main/res/layout/page_viewlog.xml | |||
@@ -0,0 +1,13 @@ | |||
1 | <TextView | ||
2 | xmlns:android="http://schemas.android.com/apk/res/android" | ||
3 | android:id="@+id/text_log" | ||
4 | android:layout_width="match_parent" | ||
5 | android:layout_height="wrap_content" | ||
6 | android:fontFamily="monospace" | ||
7 | android:gravity="bottom" | ||
8 | android:paddingLeft="@dimen/activity_horizontal_margin" | ||
9 | android:paddingRight="@dimen/activity_horizontal_margin" | ||
10 | android:scrollbarStyle="outsideOverlay" | ||
11 | android:scrollbars="vertical" | ||
12 | android:textColor="@color/colorPrimary" | ||
13 | android:textSize="12sp"/> | ||
diff --git a/app/src/main/res/menu/menu_status.xml b/app/src/main/res/menu/menu_status.xml index 4b7c7dc..7415aeb 100644 --- a/app/src/main/res/menu/menu_status.xml +++ b/app/src/main/res/menu/menu_status.xml | |||
@@ -11,4 +11,12 @@ | |||
11 | android:title="@string/menu_disconnect" | 11 | android:title="@string/menu_disconnect" |
12 | app:showAsAction="ifRoom"/> | 12 | app:showAsAction="ifRoom"/> |
13 | 13 | ||
14 | <item | ||
15 | android:id="@+id/menu_show_log" | ||
16 | android:icon="@drawable/ic_receipt_primary_24dp" | ||
17 | android:onClick="openLogViewer" | ||
18 | android:tint="@color/colorAccent" | ||
19 | android:title="@string/menu_show_log" | ||
20 | app:showAsAction="ifRoom"/> | ||
21 | |||
14 | </menu> | 22 | </menu> |
diff --git a/app/src/main/res/menu/menu_viewlog.xml b/app/src/main/res/menu/menu_viewlog.xml new file mode 100644 index 0000000..ee3c60f --- /dev/null +++ b/app/src/main/res/menu/menu_viewlog.xml | |||
@@ -0,0 +1,13 @@ | |||
1 | <menu xmlns:android="http://schemas.android.com/apk/res/android" | ||
2 | xmlns:app="http://schemas.android.com/apk/res-auto" | ||
3 | xmlns:tools="http://schemas.android.com/tools" | ||
4 | tools:context="org.pacien.tincapp.activities.ViewLogActivity"> | ||
5 | |||
6 | <item | ||
7 | android:icon="@drawable/ic_pause_circle_outline_primary_24dp" | ||
8 | android:onClick="toggleLogging" | ||
9 | android:tint="@color/colorAccent" | ||
10 | android:title="@string/menu_toggle_logging" | ||
11 | app:showAsAction="ifRoom"/> | ||
12 | |||
13 | </menu> | ||
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 14d1180..4a412ae 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml | |||
@@ -14,6 +14,8 @@ | |||
14 | <string name="menu_about">About this app</string> | 14 | <string name="menu_about">About this app</string> |
15 | <string name="menu_configure">Configure</string> | 15 | <string name="menu_configure">Configure</string> |
16 | <string name="menu_disconnect">Disconnect</string> | 16 | <string name="menu_disconnect">Disconnect</string> |
17 | <string name="menu_show_log">Show log</string> | ||
18 | <string name="menu_toggle_logging">Toggle logging</string> | ||
17 | 19 | ||
18 | <string name="field_net_name">Tinc network name</string> | 20 | <string name="field_net_name">Tinc network name</string> |
19 | <string name="field_node_name">Name of this node</string> | 21 | <string name="field_node_name">Name of this node</string> |
@@ -80,6 +82,7 @@ | |||
80 | <string name="message_passphrase_required">A passphrase is required to unlock the keyring.</string> | 82 | <string name="message_passphrase_required">A passphrase is required to unlock the keyring.</string> |
81 | <string name="message_daemon_exited">Tinc daemon exited during startup:\n%1$s\n\nCheck the logs for more details.</string> | 83 | <string name="message_daemon_exited">Tinc daemon exited during startup:\n%1$s\n\nCheck the logs for more details.</string> |
82 | <string name="message_loading">Loading…</string> | 84 | <string name="message_loading">Loading…</string> |
85 | <string name="message_log_level_set">Log level set to %1$d.</string> | ||
83 | 86 | ||
84 | <string name="value_none">none</string> | 87 | <string name="value_none">none</string> |
85 | <string name="value_yes">yes</string> | 88 | <string name="value_yes">yes</string> |