]> git.ktnx.net Git - mobile-ledger.git/commit
5-degree theme steps, for smooth color selection
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 5 May 2019 14:55:26 +0000 (17:55 +0300)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 5 May 2019 14:55:26 +0000 (17:55 +0300)
commit6e9344b73fa9b441dd2b4cc38d69ddf4b3afe574
tree06e7a0143eec3dfa445448be863c333161841f18
parentc3d401c2ce5137fd8c3e8f4bf3b71b21dc881ccb
5-degree theme steps, for smooth color selection

also replaces the fixed switch on theme hue with heuristic for getting
resource theme ID from the hue

the three-digit number (%03d) in the resource theme id name is needed because
the build infrastructure orders the IDs by lexical order (0,10,15,100,150,200)
instead of numerical order (0,5,10,15). By zero-padding both orders are the same
(000,005,010,015)
app/src/main/java/net/ktnx/mobileledger/ui/HueRing.java
app/src/main/java/net/ktnx/mobileledger/utils/Colors.java
app/src/main/res/values/styles.xml
tools/gen-styles