Skip to content

Commit aa436ab

Browse files
committed
Updated the themes
1 parent d641557 commit aa436ab

File tree

8 files changed

+50
-5
lines changed

8 files changed

+50
-5
lines changed

android/.idea/gradle.xml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/editor.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class _EditorPageState extends State<EditorPage> {
5656
themeData.tabsArea
5757
//..border = Border(bottom: BorderSide(color: Colors.green[700]!, width: 3))
5858
..middleGap = 0
59-
..color = const Color(0x3C3F4566);
59+
..color = ThemeManager.getThemeSchemeColor("background");
6060
themeData.menu..textStyle = const TextStyle(color: Colors.white);
6161
Radius radius = Radius.zero;
6262
BorderRadiusGeometry? borderRadius =

lib/util/themes.dart

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ import 'package:flutter_highlight/themes/xcode.dart';
9191
import 'package:flutter_highlight/themes/xt256.dart';
9292
import 'package:flutter_highlight/themes/zenburn.dart';
9393

94+
import 'package:flutter/painting.dart';
9495
const THEMES = {
9596
'a11y-dark': a11yDarkTheme,
9697
'a11y-light': a11yLightTheme,
@@ -188,7 +189,42 @@ const THEMES = {
188189
const editorThemes = {
189190
'core-coder-dark': {
190191
"brightness" : "dark",
191-
"highlight": atomOneDarkTheme,
192+
"highlight": {
193+
'root': TextStyle(color: Color(0xffabb2bf), backgroundColor: Color(0xFF202020)),
194+
'comment': TextStyle(color: Color(0xff5c6370), fontStyle: FontStyle.italic),
195+
'quote': TextStyle(color: Color(0xff5c6370), fontStyle: FontStyle.italic),
196+
'doctag': TextStyle(color: Color(0xffc678dd)),
197+
'keyword': TextStyle(color: Color(0xffc678dd)),
198+
'formula': TextStyle(color: Color(0xffc678dd)),
199+
'section': TextStyle(color: Color(0xffe06c75)),
200+
'name': TextStyle(color: Color(0xffe06c75)),
201+
'selector-tag': TextStyle(color: Color(0xffe06c75)),
202+
'deletion': TextStyle(color: Color(0xffe06c75)),
203+
'subst': TextStyle(color: Color(0xffe06c75)),
204+
'literal': TextStyle(color: Color(0xff56b6c2)),
205+
'string': TextStyle(color: Color(0xff98c379)),
206+
'regexp': TextStyle(color: Color(0xff98c379)),
207+
'addition': TextStyle(color: Color(0xff98c379)),
208+
'attribute': TextStyle(color: Color(0xff98c379)),
209+
'meta-string': TextStyle(color: Color(0xff98c379)),
210+
'built_in': TextStyle(color: Color(0xffe6c07b)),
211+
'attr': TextStyle(color: Color(0xffd19a66)),
212+
'variable': TextStyle(color: Color(0xffd19a66)),
213+
'template-variable': TextStyle(color: Color(0xffd19a66)),
214+
'type': TextStyle(color: Color(0xffd19a66)),
215+
'selector-class': TextStyle(color: Color(0xffd19a66)),
216+
'selector-attr': TextStyle(color: Color(0xffd19a66)),
217+
'selector-pseudo': TextStyle(color: Color(0xffd19a66)),
218+
'number': TextStyle(color: Color(0xffd19a66)),
219+
'symbol': TextStyle(color: Color(0xff61aeee)),
220+
'bullet': TextStyle(color: Color(0xff61aeee)),
221+
'link': TextStyle(color: Color(0xff61aeee)),
222+
'meta': TextStyle(color: Color(0xff61aeee)),
223+
'selector-id': TextStyle(color: Color(0xff61aeee)),
224+
'title': TextStyle(color: Color(0xff61aeee)),
225+
'emphasis': TextStyle(fontStyle: FontStyle.italic),
226+
'strong': TextStyle(fontWeight: FontWeight.bold),
227+
},
192228
"scheme": {
193229
// Color settings
194230
"primaryColour": Color(0xff13BB67),

pubspec.lock

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ packages:
88
url: "https://pub.dartlang.org"
99
source: hosted
1010
version: "0.1.0"
11+
android_intent_plus:
12+
dependency: "direct main"
13+
description:
14+
name: android_intent_plus
15+
url: "https://pub.dartlang.org"
16+
source: hosted
17+
version: "3.0.2"
1118
archive:
1219
dependency: "direct main"
1320
description:

pubspec.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ dependencies:
6060
http: ^0.13.0
6161
github: ^8.4.0
6262
archive: ^3.1.6
63+
android_intent_plus: ^3.0.2
6364

6465
dev_dependencies:
6566
flutter_test:

windows/runner/flutter_window.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ FlutterWindow::FlutterWindow(const flutter::DartProject& project, std::string ru
88
: project_(project), run_argument(run_args) {}
99

1010
FlutterWindow::~FlutterWindow() {}
11-
11+
void initMethodChannel(flutter::FlutterEngine* flutter_instance);
1212
bool FlutterWindow::OnCreate() {
1313
if (!Win32Window::OnCreate()) {
1414
return false;
@@ -25,7 +25,7 @@ bool FlutterWindow::OnCreate() {
2525
return false;
2626
}
2727
RegisterPlugins(flutter_controller_->engine());
28-
28+
initMethodChannel(flutter_controller_->engine());
2929
SetChildContent(flutter_controller_->view()->GetNativeWindow());
3030
return true;
3131
}

windows/runner/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev,
2626
std::transform(mywstr.begin(), mywstr.end(), str.begin(), [](wchar_t c) {
2727
return (char)c;
2828
});
29-
MessageBox(NULL, convertCharArrayToLPCWSTR(str.c_str()), convertCharArrayToLPCWSTR("Caption"), 0);
29+
//MessageBox(NULL, convertCharArrayToLPCWSTR(str.c_str()), convertCharArrayToLPCWSTR("Caption"), 0);
3030

3131
// Initialize COM, so that it is available for use in the library and/or
3232
// plugins.

0 commit comments

Comments
 (0)