SVG Continents
This commit is contained in:
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 6.4 MiB After Width: | Height: | Size: 6.1 MiB |
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 6.4 MiB After Width: | Height: | Size: 6.0 MiB |
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 6.5 MiB After Width: | Height: | Size: 6.1 MiB |
@ -39,17 +39,20 @@ class CSSWrapper(private val ctx: Context) {
|
||||
private fun refresh() {
|
||||
val id = if (Settings.isRegional(ctx)) "1" else "2"
|
||||
customCSS = visits.getVisitedByValue().map { (k, v) ->
|
||||
if (groups.getGroupFromKey(k).key != NO_GROUP || (!Settings.isRegional(ctx) && k == AUTO_GROUP)) {
|
||||
v.joinToString(",") { "#${it}$id,#${it}" } + "{fill:${
|
||||
colorToHex6(
|
||||
if (k == AUTO_GROUP)
|
||||
colorWrapper(ctx, android.R.attr.colorPrimary)
|
||||
else groups.getGroupFromKey(k).color
|
||||
)
|
||||
};}"
|
||||
(if (groups.getGroupFromKey(k).key != NO_GROUP) {
|
||||
v
|
||||
} else if (!Settings.isRegional(ctx) && k == AUTO_GROUP) {
|
||||
v.filter { it !in World.WWW.children.map { it1 -> it1.code } }
|
||||
} else {
|
||||
""
|
||||
}
|
||||
emptyList()
|
||||
}).takeIf { it.isNotEmpty() }
|
||||
?.joinToString(",") { "#${it}$id,#${it}" } + "{fill:${
|
||||
colorToHex6(
|
||||
if (k == AUTO_GROUP)
|
||||
colorWrapper(ctx, android.R.attr.colorPrimary)
|
||||
else groups.getGroupFromKey(k).color
|
||||
)
|
||||
};}"
|
||||
}.joinToString("")
|
||||
}
|
||||
|
||||
|
@ -18,7 +18,7 @@
|
||||
<string name="key_regional">Regional</string>
|
||||
<string name="about">About</string>
|
||||
<string name="beans_is_foss">Beans is free and open source software, licensed under the GNU General Public License (version 3 or later)</string>
|
||||
<string name="beans_repo">Project repository: https://git.helcel.net/helcel/beans\n Feel free to report issues or contribute to the project.</string>
|
||||
<string name="beans_repo">Project repository: https://github.com/helcel-net/beans\n Feel free to report issues or contribute to the project.</string>
|
||||
<string name="foss_licenses">Free and open source dependencies and licenses</string>
|
||||
<string name="about_beans">About the Beans application</string>
|
||||
<string name="edit_group">Select the group to assign. Long press on a group to edit its name and color.</string>
|
||||
|
Reference in New Issue
Block a user