more cleanup
This commit is contained in:
parent
432048dc6a
commit
f728cc6e66
5 changed files with 44 additions and 25 deletions
|
|
@ -1,7 +1,4 @@
|
||||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter/painting.dart';
|
|
||||||
|
|
||||||
const TextTheme dayText = TextTheme(
|
const TextTheme dayText = TextTheme(
|
||||||
titleLarge: TextStyle(color: Color(0xff333333)),
|
titleLarge: TextStyle(color: Color(0xff333333)),
|
||||||
|
|
@ -53,7 +50,16 @@ const dayTheme = {
|
||||||
TextStyle(color: Color(0xffbd2c00), backgroundColor: Color(0xffffecec)),
|
TextStyle(color: Color(0xffbd2c00), backgroundColor: Color(0xffffecec)),
|
||||||
'number': TextStyle(color: Color(0xff005cc5)),
|
'number': TextStyle(color: Color(0xff005cc5)),
|
||||||
'string': TextStyle(color: Color(0xff032f62)),
|
'string': TextStyle(color: Color(0xff032f62)),
|
||||||
'tag-hash': TextStyle(color: Colors.pinkAccent, fontStyle: FontStyle.italic, fontWeight: FontWeight.bold),
|
'tag-hash': TextStyle(
|
||||||
'tag-plus': TextStyle(color: Colors.cyan, fontStyle: FontStyle.italic, fontWeight: FontWeight.bold),
|
color: Colors.pinkAccent,
|
||||||
'tag-at': TextStyle(color: Colors.orange, fontStyle: FontStyle.italic, fontWeight: FontWeight.bold),
|
fontStyle: FontStyle.italic,
|
||||||
|
fontWeight: FontWeight.bold),
|
||||||
|
'tag-plus': TextStyle(
|
||||||
|
color: Colors.cyan,
|
||||||
|
fontStyle: FontStyle.italic,
|
||||||
|
fontWeight: FontWeight.bold),
|
||||||
|
'tag-at': TextStyle(
|
||||||
|
color: Colors.orange,
|
||||||
|
fontStyle: FontStyle.italic,
|
||||||
|
fontWeight: FontWeight.bold),
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
import 'package:highlight/src/mode.dart';
|
import 'package:highlight/highlight.dart';
|
||||||
import 'package:highlight/src/common_modes.dart';
|
|
||||||
|
|
||||||
final markdown = Mode(refs: {}, aliases: [
|
final markdown = Mode(refs: {}, aliases: [
|
||||||
"md",
|
"md",
|
||||||
|
|
@ -59,9 +58,16 @@ final markdown = Mode(refs: {}, aliases: [
|
||||||
]),
|
]),
|
||||||
|
|
||||||
// Custom Tag Highlighting
|
// Custom Tag Highlighting
|
||||||
Mode(className: "tag-hash", begin: "(?<=\\s|^)#[a-zA-Z0-9_]+", relevance: 10), // Magenta
|
Mode(
|
||||||
Mode(className: "tag-plus", begin: "(?<=\\s|^)\\+[a-zA-Z0-9_]+", relevance: 10), // Cyan
|
className: "tag-hash",
|
||||||
Mode(className: "tag-at", begin: "(?<=\\s|^)@[a-zA-Z0-9_]+", relevance: 10), // Yellow
|
begin: "(?<=\\s|^)#[a-zA-Z0-9_]+",
|
||||||
|
relevance: 10), // Magenta
|
||||||
|
Mode(
|
||||||
|
className: "tag-plus",
|
||||||
|
begin: "(?<=\\s|^)\\+[a-zA-Z0-9_]+",
|
||||||
|
relevance: 10), // Cyan
|
||||||
|
Mode(
|
||||||
|
className: "tag-at",
|
||||||
|
begin: "(?<=\\s|^)@[a-zA-Z0-9_]+",
|
||||||
|
relevance: 10), // Yellow
|
||||||
]);
|
]);
|
||||||
|
|
@ -1,7 +1,4 @@
|
||||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter/painting.dart';
|
|
||||||
|
|
||||||
const TextTheme nightText = TextTheme(
|
const TextTheme nightText = TextTheme(
|
||||||
titleLarge: TextStyle(color: Color(0xffc5c8c6)),
|
titleLarge: TextStyle(color: Color(0xffc5c8c6)),
|
||||||
|
|
@ -53,7 +50,16 @@ const nightTheme = {
|
||||||
TextStyle(backgroundColor: Color(0xFF121212), color: Color(0xffc5c8c6)),
|
TextStyle(backgroundColor: Color(0xFF121212), color: Color(0xffc5c8c6)),
|
||||||
'emphasis': TextStyle(fontStyle: FontStyle.italic),
|
'emphasis': TextStyle(fontStyle: FontStyle.italic),
|
||||||
'strong': TextStyle(fontWeight: FontWeight.bold),
|
'strong': TextStyle(fontWeight: FontWeight.bold),
|
||||||
'tag-hash': TextStyle(color: Colors.pinkAccent, fontStyle: FontStyle.italic, fontWeight: FontWeight.bold),
|
'tag-hash': TextStyle(
|
||||||
'tag-plus': TextStyle(color: Colors.cyan, fontStyle: FontStyle.italic, fontWeight: FontWeight.bold),
|
color: Colors.pinkAccent,
|
||||||
'tag-at': TextStyle(color: Colors.orange, fontStyle: FontStyle.italic, fontWeight: FontWeight.bold),
|
fontStyle: FontStyle.italic,
|
||||||
|
fontWeight: FontWeight.bold),
|
||||||
|
'tag-plus': TextStyle(
|
||||||
|
color: Colors.cyan,
|
||||||
|
fontStyle: FontStyle.italic,
|
||||||
|
fontWeight: FontWeight.bold),
|
||||||
|
'tag-at': TextStyle(
|
||||||
|
color: Colors.orange,
|
||||||
|
fontStyle: FontStyle.italic,
|
||||||
|
fontWeight: FontWeight.bold),
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -217,7 +217,7 @@ packages:
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "6.2.1"
|
version: "6.2.1"
|
||||||
highlight:
|
highlight:
|
||||||
dependency: transitive
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
name: highlight
|
name: highlight
|
||||||
sha256: "5353a83ffe3e3eca7df0abfb72dcf3fa66cc56b953728e7113ad4ad88497cf21"
|
sha256: "5353a83ffe3e3eca7df0abfb72dcf3fa66cc56b953728e7113ad4ad88497cf21"
|
||||||
|
|
|
||||||
|
|
@ -45,6 +45,7 @@ dependencies:
|
||||||
path_provider: ^2.1.5
|
path_provider: ^2.1.5
|
||||||
permission_handler: ^11.4.0
|
permission_handler: ^11.4.0
|
||||||
shared_preferences: ^2.5.2
|
shared_preferences: ^2.5.2
|
||||||
|
highlight: ^0.7.0
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
flutter_test:
|
flutter_test:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue