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/helpers/BaseActivity.java
46 46
    protected int mHeightLowerBar, mHeightUpperBar;
47 47
    protected float mDensity;
48 48
    protected int mVeryDarkC, mDarkC, mNormalC, mMediumC, mLightC, mPassedC;
49
    protected int mDarkT, mLightT, mSelectC;
49 50
    protected SharedPreferences mPreferences;
50 51

  
51 52
///////////////////////////////////////////////////////////////////////////////////////////////////
......
67 68
                           mMediumC  = R.color.mediumWhite;
68 69
                           mLightC   = R.color.lightWhite;
69 70
                           mPassedC  = R.color.passedWhite;
71
                           mDarkT    = R.color.transDWhite;
72
                           mLightT   = R.color.transLWhite;
73
                           mSelectC  = R.color.selectWhite;
70 74
                           break;
71 75
        case THEME_GREEN : setTheme(R.style.GreenTheme);
72 76
                           mVeryDarkC= R.color.veryDarkGreen;
......
75 79
                           mMediumC  = R.color.mediumGreen;
76 80
                           mLightC   = R.color.lightGreen;
77 81
                           mPassedC  = R.color.passedGreen;
82
                           mDarkT    = R.color.transDGreen;
83
                           mLightT   = R.color.transLGreen;
84
                           mSelectC  = R.color.selectGreen;
78 85
                           break;
79 86
        default          : setTheme(R.style.GreyTheme);
80 87
                           mVeryDarkC= R.color.veryDarkGrey;
......
83 90
                           mMediumC  = R.color.mediumGrey;
84 91
                           mLightC   = R.color.lightGrey;
85 92
                           mPassedC  = R.color.passedGrey;
86
                           break;
93
                           mDarkT    = R.color.transDGrey;
94
                           mLightT   = R.color.transLGrey;
95
                           mSelectC  = R.color.selectGrey;
96
            break;
87 97
        }
88 98

  
89 99
      super.onCreate(savedState);
......
124 134
      return mLightC;
125 135
      }
126 136

  
137
///////////////////////////////////////////////////////////////////////////////////////////////////
138

  
139
    public int getDarkTrans()
140
    {
141
        return mDarkT;
142
    }
143

  
144
///////////////////////////////////////////////////////////////////////////////////////////////////
145

  
146
    public int getLightTrans()
147
    {
148
        return mLightT;
149
    }
150

  
151
///////////////////////////////////////////////////////////////////////////////////////////////////
152

  
153
    public int getSelectedColor()
154
    {
155
        return mSelectC;
156
    }
157

  
127 158
///////////////////////////////////////////////////////////////////////////////////////////////////
128 159

  
129 160
    public void setUpBackgroundColor(DistortedFramebuffer df)

Also available in: Unified diff