Skip to content

Commit

Permalink
mixer toggle icon for tubeamp theme
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaji Khan committed Feb 20, 2023
1 parent 268b1bf commit 8abad34
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ android {
applicationId "com.shajikhan.ladspa.amprack"
minSdk 23
targetSdk 31
versionCode 38
versionName '2.99e'
versionCode 39
versionName '2.99f'

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
externalNativeBuild {
Expand Down
4 changes: 3 additions & 1 deletion app/src/main/assets/themes/TubeAmp/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@
"play": "play.png",
"pause": "pause.png",
"media": "play_small.png",
"reset": "loop.png"
"reset": "loop.png",
"mixer-on": "mixer_on.png",
"mixer-off": "mixer_off.png"
},

"knobs": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ public void onCheckedChanged(CompoundButton compoundButton, boolean b) {
// db.addPresetToCollection("collections", preset);
// db.likePreset(preset);
db.addAndLike(preset);
if (favoritePresets == null) {
favoritePresets = new HashMap<String, Object>();
}

favoritePresets.put(preset.get("path").toString(), preset.get("name"));
} else {
compoundButton.setButtonDrawable(R.drawable.ic_baseline_favorite_border_24);
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/com/shajikhan/ladspa/amprack/Rack.java
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {

mainActivity.skinEngine.slider(mainActivity.inputVolume);
mainActivity.skinEngine.slider(mainActivity.outputVolume);
// mainActivity.skinEngine.card (mixer);
mainActivity.skinEngine.card (mixer);

if (mixer.getVisibility() == View.VISIBLE) {
mixerInit = true ;
Expand Down

0 comments on commit 8abad34

Please sign in to comment.