mirror of
https://github.com/clangen/musikcube.git
synced 2025-03-14 13:21:13 +00:00
Updated checkbox styling to be more standard.
This commit is contained in:
parent
592430615e
commit
87178e2a7d
@ -52,7 +52,8 @@ using namespace musik::core::sdk;
|
||||
using namespace musik::cube;
|
||||
using namespace cursespp;
|
||||
|
||||
static const std::string check = "√";
|
||||
static const std::string unchecked = "[ ]";
|
||||
static const std::string checked = "[x]";
|
||||
|
||||
struct PluginInfo {
|
||||
std::string name;
|
||||
@ -90,7 +91,7 @@ class PluginAdapter : public ScrollAdapterBase {
|
||||
|
||||
std::string display =
|
||||
" " +
|
||||
(plugin->enabled ? check : " ") + " " +
|
||||
(plugin->enabled ? checked : unchecked) + " " +
|
||||
plugin->name + " (" + plugin->fn + ")";
|
||||
|
||||
SinglePtr result = SinglePtr(new SingleLineEntry(text::Ellipsize(display, this->GetWidth())));
|
||||
|
@ -42,8 +42,8 @@
|
||||
|
||||
using namespace cursespp;
|
||||
|
||||
#define UNCHECKED std::string("□")
|
||||
#define CHECKED std::string("√")
|
||||
#define UNCHECKED std::string("[ ]")
|
||||
#define CHECKED std::string("[x]")
|
||||
|
||||
Checkbox::Checkbox()
|
||||
: Window()
|
||||
|
@ -21,7 +21,7 @@ android {
|
||||
applicationId "io.casey.musikcube.remote"
|
||||
minSdkVersion 21
|
||||
targetSdkVersion 26
|
||||
versionCode 26
|
||||
versionCode 27
|
||||
versionName "0.23.0"
|
||||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
||||
}
|
||||
|
@ -15,6 +15,7 @@ import io.casey.musikcube.remote.ui.settings.constants.Prefs
|
||||
import io.casey.musikcube.remote.util.Preconditions
|
||||
import io.reactivex.Single
|
||||
import io.reactivex.android.schedulers.AndroidSchedulers
|
||||
import io.reactivex.rxkotlin.subscribeBy
|
||||
import io.reactivex.schedulers.Schedulers
|
||||
import java.util.*
|
||||
import javax.inject.Inject
|
||||
@ -89,7 +90,7 @@ abstract class PlayerWrapper {
|
||||
}
|
||||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe()
|
||||
.subscribeBy(onError = { })
|
||||
}
|
||||
|
||||
companion object {
|
||||
|
Loading…
x
Reference in New Issue
Block a user