aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com/pitchedapps/frost/contracts/DynamicUiContract.kt
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-12-21 02:16:34 -0500
committerGitHub <noreply@github.com>2017-12-21 02:16:34 -0500
commitd683cae6ffe644a9f63eea6cf3b7e59d2bde617b (patch)
tree517fe1d44c27084ccd87507d9804ba28f15c1647 /app/src/main/kotlin/com/pitchedapps/frost/contracts/DynamicUiContract.kt
parent82f9aca96493316bc62008f2b3167d34a6029b38 (diff)
downloadfrost-d683cae6ffe644a9f63eea6cf3b7e59d2bde617b.tar.gz
frost-d683cae6ffe644a9f63eea6cf3b7e59d2bde617b.tar.bz2
frost-d683cae6ffe644a9f63eea6cf3b7e59d2bde617b.zip
Enhancement/fragment interface (#564)
* Begin fragment interfaces and themable contracts * Prepare swiperefresh interface * Snapshot * Add compilable version * Revamp once more * Finalize layouts * Cleanup
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/contracts/DynamicUiContract.kt')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/contracts/DynamicUiContract.kt30
1 files changed, 30 insertions, 0 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/contracts/DynamicUiContract.kt b/app/src/main/kotlin/com/pitchedapps/frost/contracts/DynamicUiContract.kt
new file mode 100644
index 00000000..303c64b3
--- /dev/null
+++ b/app/src/main/kotlin/com/pitchedapps/frost/contracts/DynamicUiContract.kt
@@ -0,0 +1,30 @@
+package com.pitchedapps.frost.contracts
+
+/**
+ * Functions that will modify the current ui
+ */
+interface DynamicUiContract {
+
+ /**
+ * Change all necessary view components to the new theme
+ * Also propagate where applicable
+ */
+ fun reloadTheme()
+
+ /**
+ * Change theme without propagation
+ */
+ fun reloadThemeSelf()
+
+ /**
+ * Change text size & propagate
+ */
+ fun reloadTextSize()
+
+
+ /**
+ * Change text size without propagation
+ */
+ fun reloadTextSizeSelf()
+
+} \ No newline at end of file