summaryrefslogtreecommitdiff
path: root/cashier/src/main/res/values
diff options
context:
space:
mode:
Diffstat (limited to 'cashier/src/main/res/values')
-rw-r--r--cashier/src/main/res/values/colors.xml10
-rw-r--r--cashier/src/main/res/values/dimens.xml3
-rw-r--r--cashier/src/main/res/values/ic_launcher_background.xml4
-rw-r--r--cashier/src/main/res/values/strings.xml39
-rw-r--r--cashier/src/main/res/values/styles.xml28
5 files changed, 84 insertions, 0 deletions
diff --git a/cashier/src/main/res/values/colors.xml b/cashier/src/main/res/values/colors.xml
new file mode 100644
index 0000000..61338da
--- /dev/null
+++ b/cashier/src/main/res/values/colors.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <color name="colorPrimary">#1565C0</color>
+ <color name="colorPrimaryDark">#6A1B9A</color>
+ <color name="colorAccent">#D81B60</color>
+
+ <color name="background">#F1F1F1</color>
+ <color name="green">#388E3C</color>
+ <color name="red">#D32F2F</color>
+</resources>
diff --git a/cashier/src/main/res/values/dimens.xml b/cashier/src/main/res/values/dimens.xml
new file mode 100644
index 0000000..9d9d85a
--- /dev/null
+++ b/cashier/src/main/res/values/dimens.xml
@@ -0,0 +1,3 @@
+<resources>
+ <dimen name="default_margin">16dp</dimen>
+</resources>
diff --git a/cashier/src/main/res/values/ic_launcher_background.xml b/cashier/src/main/res/values/ic_launcher_background.xml
new file mode 100644
index 0000000..3862264
--- /dev/null
+++ b/cashier/src/main/res/values/ic_launcher_background.xml
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <color name="ic_launcher_background">#1565C0</color>
+</resources> \ No newline at end of file
diff --git a/cashier/src/main/res/values/strings.xml b/cashier/src/main/res/values/strings.xml
new file mode 100644
index 0000000..5df5bfa
--- /dev/null
+++ b/cashier/src/main/res/values/strings.xml
@@ -0,0 +1,39 @@
+<resources>
+ <string name="app_name">Taler Cashier</string>
+
+ <string name="config_bank_url">Bank API address</string>
+ <string name="config_username">Username</string>
+ <string name="config_password">Password</string>
+ <string name="config_button_save">Save</string>
+ <string name="config_bank_url_error">The address in invalid.</string>
+ <string name="config_username_error">Please enter your username</string>
+ <string name="config_error">Error retrieving configuration</string>
+ <string name="config_error_auth">Invalid username or password</string>
+ <string name="config_demo_hint">For testing, you can <![CDATA[<a href="%s">create a test account at the demo bank</a>]]>.</string>
+
+ <string name="balance_current_label">Current balance</string>
+ <string name="balance_error">ERROR</string>
+ <string name="balance_offline">Offline. Please connect to the Internet</string>
+ <string name="action_reconfigure">Reconfigure</string>
+ <string name="action_lock">Lock</string>
+
+ <string name="withdraw_input_amount">Amount</string>
+ <string name="withdraw_into">How much e-cash should be withdrawn?</string>
+ <string name="withdraw_error_zero">Enter positive amount</string>
+ <string name="withdraw_error_insufficient_balance">Insufficient balance</string>
+ <string name="withdraw_error_fetch">Error communicating with bank</string>
+ <string name="withdraw_button_confirm">Withdraw</string>
+
+ <string name="transaction_intro">Scan code\nwith the Taler wallet app\nto get</string>
+ <string name="transaction_intro_nfc">Scan code or use NFC\nwith the Taler wallet app\nto get</string>
+ <string name="transaction_intro_scanned">Please confirm the transaction!</string>
+ <string name="transaction_confirm">Confirm</string>
+ <string name="transaction_abort">Abort</string>
+ <string name="transaction_error">Transaction error</string>
+ <string name="transaction_aborted">Transaction aborted</string>
+ <string name="transaction_button_back">Go back</string>
+ <string name="transaction_last_success">Last Transaction: %s withdrawn</string>
+ <string name="transaction_last_aborted">Last Transaction: Aborted</string>
+ <string name="transaction_last_error">Last Transaction: Error</string>
+
+</resources>
diff --git a/cashier/src/main/res/values/styles.xml b/cashier/src/main/res/values/styles.xml
new file mode 100644
index 0000000..4339684
--- /dev/null
+++ b/cashier/src/main/res/values/styles.xml
@@ -0,0 +1,28 @@
+<resources>
+
+ <style name="AppTheme" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
+ <item name="colorPrimary">@color/colorPrimary</item>
+ <item name="colorOnPrimary">@color/design_default_color_background</item>
+ <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
+ <item name="colorSecondary">@color/colorAccent</item>
+ <item name="colorOnSecondary">@color/design_default_color_background</item>
+ <item name="colorAccent">@color/colorAccent</item>
+ </style>
+
+ <style name="AppTheme.NoActionBar">
+ <item name="windowActionBar">false</item>
+ <item name="windowNoTitle">true</item>
+ </style>
+
+ <style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.MaterialComponents.ActionBar" />
+
+ <style name="AppTheme.Toolbar" parent="Widget.MaterialComponents.Toolbar.Primary" />
+
+ <style name="AmountButton" parent="Widget.MaterialComponents.Button">
+ <item name="android:minWidth">48dp</item>
+ <item name="android:layout_marginStart">@dimen/default_margin</item>
+ <item name="android:layout_marginEnd">@dimen/default_margin</item>
+ <item name="android:layout_marginTop">16dp</item>
+ </style>
+
+</resources>