Updated checkbox styling to be more standard.

This commit is contained in:
casey langen 2018-01-26 10:59:41 -08:00
parent 592430615e
commit 87178e2a7d
4 changed files with 8 additions and 6 deletions

View File

@ -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())));

View File

@ -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()

View File

@ -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"
}

View File

@ -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 {