|
6 | 6 | import android.os.Bundle; |
7 | 7 | import android.view.Menu; |
8 | 8 | import android.view.MenuItem; |
| 9 | +import android.widget.Toast; |
9 | 10 |
|
10 | 11 | import com.amrdeveloper.codeview.CodeView; |
11 | 12 | import com.amrdeveloper.codeviewlibrary.syntax.Language; |
| 13 | +import com.amrdeveloper.codeviewlibrary.syntax.SyntaxManager; |
12 | 14 |
|
13 | 15 | public class MainActivity extends AppCompatActivity { |
14 | 16 |
|
@@ -44,16 +46,20 @@ public boolean onOptionsItemSelected(@NonNull MenuItem item) { |
44 | 46 |
|
45 | 47 | switch (mNextThemeIndex) { |
46 | 48 | case 1: |
47 | | - |
| 49 | + SyntaxManager.applyMonokaiTheme(this, mCodeView, mCurrentLanguage); |
| 50 | + Toast.makeText(this, "Monokai", Toast.LENGTH_SHORT).show(); |
48 | 51 | break; |
49 | 52 | case 2: |
50 | | - |
| 53 | + SyntaxManager.applyNoctisWhiteTheme(this, mCodeView, mCurrentLanguage); |
| 54 | + Toast.makeText(this, "Noctis White", Toast.LENGTH_SHORT).show(); |
51 | 55 | break; |
52 | 56 | case 3: |
53 | | - |
| 57 | + SyntaxManager.applyFiveColorsDarkTheme(this, mCodeView, mCurrentLanguage); |
| 58 | + Toast.makeText(this, "5 Colors Dark", Toast.LENGTH_SHORT).show(); |
54 | 59 | break; |
55 | 60 | case 4: |
56 | | - |
| 61 | + SyntaxManager.applyOrangeBoxTheme(this, mCodeView, mCurrentLanguage); |
| 62 | + Toast.makeText(this, "Orange Box", Toast.LENGTH_SHORT).show(); |
57 | 63 | break; |
58 | 64 | } |
59 | 65 |
|
|
0 commit comments