~igor-cali/bilancio/trunk-a18

« back to all changes in this revision

Viewing changes to android/API26/main/java/com/igisw/openmoneybox/remcreddeb.java

  • Committer: Igor Calì
  • Date: 2019-11-10 22:17:48 UTC
  • Revision ID: igor.cali0@gmail.com-20191110221748-meh0qvhn2tmrznzy
v3.4 beta5

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 * Name:      
3
3
 * Purpose:   Core Code for OpenMoneyBox Application
4
4
 * Author:    Igor Calì (igor.cali0@gmail.com)
5
 
 * Created:   2019-04-14
 
5
 * Created:   2019-10-18
6
6
 * Copyright: Igor Calì (igor.cali0@gmail.com)
7
7
 * License:             GNU
8
8
 **************************************************************/
47
47
          if(Opts.getBoolean("GDarkTheme", false)) {
48
48
                  this.setTheme(R.style.DarkTheme);
49
49
                  LinearLayout ll = findViewById(R.id.ll_remcreddeb);
50
 
                  ll.setBackgroundColor(0xff000000);
51
 
                  label.setBackgroundColor(0xff000000);
52
 
                  label.setTextColor(0xffffffff);
 
50
                  ll.setBackgroundColor(getResources().getColor(R.color.black));
 
51
                  label.setBackgroundColor(getResources().getColor(R.color.black));
 
52
                  label.setTextColor(getResources().getColor(R.color.white));
53
53
 
54
54
                  ColorStateList colorStateList = new ColorStateList(
55
55
                                  new int[][]{
57
57
                                                  new int[]{android.R.attr.state_enabled} //enabled
58
58
                                  },
59
59
                                  new int[] {
60
 
                                                  0xff333333 , //disabled
61
 
                                                  0xffffffff //enabled
 
60
                                                  getResources().getColor(R.color.highlight_dark) , //disabled
 
61
                                                  getResources().getColor(R.color.white) //enabled
62
62
                                  }
63
63
                  );
64
64
                  total.setTextColor(colorStateList);//set the color tint list
65
65
                  partial.setTextColor(colorStateList);//set the color tint list
66
66
 
67
67
                  EditText nameText = findViewById(R.id.editText);
68
 
                  nameText.setHintTextColor(0xff333333);
69
 
                  nameText.setTextColor(0xffffffff);
 
68
                  nameText.setHintTextColor(getResources().getColor(R.color.highlight_dark));
 
69
                  nameText.setTextColor(getResources().getColor(R.color.white));
70
70
          }
71
71
 
72
72
        Bundle bundle = getIntent().getExtras();