Project

General

Profile

« Previous | Next » 

Revision 0a9adc31

Added by Leszek Koltunski about 2 months ago

Themes almost finished.

View differences:

src/main/java/org/distorted/solverui/ScreenSolver.java
374 374
    for(int b=0; b<mNumColors; b++)
375 375
      {
376 376
      Drawable d = mColorButton[b].getBackground();
377

  
378
      if( b==mCurrentButton )
379
        {
380
        d.setColorFilter(ContextCompat.getColor(act,R.color.red), PorterDuff.Mode.MULTIPLY);
381
        }
382
      else
383
        {
384
        d.clearColorFilter();
385
        }
377
      int s = b==mCurrentButton ? act.getSelectedColor() : act.getNormalColor();
378
      d.setColorFilter(ContextCompat.getColor(act,s), PorterDuff.Mode.MULTIPLY);
386 379
      }
387 380
    }
388 381

  

Also available in: Unified diff