|
| 1 | +import 'package:flutter/painting.dart' show TextStyle; |
| 2 | +import 'package:re_highlight/styles/a11y-dark.dart'; |
| 3 | +import 'package:re_highlight/styles/a11y-light.dart'; |
| 4 | +import 'package:re_highlight/styles/agate.dart'; |
| 5 | +import 'package:re_highlight/styles/an-old-hope.dart'; |
| 6 | +import 'package:re_highlight/styles/androidstudio.dart'; |
| 7 | +import 'package:re_highlight/styles/arduino-light.dart'; |
| 8 | +import 'package:re_highlight/styles/arta.dart'; |
| 9 | +import 'package:re_highlight/styles/ascetic.dart'; |
| 10 | +import 'package:re_highlight/styles/atom-one-dark-reasonable.dart'; |
| 11 | +import 'package:re_highlight/styles/atom-one-dark.dart'; |
| 12 | +import 'package:re_highlight/styles/atom-one-light.dart'; |
| 13 | +import 'package:re_highlight/styles/brown-paper.dart'; |
| 14 | +import 'package:re_highlight/styles/codepen-embed.dart'; |
| 15 | +import 'package:re_highlight/styles/color-brewer.dart'; |
| 16 | +import 'package:re_highlight/styles/dark.dart'; |
| 17 | +import 'package:re_highlight/styles/devibeans.dart'; |
| 18 | +import 'package:re_highlight/styles/docco.dart'; |
| 19 | +import 'package:re_highlight/styles/far.dart'; |
| 20 | +import 'package:re_highlight/styles/felipec.dart'; |
| 21 | +import 'package:re_highlight/styles/foundation.dart'; |
| 22 | +import 'package:re_highlight/styles/github-dark-dimmed.dart'; |
| 23 | +import 'package:re_highlight/styles/github-dark.dart'; |
| 24 | +import 'package:re_highlight/styles/github.dart'; |
| 25 | +import 'package:re_highlight/styles/gml.dart'; |
| 26 | +import 'package:re_highlight/styles/googlecode.dart'; |
| 27 | +import 'package:re_highlight/styles/gradient-dark.dart'; |
| 28 | +import 'package:re_highlight/styles/gradient-light.dart'; |
| 29 | +import 'package:re_highlight/styles/grayscale.dart'; |
| 30 | +import 'package:re_highlight/styles/hybrid.dart'; |
| 31 | +import 'package:re_highlight/styles/idea.dart'; |
| 32 | +import 'package:re_highlight/styles/intellij-light.dart'; |
| 33 | +import 'package:re_highlight/styles/ir-black.dart'; |
| 34 | +import 'package:re_highlight/styles/isbl-editor-dark.dart'; |
| 35 | +import 'package:re_highlight/styles/isbl-editor-light.dart'; |
| 36 | +import 'package:re_highlight/styles/kimbie-dark.dart'; |
| 37 | +import 'package:re_highlight/styles/kimbie-light.dart'; |
| 38 | +import 'package:re_highlight/styles/lightfair.dart'; |
| 39 | +import 'package:re_highlight/styles/lioshi.dart'; |
| 40 | +import 'package:re_highlight/styles/magula.dart'; |
| 41 | +import 'package:re_highlight/styles/mono-blue.dart'; |
| 42 | +import 'package:re_highlight/styles/monokai-sublime.dart'; |
| 43 | +import 'package:re_highlight/styles/monokai.dart'; |
| 44 | +import 'package:re_highlight/styles/night-owl.dart'; |
| 45 | +import 'package:re_highlight/styles/nnfx-dark.dart'; |
| 46 | +import 'package:re_highlight/styles/nnfx-light.dart'; |
| 47 | +import 'package:re_highlight/styles/nord.dart'; |
| 48 | +import 'package:re_highlight/styles/obsidian.dart'; |
| 49 | +import 'package:re_highlight/styles/panda-syntax-dark.dart'; |
| 50 | +import 'package:re_highlight/styles/panda-syntax-light.dart'; |
| 51 | +import 'package:re_highlight/styles/paraiso-dark.dart'; |
| 52 | +import 'package:re_highlight/styles/paraiso-light.dart'; |
| 53 | +import 'package:re_highlight/styles/pojoaque.dart'; |
| 54 | +import 'package:re_highlight/styles/purebasic.dart'; |
| 55 | +import 'package:re_highlight/styles/qtcreator-dark.dart'; |
| 56 | +import 'package:re_highlight/styles/qtcreator-light.dart'; |
| 57 | +import 'package:re_highlight/styles/rainbow.dart'; |
| 58 | +import 'package:re_highlight/styles/routeros.dart'; |
| 59 | +import 'package:re_highlight/styles/school-book.dart'; |
| 60 | +import 'package:re_highlight/styles/shades-of-purple.dart'; |
| 61 | +import 'package:re_highlight/styles/srcery.dart'; |
| 62 | +import 'package:re_highlight/styles/stackoverflow-dark.dart'; |
| 63 | +import 'package:re_highlight/styles/stackoverflow-light.dart'; |
| 64 | +import 'package:re_highlight/styles/sunburst.dart'; |
| 65 | +import 'package:re_highlight/styles/tokyo-night-dark.dart'; |
| 66 | +import 'package:re_highlight/styles/tokyo-night-light.dart'; |
| 67 | +import 'package:re_highlight/styles/tomorrow-night-blue.dart'; |
| 68 | +import 'package:re_highlight/styles/tomorrow-night-bright.dart'; |
| 69 | +import 'package:re_highlight/styles/vs.dart'; |
| 70 | +import 'package:re_highlight/styles/vs2015.dart'; |
| 71 | +import 'package:re_highlight/styles/xcode.dart'; |
| 72 | +import 'package:re_highlight/styles/xt256.dart'; |
| 73 | + |
| 74 | +enum LightCodeTheme { |
| 75 | + a11yLight('a11y-light', a11YLightTheme), |
| 76 | + arduinoLight('arduino-light', arduinoLightTheme), |
| 77 | + ascetic('ascetic', asceticTheme), |
| 78 | + atomOneLight('atom-one-light', atomOneLightTheme), |
| 79 | + github('github', githubTheme), |
| 80 | + gradientLight('gradient-light', gradientLightTheme), |
| 81 | + intellijLight('intellij-light', intellijLightTheme), |
| 82 | + isblEditorLight('isbl-editor-light', isblEditorLightTheme), |
| 83 | + kimbieLight('kimbie-light', kimbieLightTheme), |
| 84 | + lightfair('lightfair', lightfairTheme), |
| 85 | + monoBlue('mono-blue', monoBlueTheme), |
| 86 | + nnfxLight('nnfx-light', nnfxLightTheme), |
| 87 | + pandaSyntaxLight('panda-syntax-light', pandaSyntaxLightTheme), |
| 88 | + paraisoLight('paraiso-light', paraisoLightTheme), |
| 89 | + qtcreatorLight('qtcreator-light', qtcreatorLightTheme), |
| 90 | + stackoverflowLight('stackoverflow-light', stackoverflowLightTheme), |
| 91 | + tokyoNightLight('tokyo-night-light', tokyoNightLightTheme), |
| 92 | + vs('vs', vsTheme), |
| 93 | + xcode('xcode', xcodeTheme), |
| 94 | + ; |
| 95 | + |
| 96 | + final String label; |
| 97 | + final Map<String, TextStyle> value; |
| 98 | + |
| 99 | + const LightCodeTheme(this.label, this.value); |
| 100 | + |
| 101 | + static const LightCodeTheme defaultTheme = LightCodeTheme.github; |
| 102 | +} |
| 103 | + |
| 104 | +enum DarkCodeTheme { |
| 105 | + a11YDark('a11y-dark', a11YDarkTheme), |
| 106 | + agate('agate', agateTheme), |
| 107 | + anOldHope('an-old-hope', anOldHopeTheme), |
| 108 | + androidstudio('androidstudio', androidstudioTheme), |
| 109 | + arta('arta', artaTheme), |
| 110 | + atomOneDarkReasonable('atom-one-dark-reasonable', atomOneDarkReasonableTheme), |
| 111 | + atomOneDark('atom-one-dark', atomOneDarkTheme), |
| 112 | + brownPaper('brown-paper', brownPaperTheme), |
| 113 | + codepenEmbed('codepen-embed', codepenEmbedTheme), |
| 114 | + colorBrewer('color-brewer', colorBrewerTheme), |
| 115 | + dark('dark', darkTheme), |
| 116 | + devibeans('devibeans', devibeansTheme), |
| 117 | + docco('docco', doccoTheme), |
| 118 | + far('far', farTheme), |
| 119 | + felipec('felipec', felipecTheme), |
| 120 | + foundation('foundation', foundationTheme), |
| 121 | + githubDarkDimmed('github-dark-dimmed', githubDarkDimmedTheme), |
| 122 | + githubDark('github-dark', githubDarkTheme), |
| 123 | + gml('gml', gmlTheme), |
| 124 | + googlecode('googlecode', googlecodeTheme), |
| 125 | + gradientDark('gradient-dark', gradientDarkTheme), |
| 126 | + grayscale('grayscale', grayscaleTheme), |
| 127 | + hybrid('hybrid', hybridTheme), |
| 128 | + idea('idea', ideaTheme), |
| 129 | + irBlack('ir-black', irBlackTheme), |
| 130 | + isblEditorDark('isbl-editor-dark', isblEditorDarkTheme), |
| 131 | + kimbieDark('kimbie-dark', kimbieDarkTheme), |
| 132 | + lioshi('lioshi', lioshiTheme), |
| 133 | + magula('magula', magulaTheme), |
| 134 | + monokaiSublime('monokai-sublime', monokaiSublimeTheme), |
| 135 | + monokai('monokai', monokaiTheme), |
| 136 | + nightOwl('night-owl', nightOwlTheme), |
| 137 | + nnfxDark('nnfx-dark', nnfxDarkTheme), |
| 138 | + nord('nord', nordTheme), |
| 139 | + obsidian('obsidian', obsidianTheme), |
| 140 | + pandaSyntaxDark('panda-syntax-dark', pandaSyntaxDarkTheme), |
| 141 | + paraisoDark('paraiso-dark', paraisoDarkTheme), |
| 142 | + pojoaque('pojoaque', pojoaqueTheme), |
| 143 | + purebasic('purebasic', purebasicTheme), |
| 144 | + qtcreatorDark('qtcreator-dark', qtcreatorDarkTheme), |
| 145 | + rainbow('rainbow', rainbowTheme), |
| 146 | + routeros('routeros', routerosTheme), |
| 147 | + schoolBook('school-book', schoolBookTheme), |
| 148 | + shadesOfPurple('shades-of-purple', shadesOfPurpleTheme), |
| 149 | + srcery('srcery', srceryTheme), |
| 150 | + stackoverflowDark('stackoverflow-dark', stackoverflowDarkTheme), |
| 151 | + sunburst('sunburst', sunburstTheme), |
| 152 | + tokyoNightDark('tokyo-night-dark', tokyoNightDarkTheme), |
| 153 | + tomorrowNightBlue('tomorrow-night-blue', tomorrowNightBlueTheme), |
| 154 | + tomorrowNightBright('tomorrow-night-bright', tomorrowNightBrightTheme), |
| 155 | + vs2015('vs2015', vs2015Theme), |
| 156 | + xt256('xt256', xt256Theme), |
| 157 | + ; |
| 158 | + |
| 159 | + final String label; |
| 160 | + final Map<String, TextStyle> value; |
| 161 | + |
| 162 | + const DarkCodeTheme(this.label, this.value); |
| 163 | + |
| 164 | + static const DarkCodeTheme defaultTheme = DarkCodeTheme.githubDark; |
| 165 | +} |
0 commit comments