Compare commits
123 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| faaf254f2c | |||
| 0776b07b12 | |||
| 6ad62bfdab | |||
| ab2fdb28c2 | |||
| 5a681067b7 | |||
| bdce0ecf70 | |||
| 6e09c6012d | |||
| 851a9173af | |||
| 7caf726381 | |||
| 1a055bdca7 | |||
| 5d5d6d2244 | |||
| 862af21ec2 | |||
| 2037328800 | |||
| bb6092e3ac | |||
| 014fbe78bf | |||
| a89b546755 | |||
| 490bc0f597 | |||
| d0ee140a44 | |||
| e4abb578f0 | |||
| fdde0037f9 | |||
| e2ec85c24e | |||
| 3fd167e889 | |||
| 0e78441fa1 | |||
| 04de960c0f | |||
| a83206bf4b | |||
| 6a20abae19 | |||
| 32ddb21ed2 | |||
| 68d69353e6 | |||
| 7f859c3eda | |||
| 7903977b29 | |||
| 104cb6cd54 | |||
| b5b3e2ab0d | |||
| d48270467e | |||
| a45716b03c | |||
| c1b1b935ff | |||
| 1bdbe85201 | |||
| dcf08dc2c0 | |||
| cb484eeb95 | |||
| 8c0a5bbb24 | |||
| b1229b54ee | |||
| 7c2a16a18d | |||
| b9d0071302 | |||
| b8b195b663 | |||
| 5c6f016ab6 | |||
| 0f5732cc77 | |||
| 6050c6c965 | |||
| b1105dfadc | |||
| 25c98a1abf | |||
| 9612802996 | |||
| 744e421eb7 | |||
| b390876bd5 | |||
| 0d5a807afd | |||
| fdbfc87481 | |||
| 66f2274f44 | |||
| 3a31651c53 | |||
| c9556df363 | |||
| e4eabf9578 | |||
| ae7368ecbc | |||
| 6cc810b9b1 | |||
| 66bedda2b4 | |||
| e741e664a3 | |||
| cada2debae | |||
| 3b6d0b8f89 | |||
| 42cf89f7c5 | |||
| abc6130940 | |||
| 2932ad3a64 | |||
| 83cd53d23c | |||
| d7aa3b7348 | |||
| 9b51b5c26c | |||
| f389f32d32 | |||
| 71a270394d | |||
| d4e8dec698 | |||
| a97aa1f347 | |||
| 130459d646 | |||
| 4f8285fcf1 | |||
| 25bc0d4101 | |||
| 282695cc93 | |||
| df9aa8e72f | |||
| 747b15fdea | |||
| 22f66d36a2 | |||
| 89ad8e38e5 | |||
| fb802040ca | |||
| 72b9829dbe | |||
| b177298e07 | |||
| 364c0da236 | |||
| e8694643d8 | |||
| 6dbed6cf49 | |||
| fe3e0f1d50 | |||
| 4fe730d414 | |||
| 346ebd68cf | |||
| 4bf2a1b61f | |||
| 0bdf267b36 | |||
| 1981edfafe | |||
| 3959155c1b | |||
| 16f4f27f17 | |||
| 6185a92759 | |||
| 38a6790c51 | |||
| 8a85a838e7 | |||
| 51da0abb84 | |||
| fffa930eb1 | |||
| d72f5bfd5e | |||
| 2dfcf35191 | |||
| b048fdaad8 | |||
| 9ce85a34e9 | |||
| c51ebc16d2 | |||
| e457f3c4c9 | |||
| 884ee84f8a | |||
| 7bd9e823b3 | |||
| 901944983f | |||
| ca6f1db16f | |||
| 0a2e9a3c09 | |||
| 5ba83212af | |||
| e8a3a43e4a | |||
| 00bfee5827 | |||
| 5d56d9b1a8 | |||
| 58f6a5d964 | |||
| f66e0d2c1c | |||
| 98f807589b | |||
| 0426041288 | |||
| da8fae1b6d | |||
| 708ee91d08 | |||
| a211eb19cc | |||
| ca0a54c3ab |
53
CHANGELOG.md
Normal file
@ -0,0 +1,53 @@
|
||||
## v1.0.7
|
||||
* 首页任务增加分类
|
||||
* 增加国际化相关配置
|
||||
* 登录页状态栏适配
|
||||
|
||||
## v1.0.6
|
||||
* 支持切换账号功能
|
||||
* 登录页青龙图标随颜色主题变换
|
||||
* apk大小减少2/3,只支持arm架构,不再支持x86
|
||||
|
||||
## v1.0.5
|
||||
* 优化配置文件编辑功能
|
||||
* 优化文本选择样式
|
||||
* 增加页面错误toast
|
||||
* 修改iOS端app icon
|
||||
|
||||
## 1.0.4
|
||||
* 增加主题切换功能,各种颜色主题随意切换
|
||||
* 修改无法停止任务的bug
|
||||
* 修改脚本管理页面json解析失败的bug
|
||||
* 修改变更配置文件没有及时刷新UI的bug
|
||||
* 增加版本更新提醒功能(需要手机能联通github)
|
||||
* 登录页面长按青龙logo可以呼出网络请求日志,再次长按可关闭
|
||||
* 打开系统最近任务时展示APP的名称
|
||||
* 优化使用体验
|
||||
|
||||
## 1.0.3
|
||||
|
||||
* 解决2.10.12及以下版本无法登录的问题
|
||||
* 适配最新版qinglong 相关接口字段
|
||||
* 其他页面排版优化
|
||||
|
||||
## 1.0.2
|
||||
|
||||
* 支持修改用户名密码(仅限使用用户名密码登录用户)
|
||||
* 支持脚本的编辑删除
|
||||
* 支持client_id登录之后只启用部分模块
|
||||
* 支持两步验证
|
||||
|
||||
## 1.0.1
|
||||
|
||||
* 增加任务详情页
|
||||
* 增加环境变量详情页
|
||||
* 环境变量列表使用体验优化
|
||||
* 部分页面进入卡顿优化
|
||||
* 扩大任务的搜索范围
|
||||
* 优化暗黑主题
|
||||
* 支持client_id登录
|
||||
* 修改bug
|
||||
|
||||
## 1.0.0
|
||||
|
||||
* 完成基础功能
|
||||
798
LICENSE
@ -1,201 +1,661 @@
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
GNU AFFERO GENERAL PUBLIC LICENSE
|
||||
Version 3, 19 November 2007
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
1. Definitions.
|
||||
Preamble
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
The GNU Affero General Public License is a free, copyleft license for
|
||||
software and other kinds of works, specifically designed to ensure
|
||||
cooperation with the community in the case of network server software.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
The licenses for most software and other practical works are designed
|
||||
to take away your freedom to share and change the works. By contrast,
|
||||
our General Public Licenses are intended to guarantee your freedom to
|
||||
share and change all versions of a program--to make sure it remains free
|
||||
software for all its users.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
them if you wish), that you receive source code or can get it if you
|
||||
want it, that you can change the software or use pieces of it in new
|
||||
free programs, and that you know you can do these things.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
Developers that use our General Public Licenses protect your rights
|
||||
with two steps: (1) assert copyright on the software, and (2) offer
|
||||
you this License which gives you legal permission to copy, distribute
|
||||
and/or modify the software.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
A secondary benefit of defending all users' freedom is that
|
||||
improvements made in alternate versions of the program, if they
|
||||
receive widespread use, become available for other developers to
|
||||
incorporate. Many developers of free software are heartened and
|
||||
encouraged by the resulting cooperation. However, in the case of
|
||||
software used on network servers, this result may fail to come about.
|
||||
The GNU General Public License permits making a modified version and
|
||||
letting the public access it on a server without ever releasing its
|
||||
source code to the public.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
The GNU Affero General Public License is designed specifically to
|
||||
ensure that, in such cases, the modified source code becomes available
|
||||
to the community. It requires the operator of a network server to
|
||||
provide the source code of the modified version running there to the
|
||||
users of that server. Therefore, public use of a modified version, on
|
||||
a publicly accessible server, gives the public access to the source
|
||||
code of the modified version.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
An older license, called the Affero General Public License and
|
||||
published by Affero, was designed to accomplish similar goals. This is
|
||||
a different license, not a version of the Affero GPL, but Affero has
|
||||
released a new version of the Affero GPL which permits relicensing under
|
||||
this license.
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
0. Definitions.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
"This License" refers to version 3 of the GNU Affero General Public License.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||
works, such as semiconductor masks.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
"The Program" refers to any copyrightable work licensed under this
|
||||
License. Each licensee is addressed as "you". "Licensees" and
|
||||
"recipients" may be individuals or organizations.
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
To "modify" a work means to copy from or adapt all or part of the work
|
||||
in a fashion requiring copyright permission, other than the making of an
|
||||
exact copy. The resulting work is called a "modified version" of the
|
||||
earlier work or a work "based on" the earlier work.
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
A "covered work" means either the unmodified Program or a work based
|
||||
on the Program.
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
To "propagate" a work means to do anything with it that, without
|
||||
permission, would make you directly or secondarily liable for
|
||||
infringement under applicable copyright law, except executing it on a
|
||||
computer or modifying a private copy. Propagation includes copying,
|
||||
distribution (with or without modification), making available to the
|
||||
public, and in some countries other activities as well.
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
To "convey" a work means any kind of propagation that enables other
|
||||
parties to make or receive copies. Mere interaction with a user through
|
||||
a computer network, with no transfer of a copy, is not conveying.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
An interactive user interface displays "Appropriate Legal Notices"
|
||||
to the extent that it includes a convenient and prominently visible
|
||||
feature that (1) displays an appropriate copyright notice, and (2)
|
||||
tells the user that there is no warranty for the work (except to the
|
||||
extent that warranties are provided), that licensees may convey the
|
||||
work under this License, and how to view a copy of this License. If
|
||||
the interface presents a list of user commands or options, such as a
|
||||
menu, a prominent item in the list meets this criterion.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
1. Source Code.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
The "source code" for a work means the preferred form of the work
|
||||
for making modifications to it. "Object code" means any non-source
|
||||
form of a work.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
A "Standard Interface" means an interface that either is an official
|
||||
standard defined by a recognized standards body, or, in the case of
|
||||
interfaces specified for a particular programming language, one that
|
||||
is widely used among developers working in that language.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
The "System Libraries" of an executable work include anything, other
|
||||
than the work as a whole, that (a) is included in the normal form of
|
||||
packaging a Major Component, but which is not part of that Major
|
||||
Component, and (b) serves only to enable use of the work with that
|
||||
Major Component, or to implement a Standard Interface for which an
|
||||
implementation is available to the public in source code form. A
|
||||
"Major Component", in this context, means a major essential component
|
||||
(kernel, window system, and so on) of the specific operating system
|
||||
(if any) on which the executable work runs, or a compiler used to
|
||||
produce the work, or an object code interpreter used to run it.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
The "Corresponding Source" for a work in object code form means all
|
||||
the source code needed to generate, install, and (for an executable
|
||||
work) run the object code and to modify the work, including scripts to
|
||||
control those activities. However, it does not include the work's
|
||||
System Libraries, or general-purpose tools or generally available free
|
||||
programs which are used unmodified in performing those activities but
|
||||
which are not part of the work. For example, Corresponding Source
|
||||
includes interface definition files associated with source files for
|
||||
the work, and the source code for shared libraries and dynamically
|
||||
linked subprograms that the work is specifically designed to require,
|
||||
such as by intimate data communication or control flow between those
|
||||
subprograms and other parts of the work.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
The Corresponding Source need not include anything that users
|
||||
can regenerate automatically from other parts of the Corresponding
|
||||
Source.
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
The Corresponding Source for a work in source code form is that
|
||||
same work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
2. Basic Permissions.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
All rights granted under this License are granted for the term of
|
||||
copyright on the Program, and are irrevocable provided the stated
|
||||
conditions are met. This License explicitly affirms your unlimited
|
||||
permission to run the unmodified Program. The output from running a
|
||||
covered work is covered by this License only if the output, given its
|
||||
content, constitutes a covered work. This License acknowledges your
|
||||
rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
You may make, run and propagate covered works that you do not
|
||||
convey, without conditions so long as your license otherwise remains
|
||||
in force. You may convey covered works to others for the sole purpose
|
||||
of having them make modifications exclusively for you, or provide you
|
||||
with facilities for running those works, provided that you comply with
|
||||
the terms of this License in conveying all material for which you do
|
||||
not control copyright. Those thus making or running the covered works
|
||||
for you must do so exclusively on your behalf, under your direction
|
||||
and control, on terms that prohibit them from making any copies of
|
||||
your copyrighted material outside their relationship with you.
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
Conveying under any other circumstances is permitted solely under
|
||||
the conditions stated below. Sublicensing is not allowed; section 10
|
||||
makes it unnecessary.
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
|
||||
No covered work shall be deemed part of an effective technological
|
||||
measure under any applicable law fulfilling obligations under article
|
||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||
similar laws prohibiting or restricting circumvention of such
|
||||
measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid
|
||||
circumvention of technological measures to the extent such circumvention
|
||||
is effected by exercising rights under this License with respect to
|
||||
the covered work, and you disclaim any intention to limit operation or
|
||||
modification of the work as a means of enforcing, against the work's
|
||||
users, your or third parties' legal rights to forbid circumvention of
|
||||
technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
|
||||
You may convey verbatim copies of the Program's source code as you
|
||||
receive it, in any medium, provided that you conspicuously and
|
||||
appropriately publish on each copy an appropriate copyright notice;
|
||||
keep intact all notices stating that this License and any
|
||||
non-permissive terms added in accord with section 7 apply to the code;
|
||||
keep intact all notices of the absence of any warranty; and give all
|
||||
recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey,
|
||||
and you may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
|
||||
You may convey a work based on the Program, or the modifications to
|
||||
produce it from the Program, in the form of source code under the
|
||||
terms of section 4, provided that you also meet all of these conditions:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified
|
||||
it, and giving a relevant date.
|
||||
|
||||
b) The work must carry prominent notices stating that it is
|
||||
released under this License and any conditions added under section
|
||||
7. This requirement modifies the requirement in section 4 to
|
||||
"keep intact all notices".
|
||||
|
||||
c) You must license the entire work, as a whole, under this
|
||||
License to anyone who comes into possession of a copy. This
|
||||
License will therefore apply, along with any applicable section 7
|
||||
additional terms, to the whole of the work, and all its parts,
|
||||
regardless of how they are packaged. This License gives no
|
||||
permission to license the work in any other way, but it does not
|
||||
invalidate such permission if you have separately received it.
|
||||
|
||||
d) If the work has interactive user interfaces, each must display
|
||||
Appropriate Legal Notices; however, if the Program has interactive
|
||||
interfaces that do not display Appropriate Legal Notices, your
|
||||
work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent
|
||||
works, which are not by their nature extensions of the covered work,
|
||||
and which are not combined with it such as to form a larger program,
|
||||
in or on a volume of a storage or distribution medium, is called an
|
||||
"aggregate" if the compilation and its resulting copyright are not
|
||||
used to limit the access or legal rights of the compilation's users
|
||||
beyond what the individual works permit. Inclusion of a covered work
|
||||
in an aggregate does not cause this License to apply to the other
|
||||
parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
|
||||
You may convey a covered work in object code form under the terms
|
||||
of sections 4 and 5, provided that you also convey the
|
||||
machine-readable Corresponding Source under the terms of this License,
|
||||
in one of these ways:
|
||||
|
||||
a) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by the
|
||||
Corresponding Source fixed on a durable physical medium
|
||||
customarily used for software interchange.
|
||||
|
||||
b) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by a
|
||||
written offer, valid for at least three years and valid for as
|
||||
long as you offer spare parts or customer support for that product
|
||||
model, to give anyone who possesses the object code either (1) a
|
||||
copy of the Corresponding Source for all the software in the
|
||||
product that is covered by this License, on a durable physical
|
||||
medium customarily used for software interchange, for a price no
|
||||
more than your reasonable cost of physically performing this
|
||||
conveying of source, or (2) access to copy the
|
||||
Corresponding Source from a network server at no charge.
|
||||
|
||||
c) Convey individual copies of the object code with a copy of the
|
||||
written offer to provide the Corresponding Source. This
|
||||
alternative is allowed only occasionally and noncommercially, and
|
||||
only if you received the object code with such an offer, in accord
|
||||
with subsection 6b.
|
||||
|
||||
d) Convey the object code by offering access from a designated
|
||||
place (gratis or for a charge), and offer equivalent access to the
|
||||
Corresponding Source in the same way through the same place at no
|
||||
further charge. You need not require recipients to copy the
|
||||
Corresponding Source along with the object code. If the place to
|
||||
copy the object code is a network server, the Corresponding Source
|
||||
may be on a different server (operated by you or a third party)
|
||||
that supports equivalent copying facilities, provided you maintain
|
||||
clear directions next to the object code saying where to find the
|
||||
Corresponding Source. Regardless of what server hosts the
|
||||
Corresponding Source, you remain obligated to ensure that it is
|
||||
available for as long as needed to satisfy these requirements.
|
||||
|
||||
e) Convey the object code using peer-to-peer transmission, provided
|
||||
you inform other peers where the object code and Corresponding
|
||||
Source of the work are being offered to the general public at no
|
||||
charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded
|
||||
from the Corresponding Source as a System Library, need not be
|
||||
included in conveying the object code work.
|
||||
|
||||
A "User Product" is either (1) a "consumer product", which means any
|
||||
tangible personal property which is normally used for personal, family,
|
||||
or household purposes, or (2) anything designed or sold for incorporation
|
||||
into a dwelling. In determining whether a product is a consumer product,
|
||||
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||
product received by a particular user, "normally used" refers to a
|
||||
typical or common use of that class of product, regardless of the status
|
||||
of the particular user or of the way in which the particular user
|
||||
actually uses, or expects or is expected to use, the product. A product
|
||||
is a consumer product regardless of whether the product has substantial
|
||||
commercial, industrial or non-consumer uses, unless such uses represent
|
||||
the only significant mode of use of the product.
|
||||
|
||||
"Installation Information" for a User Product means any methods,
|
||||
procedures, authorization keys, or other information required to install
|
||||
and execute modified versions of a covered work in that User Product from
|
||||
a modified version of its Corresponding Source. The information must
|
||||
suffice to ensure that the continued functioning of the modified object
|
||||
code is in no case prevented or interfered with solely because
|
||||
modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or
|
||||
specifically for use in, a User Product, and the conveying occurs as
|
||||
part of a transaction in which the right of possession and use of the
|
||||
User Product is transferred to the recipient in perpetuity or for a
|
||||
fixed term (regardless of how the transaction is characterized), the
|
||||
Corresponding Source conveyed under this section must be accompanied
|
||||
by the Installation Information. But this requirement does not apply
|
||||
if neither you nor any third party retains the ability to install
|
||||
modified object code on the User Product (for example, the work has
|
||||
been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a
|
||||
requirement to continue to provide support service, warranty, or updates
|
||||
for a work that has been modified or installed by the recipient, or for
|
||||
the User Product in which it has been modified or installed. Access to a
|
||||
network may be denied when the modification itself materially and
|
||||
adversely affects the operation of the network or violates the rules and
|
||||
protocols for communication across the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided,
|
||||
in accord with this section must be in a format that is publicly
|
||||
documented (and with an implementation available to the public in
|
||||
source code form), and must require no special password or key for
|
||||
unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
|
||||
"Additional permissions" are terms that supplement the terms of this
|
||||
License by making exceptions from one or more of its conditions.
|
||||
Additional permissions that are applicable to the entire Program shall
|
||||
be treated as though they were included in this License, to the extent
|
||||
that they are valid under applicable law. If additional permissions
|
||||
apply only to part of the Program, that part may be used separately
|
||||
under those permissions, but the entire Program remains governed by
|
||||
this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option
|
||||
remove any additional permissions from that copy, or from any part of
|
||||
it. (Additional permissions may be written to require their own
|
||||
removal in certain cases when you modify the work.) You may place
|
||||
additional permissions on material, added by you to a covered work,
|
||||
for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you
|
||||
add to a covered work, you may (if authorized by the copyright holders of
|
||||
that material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the
|
||||
terms of sections 15 and 16 of this License; or
|
||||
|
||||
b) Requiring preservation of specified reasonable legal notices or
|
||||
author attributions in that material or in the Appropriate Legal
|
||||
Notices displayed by works containing it; or
|
||||
|
||||
c) Prohibiting misrepresentation of the origin of that material, or
|
||||
requiring that modified versions of such material be marked in
|
||||
reasonable ways as different from the original version; or
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or
|
||||
authors of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some
|
||||
trade names, trademarks, or service marks; or
|
||||
|
||||
f) Requiring indemnification of licensors and authors of that
|
||||
material by anyone who conveys the material (or modified versions of
|
||||
it) with contractual assumptions of liability to the recipient, for
|
||||
any liability that these contractual assumptions directly impose on
|
||||
those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered "further
|
||||
restrictions" within the meaning of section 10. If the Program as you
|
||||
received it, or any part of it, contains a notice stating that it is
|
||||
governed by this License along with a term that is a further
|
||||
restriction, you may remove that term. If a license document contains
|
||||
a further restriction but permits relicensing or conveying under this
|
||||
License, you may add to a covered work material governed by the terms
|
||||
of that license document, provided that the further restriction does
|
||||
not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you
|
||||
must place, in the relevant source files, a statement of the
|
||||
additional terms that apply to those files, or a notice indicating
|
||||
where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the
|
||||
form of a separately written license, or stated as exceptions;
|
||||
the above requirements apply either way.
|
||||
|
||||
8. Termination.
|
||||
|
||||
You may not propagate or modify a covered work except as expressly
|
||||
provided under this License. Any attempt otherwise to propagate or
|
||||
modify it is void, and will automatically terminate your rights under
|
||||
this License (including any patent licenses granted under the third
|
||||
paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your
|
||||
license from a particular copyright holder is reinstated (a)
|
||||
provisionally, unless and until the copyright holder explicitly and
|
||||
finally terminates your license, and (b) permanently, if the copyright
|
||||
holder fails to notify you of the violation by some reasonable means
|
||||
prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is
|
||||
reinstated permanently if the copyright holder notifies you of the
|
||||
violation by some reasonable means, this is the first time you have
|
||||
received notice of violation of this License (for any work) from that
|
||||
copyright holder, and you cure the violation prior to 30 days after
|
||||
your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the
|
||||
licenses of parties who have received copies or rights from you under
|
||||
this License. If your rights have been terminated and not permanently
|
||||
reinstated, you do not qualify to receive new licenses for the same
|
||||
material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
|
||||
You are not required to accept this License in order to receive or
|
||||
run a copy of the Program. Ancillary propagation of a covered work
|
||||
occurring solely as a consequence of using peer-to-peer transmission
|
||||
to receive a copy likewise does not require acceptance. However,
|
||||
nothing other than this License grants you permission to propagate or
|
||||
modify any covered work. These actions infringe copyright if you do
|
||||
not accept this License. Therefore, by modifying or propagating a
|
||||
covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
|
||||
Each time you convey a covered work, the recipient automatically
|
||||
receives a license from the original licensors, to run, modify and
|
||||
propagate that work, subject to this License. You are not responsible
|
||||
for enforcing compliance by third parties with this License.
|
||||
|
||||
An "entity transaction" is a transaction transferring control of an
|
||||
organization, or substantially all assets of one, or subdividing an
|
||||
organization, or merging organizations. If propagation of a covered
|
||||
work results from an entity transaction, each party to that
|
||||
transaction who receives a copy of the work also receives whatever
|
||||
licenses to the work the party's predecessor in interest had or could
|
||||
give under the previous paragraph, plus a right to possession of the
|
||||
Corresponding Source of the work from the predecessor in interest, if
|
||||
the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the
|
||||
rights granted or affirmed under this License. For example, you may
|
||||
not impose a license fee, royalty, or other charge for exercise of
|
||||
rights granted under this License, and you may not initiate litigation
|
||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||
any patent claim is infringed by making, using, selling, offering for
|
||||
sale, or importing the Program or any portion of it.
|
||||
|
||||
11. Patents.
|
||||
|
||||
A "contributor" is a copyright holder who authorizes use under this
|
||||
License of the Program or a work on which the Program is based. The
|
||||
work thus licensed is called the contributor's "contributor version".
|
||||
|
||||
A contributor's "essential patent claims" are all patent claims
|
||||
owned or controlled by the contributor, whether already acquired or
|
||||
hereafter acquired, that would be infringed by some manner, permitted
|
||||
by this License, of making, using, or selling its contributor version,
|
||||
but do not include claims that would be infringed only as a
|
||||
consequence of further modification of the contributor version. For
|
||||
purposes of this definition, "control" includes the right to grant
|
||||
patent sublicenses in a manner consistent with the requirements of
|
||||
this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||
patent license under the contributor's essential patent claims, to
|
||||
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||
propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a "patent license" is any express
|
||||
agreement or commitment, however denominated, not to enforce a patent
|
||||
(such as an express permission to practice a patent or covenant not to
|
||||
sue for patent infringement). To "grant" such a patent license to a
|
||||
party means to make such an agreement or commitment not to enforce a
|
||||
patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license,
|
||||
and the Corresponding Source of the work is not available for anyone
|
||||
to copy, free of charge and under the terms of this License, through a
|
||||
publicly available network server or other readily accessible means,
|
||||
then you must either (1) cause the Corresponding Source to be so
|
||||
available, or (2) arrange to deprive yourself of the benefit of the
|
||||
patent license for this particular work, or (3) arrange, in a manner
|
||||
consistent with the requirements of this License, to extend the patent
|
||||
license to downstream recipients. "Knowingly relying" means you have
|
||||
actual knowledge that, but for the patent license, your conveying the
|
||||
covered work in a country, or your recipient's use of the covered work
|
||||
in a country, would infringe one or more identifiable patents in that
|
||||
country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or
|
||||
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||
covered work, and grant a patent license to some of the parties
|
||||
receiving the covered work authorizing them to use, propagate, modify
|
||||
or convey a specific copy of the covered work, then the patent license
|
||||
you grant is automatically extended to all recipients of the covered
|
||||
work and works based on it.
|
||||
|
||||
A patent license is "discriminatory" if it does not include within
|
||||
the scope of its coverage, prohibits the exercise of, or is
|
||||
conditioned on the non-exercise of one or more of the rights that are
|
||||
specifically granted under this License. You may not convey a covered
|
||||
work if you are a party to an arrangement with a third party that is
|
||||
in the business of distributing software, under which you make payment
|
||||
to the third party based on the extent of your activity of conveying
|
||||
the work, and under which the third party grants, to any of the
|
||||
parties who would receive the covered work from you, a discriminatory
|
||||
patent license (a) in connection with copies of the covered work
|
||||
conveyed by you (or copies made from those copies), or (b) primarily
|
||||
for and in connection with specific products or compilations that
|
||||
contain the covered work, unless you entered into that arrangement,
|
||||
or that patent license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting
|
||||
any implied license or other defenses to infringement that may
|
||||
otherwise be available to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
|
||||
If conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot convey a
|
||||
covered work so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you may
|
||||
not convey it at all. For example, if you agree to terms that obligate you
|
||||
to collect a royalty for further conveying from those to whom you convey
|
||||
the Program, the only way you could satisfy both those terms and this
|
||||
License would be to refrain entirely from conveying the Program.
|
||||
|
||||
13. Remote Network Interaction; Use with the GNU General Public License.
|
||||
|
||||
Notwithstanding any other provision of this License, if you modify the
|
||||
Program, your modified version must prominently offer all users
|
||||
interacting with it remotely through a computer network (if your version
|
||||
supports such interaction) an opportunity to receive the Corresponding
|
||||
Source of your version by providing access to the Corresponding Source
|
||||
from a network server at no charge, through some standard or customary
|
||||
means of facilitating copying of software. This Corresponding Source
|
||||
shall include the Corresponding Source for any work covered by version 3
|
||||
of the GNU General Public License that is incorporated pursuant to the
|
||||
following paragraph.
|
||||
|
||||
Notwithstanding any other provision of this License, you have
|
||||
permission to link or combine any covered work with a work licensed
|
||||
under version 3 of the GNU General Public License into a single
|
||||
combined work, and to convey the resulting work. The terms of this
|
||||
License will continue to apply to the part which is the covered work,
|
||||
but the work with which it is combined will remain governed by version
|
||||
3 of the GNU General Public License.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions of
|
||||
the GNU Affero General Public License from time to time. Such new versions
|
||||
will be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the
|
||||
Program specifies that a certain numbered version of the GNU Affero General
|
||||
Public License "or any later version" applies to it, you have the
|
||||
option of following the terms and conditions either of that numbered
|
||||
version or of any later version published by the Free Software
|
||||
Foundation. If the Program does not specify a version number of the
|
||||
GNU Affero General Public License, you may choose any version ever published
|
||||
by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future
|
||||
versions of the GNU Affero General Public License can be used, that proxy's
|
||||
public statement of acceptance of a version permanently authorizes you
|
||||
to choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different
|
||||
permissions. However, no additional obligations are imposed on any
|
||||
author or copyright holder as a result of your choosing to follow a
|
||||
later version.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. Limitation of Liability.
|
||||
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGES.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
|
||||
If the disclaimer of warranty and limitation of liability provided
|
||||
above cannot be given local legal effect according to their terms,
|
||||
reviewing courts shall apply local law that most closely approximates
|
||||
an absolute waiver of all civil liability in connection with the
|
||||
Program, unless a warranty or assumption of liability accompanies a
|
||||
copy of the Program in return for a fee.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
state the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as published
|
||||
by the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If your software can interact with users remotely through a computer
|
||||
network, you should also make sure that it provides a way for users to
|
||||
get its source. For example, if your program is a web application, its
|
||||
interface could display a "Source" link that leads users to an archive
|
||||
of the code. There are many ways you could offer source, and different
|
||||
solutions will be better for different programs; see section 13 for the
|
||||
specific requirements.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school,
|
||||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||
For more information on this, and how to apply and follow the GNU AGPL, see
|
||||
<https://www.gnu.org/licenses/>.
|
||||
|
||||
45
README.md
@ -1,3 +1,46 @@
|
||||
# qinglong_app
|
||||
|
||||
基于[qinglong](https://github.com/whyour/qinglong)API的三方客户端
|
||||
版本更新通知 https://t.me/qinglongapp
|
||||
|
||||
仅供学习交流, 禁止用于任何商业用途
|
||||
|
||||
基于[qinglong](https://github.com/whyour/qinglong)API实现的三方客户端,采用Flutter编写 (API基于v2.10.13)
|
||||
|
||||
Android端去[release](https://github.com/qinglong-app/qinglong_app/releases)下载
|
||||
|
||||
iOS端暂无上架打算,用户自行下载main分支源码编译安装
|
||||
|
||||
|
||||
<p float="left">
|
||||
<img src="./art/14.jpg" width="200" />
|
||||
<img src="./art/1.jpg" width="200" />
|
||||
<img src="./art/9.jpg" width="200" />
|
||||
</p>
|
||||
<p float="left">
|
||||
<img src="./art/10.jpg" width="200" />
|
||||
<img src="./art/11.jpg" width="200" />
|
||||
<img src="./art/12.jpg" width="200" />
|
||||
</p>
|
||||
<p float="left">
|
||||
<img src="./art/2.jpg" width="200" />
|
||||
<img src="./art/3.jpg" width="200" />
|
||||
<img src="./art/4.jpg" width="200" />
|
||||
</p>
|
||||
|
||||
<p float="left">
|
||||
<img src="./art/5.jpg" width="200" />
|
||||
<img src="./art/6.jpg" width="200" />
|
||||
<img src="./art/7.jpg" width="200" />
|
||||
</p>
|
||||
|
||||
<p float="left">
|
||||
<img src="./art/13.jpg" width="200" />
|
||||
<img src="./art/8.jpg" width="200" />
|
||||
</p>
|
||||
|
||||
## [更新记录](./CHANGELOG.md)
|
||||
|
||||
|
||||
### 不支持的功能
|
||||
>* 应用设置
|
||||
>* 通知设置
|
||||
|
||||
@ -1,30 +1,37 @@
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="work.master.qinglongapp">
|
||||
|
||||
<uses-permission android:name="android.permission.INTERNET"/>
|
||||
<application
|
||||
android:label="青龙"
|
||||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
<queries>
|
||||
<intent>
|
||||
<action android:name="android.intent.action.VIEW" />
|
||||
<data android:scheme="https" />
|
||||
</intent>
|
||||
|
||||
</queries>
|
||||
<application
|
||||
android:name="${applicationName}"
|
||||
android:icon="@mipmap/ic_launcher">
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:label="青龙">
|
||||
<activity
|
||||
android:name=".MainActivity"
|
||||
android:exported="true"
|
||||
android:launchMode="singleTop"
|
||||
android:theme="@style/LaunchTheme"
|
||||
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
|
||||
android:exported="true"
|
||||
android:hardwareAccelerated="true"
|
||||
android:launchMode="singleTop"
|
||||
android:screenOrientation="portrait"
|
||||
android:theme="@style/LaunchTheme"
|
||||
android:windowSoftInputMode="adjustResize">
|
||||
<!-- Specifies an Android theme to apply to this Activity as soon as
|
||||
the Android process has started. This theme is visible to the user
|
||||
while the Flutter UI initializes. After that, this theme continues
|
||||
to determine the Window background behind the Flutter UI. -->
|
||||
<meta-data
|
||||
android:name="io.flutter.embedding.android.NormalTheme"
|
||||
android:resource="@style/NormalTheme"
|
||||
/>
|
||||
android:name="io.flutter.embedding.android.NormalTheme"
|
||||
android:resource="@style/NormalTheme" />
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN"/>
|
||||
<category android:name="android.intent.category.LAUNCHER"/>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
<!-- Don't delete the meta-data below.
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
buildscript {
|
||||
ext.kotlin_version = '1.3.50'
|
||||
ext.kotlin_version = '1.6.10'
|
||||
repositories {
|
||||
google()
|
||||
mavenCentral()
|
||||
|
||||
BIN
apk/app-release-v1.0.6.apk
Normal file
BIN
art/10.jpg
Normal file
|
After Width: | Height: | Size: 200 KiB |
BIN
art/11.jpg
Normal file
|
After Width: | Height: | Size: 190 KiB |
BIN
art/12.jpg
Normal file
|
After Width: | Height: | Size: 301 KiB |
BIN
art/13.jpg
Normal file
|
After Width: | Height: | Size: 111 KiB |
BIN
art/14.jpg
Normal file
|
After Width: | Height: | Size: 168 KiB |
BIN
assets/images/chun.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
assets/images/kuai.png
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
assets/images/le.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
assets/images/ql_white.png
Normal file
|
After Width: | Height: | Size: 62 KiB |
BIN
assets/images/update_bg_app_top.png
Normal file
|
After Width: | Height: | Size: 9.7 KiB |
BIN
assets/images/update_ic_close.png
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
assets/images/xin.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
53
ios/Podfile.lock
Normal file
@ -0,0 +1,53 @@
|
||||
PODS:
|
||||
- Flutter (1.0.0)
|
||||
- fluttertoast (0.0.2):
|
||||
- Flutter
|
||||
- Toast
|
||||
- move_to_background (0.0.1):
|
||||
- Flutter
|
||||
- package_info_plus (0.4.5):
|
||||
- Flutter
|
||||
- shared_preferences_ios (0.0.1):
|
||||
- Flutter
|
||||
- Toast (4.0.0)
|
||||
- url_launcher_ios (0.0.1):
|
||||
- Flutter
|
||||
|
||||
DEPENDENCIES:
|
||||
- Flutter (from `Flutter`)
|
||||
- fluttertoast (from `.symlinks/plugins/fluttertoast/ios`)
|
||||
- move_to_background (from `.symlinks/plugins/move_to_background/ios`)
|
||||
- package_info_plus (from `.symlinks/plugins/package_info_plus/ios`)
|
||||
- shared_preferences_ios (from `.symlinks/plugins/shared_preferences_ios/ios`)
|
||||
- url_launcher_ios (from `.symlinks/plugins/url_launcher_ios/ios`)
|
||||
|
||||
SPEC REPOS:
|
||||
trunk:
|
||||
- Toast
|
||||
|
||||
EXTERNAL SOURCES:
|
||||
Flutter:
|
||||
:path: Flutter
|
||||
fluttertoast:
|
||||
:path: ".symlinks/plugins/fluttertoast/ios"
|
||||
move_to_background:
|
||||
:path: ".symlinks/plugins/move_to_background/ios"
|
||||
package_info_plus:
|
||||
:path: ".symlinks/plugins/package_info_plus/ios"
|
||||
shared_preferences_ios:
|
||||
:path: ".symlinks/plugins/shared_preferences_ios/ios"
|
||||
url_launcher_ios:
|
||||
:path: ".symlinks/plugins/url_launcher_ios/ios"
|
||||
|
||||
SPEC CHECKSUMS:
|
||||
Flutter: 50d75fe2f02b26cc09d224853bb45737f8b3214a
|
||||
fluttertoast: 6122fa75143e992b1d3470f61000f591a798cc58
|
||||
move_to_background: 39a5b79b26d577b0372cbe8a8c55e7aa9fcd3a2d
|
||||
package_info_plus: 6c92f08e1f853dc01228d6f553146438dafcd14e
|
||||
shared_preferences_ios: aef470a42dc4675a1cdd50e3158b42e3d1232b32
|
||||
Toast: 91b396c56ee72a5790816f40d3a94dd357abc196
|
||||
url_launcher_ios: 02f1989d4e14e998335b02b67a7590fa34f971af
|
||||
|
||||
PODFILE CHECKSUM: aea2ed8a4b05dec076f6f7cea39202b1133ed51c
|
||||
|
||||
COCOAPODS: 1.11.2
|
||||
@ -0,0 +1,78 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Scheme
|
||||
LastUpgradeVersion = "1320"
|
||||
version = "1.3">
|
||||
<BuildAction
|
||||
parallelizeBuildables = "YES"
|
||||
buildImplicitDependencies = "YES">
|
||||
<BuildActionEntries>
|
||||
<BuildActionEntry
|
||||
buildForTesting = "YES"
|
||||
buildForRunning = "YES"
|
||||
buildForProfiling = "YES"
|
||||
buildForArchiving = "YES"
|
||||
buildForAnalyzing = "YES">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
|
||||
BuildableName = "Runner.app"
|
||||
BlueprintName = "Runner"
|
||||
ReferencedContainer = "container:Runner.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildActionEntry>
|
||||
</BuildActionEntries>
|
||||
</BuildAction>
|
||||
<TestAction
|
||||
buildConfiguration = "Debug"
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
shouldUseLaunchSchemeArgsEnv = "YES">
|
||||
<Testables>
|
||||
</Testables>
|
||||
</TestAction>
|
||||
<LaunchAction
|
||||
buildConfiguration = "Debug"
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
launchStyle = "0"
|
||||
useCustomWorkingDirectory = "NO"
|
||||
ignoresPersistentStateOnLaunch = "NO"
|
||||
debugDocumentVersioning = "YES"
|
||||
debugServiceExtension = "internal"
|
||||
allowLocationSimulation = "YES">
|
||||
<BuildableProductRunnable
|
||||
runnableDebuggingMode = "0">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
|
||||
BuildableName = "Runner.app"
|
||||
BlueprintName = "Runner"
|
||||
ReferencedContainer = "container:Runner.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildableProductRunnable>
|
||||
</LaunchAction>
|
||||
<ProfileAction
|
||||
buildConfiguration = "Release"
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
savedToolIdentifier = ""
|
||||
useCustomWorkingDirectory = "NO"
|
||||
debugDocumentVersioning = "YES">
|
||||
<BuildableProductRunnable
|
||||
runnableDebuggingMode = "0">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
|
||||
BuildableName = "Runner.app"
|
||||
BlueprintName = "Runner"
|
||||
ReferencedContainer = "container:Runner.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildableProductRunnable>
|
||||
</ProfileAction>
|
||||
<AnalyzeAction
|
||||
buildConfiguration = "Debug">
|
||||
</AnalyzeAction>
|
||||
<ArchiveAction
|
||||
buildConfiguration = "Release"
|
||||
revealArchiveInOrganizer = "YES">
|
||||
</ArchiveAction>
|
||||
</Scheme>
|
||||
|
Before Width: | Height: | Size: 1.2 MiB After Width: | Height: | Size: 647 KiB |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 3.5 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 6.7 KiB |
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 6.3 KiB |
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 3.5 KiB |
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 20 KiB |
|
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 20 KiB |
|
Before Width: | Height: | Size: 70 KiB After Width: | Height: | Size: 40 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 9.7 KiB |
|
Before Width: | Height: | Size: 53 KiB After Width: | Height: | Size: 30 KiB |
|
Before Width: | Height: | Size: 62 KiB After Width: | Height: | Size: 35 KiB |
@ -28,6 +28,11 @@
|
||||
<string>LaunchScreen</string>
|
||||
<key>UIMainStoryboardFile</key>
|
||||
<string>Main</string>
|
||||
<key>LSApplicationQueriesSchemes</key>
|
||||
<array>
|
||||
<string>https</string>
|
||||
<string>http</string>
|
||||
</array>
|
||||
<key>UISupportedInterfaceOrientations</key>
|
||||
<array>
|
||||
<string>UIInterfaceOrientationPortrait</string>
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:qinglong_app/base/ui/lazy_load_state.dart';
|
||||
import 'package:qinglong_app/utils/extension.dart';
|
||||
import 'base_viewmodel.dart';
|
||||
|
||||
@ -8,6 +9,7 @@ class BaseStateWidget<T extends BaseViewModel> extends ConsumerStatefulWidget {
|
||||
final ProviderBase<T> model;
|
||||
final Widget? child;
|
||||
final Function(T)? onReady;
|
||||
final bool lazyLoad;
|
||||
|
||||
const BaseStateWidget({
|
||||
Key? key,
|
||||
@ -15,26 +17,14 @@ class BaseStateWidget<T extends BaseViewModel> extends ConsumerStatefulWidget {
|
||||
required this.model,
|
||||
this.child,
|
||||
this.onReady,
|
||||
this.lazyLoad = false,
|
||||
}) : super(key: key);
|
||||
|
||||
@override
|
||||
_BaseStateWidgetState<T> createState() => _BaseStateWidgetState<T>();
|
||||
}
|
||||
|
||||
class _BaseStateWidgetState<T extends BaseViewModel>
|
||||
extends ConsumerState<BaseStateWidget<T>> {
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
WidgetsBinding.instance?.addPostFrameCallback(
|
||||
(timeStamp) {
|
||||
if (widget.onReady != null) {
|
||||
widget.onReady!(ref.read<T>(widget.model));
|
||||
}
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
class _BaseStateWidgetState<T extends BaseViewModel> extends ConsumerState<BaseStateWidget<T>> with LazyLoadState<BaseStateWidget<T>> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
var viewModel = ref.watch<T>(widget.model);
|
||||
@ -65,32 +55,27 @@ class _BaseStateWidgetState<T extends BaseViewModel>
|
||||
if (viewModel.currentState == PageState.EMPTY) {
|
||||
return Container(
|
||||
alignment: Alignment.center,
|
||||
child: Text("暂无数据"),
|
||||
child: const Text("暂无数据"),
|
||||
);
|
||||
}
|
||||
|
||||
return Container();
|
||||
}
|
||||
}
|
||||
|
||||
abstract class BaseState<T extends StatefulWidget> extends State {
|
||||
late T parent;
|
||||
@override
|
||||
void onLazyLoad() {
|
||||
if (widget.onReady != null && widget.lazyLoad) {
|
||||
widget.onReady!(ref.read<T>(widget.model));
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
parent = widget as T;
|
||||
super.initState();
|
||||
WidgetsBinding.instance?.endOfFrame.then((_) {
|
||||
firstFrameCalled();
|
||||
WidgetsBinding.instance?.addPostFrameCallback((timeStamp) {
|
||||
if (widget.onReady != null && !widget.lazyLoad) {
|
||||
widget.onReady!(ref.read<T>(widget.model));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
void firstFrameCalled() {}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return buildWidgets(context);
|
||||
}
|
||||
|
||||
Widget buildWidgets(BuildContext context);
|
||||
}
|
||||
|
||||
@ -2,18 +2,20 @@ import 'package:qinglong_app/base/http/http.dart';
|
||||
import 'package:qinglong_app/module/config/config_bean.dart';
|
||||
import 'package:qinglong_app/module/env/env_bean.dart';
|
||||
import 'package:qinglong_app/module/login/login_bean.dart';
|
||||
import 'package:qinglong_app/module/login/user_bean.dart';
|
||||
import 'package:qinglong_app/module/others/dependencies/dependency_bean.dart';
|
||||
import 'package:qinglong_app/module/others/login_log/login_log_bean.dart';
|
||||
import 'package:qinglong_app/module/others/scripts/script_bean.dart';
|
||||
import 'package:qinglong_app/module/others/task_log/task_log_bean.dart';
|
||||
import 'package:qinglong_app/module/task/task_bean.dart';
|
||||
import 'package:qinglong_app/module/task/task_detail/task_detail_bean.dart';
|
||||
|
||||
import 'url.dart';
|
||||
|
||||
class Api {
|
||||
static Future<HttpResponse<LoginBean>> login(
|
||||
String userName, String passWord) async {
|
||||
String userName,
|
||||
String passWord,
|
||||
) async {
|
||||
return await Http.post<LoginBean>(
|
||||
Url.login,
|
||||
{
|
||||
@ -22,6 +24,52 @@ class Api {
|
||||
},
|
||||
);
|
||||
}
|
||||
static Future<HttpResponse<LoginBean>> loginOld(
|
||||
String userName,
|
||||
String passWord,
|
||||
) async {
|
||||
return await Http.post<LoginBean>(
|
||||
Url.loginOld,
|
||||
{
|
||||
"username": userName,
|
||||
"password": passWord,
|
||||
},
|
||||
);
|
||||
}
|
||||
static Future<HttpResponse<LoginBean>> loginTwo(
|
||||
String userName,
|
||||
String passWord,
|
||||
String code,
|
||||
) async {
|
||||
return await Http.put<LoginBean>(
|
||||
Url.loginTwo,
|
||||
{
|
||||
"username": userName,
|
||||
"password": passWord,
|
||||
"code": code,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
static Future<HttpResponse<LoginBean>> loginByClientId(
|
||||
String id,
|
||||
String secret,
|
||||
) async {
|
||||
return await Http.get<LoginBean>(
|
||||
Url.loginByClientId,
|
||||
{
|
||||
"client_id": id,
|
||||
"client_secret": secret,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
static Future<HttpResponse<UserBean>> user() async {
|
||||
return await Http.get<UserBean>(
|
||||
Url.user,
|
||||
null,
|
||||
);
|
||||
}
|
||||
|
||||
static Future<HttpResponse<List<TaskBean>>> crons() async {
|
||||
return await Http.get<List<TaskBean>>(
|
||||
@ -30,22 +78,30 @@ class Api {
|
||||
);
|
||||
}
|
||||
|
||||
static Future<HttpResponse<NullResponse>> startTasks(
|
||||
List<String> crons) async {
|
||||
static Future<HttpResponse<NullResponse>> startTasks(List<String> crons) async {
|
||||
return await Http.put<NullResponse>(
|
||||
Url.runTasks,
|
||||
crons,
|
||||
);
|
||||
}
|
||||
|
||||
static Future<HttpResponse<NullResponse>> stopTasks(
|
||||
List<String> crons) async {
|
||||
static Future<HttpResponse<NullResponse>> stopTasks(List<String> crons) async {
|
||||
return await Http.put<NullResponse>(
|
||||
Url.runTasks,
|
||||
Url.stopTasks,
|
||||
crons,
|
||||
);
|
||||
}
|
||||
|
||||
static Future<HttpResponse<NullResponse>> updatePassword(String name, String password) async {
|
||||
return await Http.put<NullResponse>(
|
||||
Url.updatePassword,
|
||||
{
|
||||
"username": name,
|
||||
"password": password,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
static Future<HttpResponse<String>> inTimeLog(String cron) async {
|
||||
return await Http.get<String>(
|
||||
Url.intimeLog(cron),
|
||||
@ -53,26 +109,17 @@ class Api {
|
||||
);
|
||||
}
|
||||
|
||||
static Future<HttpResponse<TaskDetailBean>> taskDetail(String cron) async {
|
||||
return await Http.get<TaskDetailBean>(
|
||||
Url.taskDetail + cron,
|
||||
null,
|
||||
);
|
||||
}
|
||||
|
||||
static Future<HttpResponse<TaskDetailBean>> addTask(
|
||||
String name, String command, String cron,
|
||||
{String? id}) async {
|
||||
static Future<HttpResponse<NullResponse>> addTask(String name, String command, String cron, {String? id}) async {
|
||||
var data = {"name": name, "command": command, "schedule": cron};
|
||||
|
||||
if (id != null) {
|
||||
data["_id"] = id;
|
||||
return await Http.put<TaskDetailBean>(
|
||||
return await Http.put<NullResponse>(
|
||||
Url.addTask,
|
||||
data,
|
||||
);
|
||||
}
|
||||
return await Http.post<TaskDetailBean>(
|
||||
return await Http.post<NullResponse>(
|
||||
Url.addTask,
|
||||
data,
|
||||
);
|
||||
@ -127,8 +174,7 @@ class Api {
|
||||
);
|
||||
}
|
||||
|
||||
static Future<HttpResponse<NullResponse>> saveFile(
|
||||
String name, String content) async {
|
||||
static Future<HttpResponse<NullResponse>> saveFile(String name, String content) async {
|
||||
return await Http.post<NullResponse>(
|
||||
Url.saveFile,
|
||||
{"content": content, "name": name},
|
||||
@ -163,9 +209,7 @@ class Api {
|
||||
);
|
||||
}
|
||||
|
||||
static Future<HttpResponse<NullResponse>> addEnv(
|
||||
String name, String value, String remarks,
|
||||
{String? id}) async {
|
||||
static Future<HttpResponse<NullResponse>> addEnv(String name, String value, String remarks, {String? id}) async {
|
||||
var data = {
|
||||
"value": value,
|
||||
"remarks": remarks,
|
||||
@ -185,8 +229,7 @@ class Api {
|
||||
);
|
||||
}
|
||||
|
||||
static Future<HttpResponse<NullResponse>> moveEnv(
|
||||
String id, int fromIndex, int toIndex) async {
|
||||
static Future<HttpResponse<NullResponse>> moveEnv(String id, int fromIndex, int toIndex) async {
|
||||
return await Http.put<NullResponse>(
|
||||
Url.envMove(id),
|
||||
{"fromIndex": fromIndex, "toIndex": toIndex},
|
||||
@ -201,8 +244,7 @@ class Api {
|
||||
}
|
||||
|
||||
static Future<HttpResponse<List<TaskLogBean>>> taskLog() async {
|
||||
return await Http.get<List<TaskLogBean>>(Url.taskLog, null,
|
||||
serializationName: "dirs");
|
||||
return await Http.get<List<TaskLogBean>>(Url.taskLog, null, serializationName: "dirs");
|
||||
}
|
||||
|
||||
static Future<HttpResponse<String>> taskLogDetail(String name) async {
|
||||
@ -219,8 +261,28 @@ class Api {
|
||||
);
|
||||
}
|
||||
|
||||
static Future<HttpResponse<String>> scriptDetail(
|
||||
String name, String? path) async {
|
||||
static Future<HttpResponse<NullResponse>> updateScript(String name, String path, String content) async {
|
||||
return await Http.put<NullResponse>(
|
||||
Url.scriptDetail,
|
||||
{
|
||||
"filename": name,
|
||||
"path": path,
|
||||
"content": content,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
static Future<HttpResponse<NullResponse>> delScript(String name, String path) async {
|
||||
return await Http.delete<NullResponse>(
|
||||
Url.scriptDetail,
|
||||
{
|
||||
"filename": name,
|
||||
"path": path,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
static Future<HttpResponse<String>> scriptDetail(String name, String? path) async {
|
||||
return await Http.get<String>(
|
||||
Url.scriptDetail + name,
|
||||
{
|
||||
@ -229,8 +291,7 @@ class Api {
|
||||
);
|
||||
}
|
||||
|
||||
static Future<HttpResponse<List<DependencyBean>>> dependencies(
|
||||
String type) async {
|
||||
static Future<HttpResponse<List<DependencyBean>>> dependencies(String type) async {
|
||||
return await Http.get<List<DependencyBean>>(
|
||||
Url.dependencies,
|
||||
{
|
||||
@ -239,8 +300,7 @@ class Api {
|
||||
);
|
||||
}
|
||||
|
||||
static Future<HttpResponse<NullResponse>> dependencyReinstall(
|
||||
String id) async {
|
||||
static Future<HttpResponse<NullResponse>> dependencyReinstall(String id) async {
|
||||
return await Http.put<NullResponse>(
|
||||
Url.dependencies,
|
||||
[id],
|
||||
@ -254,8 +314,7 @@ class Api {
|
||||
);
|
||||
}
|
||||
|
||||
static Future<HttpResponse<NullResponse>> addDependency(
|
||||
String name, int type) async {
|
||||
static Future<HttpResponse<NullResponse>> addDependency(String name, int type) async {
|
||||
return await Http.post<NullResponse>(
|
||||
Url.dependencies,
|
||||
[
|
||||
|
||||
@ -5,16 +5,17 @@ import 'package:dio/dio.dart';
|
||||
import 'package:dio_log/dio_log.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:qinglong_app/base/http/token_interceptor.dart';
|
||||
import 'package:qinglong_app/base/http/url.dart';
|
||||
import 'package:qinglong_app/base/userinfo_viewmodel.dart';
|
||||
import 'package:qinglong_app/utils/QlNavigatorObserver.dart';
|
||||
import 'package:qinglong_app/utils/extension.dart';
|
||||
|
||||
import '../../json.jc.dart';
|
||||
import '../../main.dart';
|
||||
import '../routes.dart';
|
||||
|
||||
class Http {
|
||||
static const int NOT_LOGIN = 1000;
|
||||
static Dio? _dio;
|
||||
static bool pushedLoginPage = false;
|
||||
|
||||
static void initDioConfig(
|
||||
String host,
|
||||
@ -22,9 +23,9 @@ class Http {
|
||||
_dio = Dio(
|
||||
BaseOptions(
|
||||
baseUrl: host,
|
||||
connectTimeout: 5000,
|
||||
receiveTimeout: 5000,
|
||||
sendTimeout: 5000,
|
||||
connectTimeout: 50000,
|
||||
receiveTimeout: 50000,
|
||||
sendTimeout: 50000,
|
||||
contentType: "application/json",
|
||||
),
|
||||
);
|
||||
@ -38,6 +39,10 @@ class Http {
|
||||
}
|
||||
}
|
||||
|
||||
static void clear() {
|
||||
_dio = null;
|
||||
}
|
||||
|
||||
static Future<HttpResponse<T>> get<T>(
|
||||
String uri,
|
||||
Map<String, String?>? json, {
|
||||
@ -50,13 +55,7 @@ class Http {
|
||||
|
||||
return decodeResponse<T>(response, serializationName, compute);
|
||||
} on DioError catch (e) {
|
||||
if (e.response?.statusCode == 401) {
|
||||
exitLogin();
|
||||
}
|
||||
return HttpResponse(
|
||||
success: false,
|
||||
message: e.response?.statusMessage ?? e.message,
|
||||
code: 0);
|
||||
return exceptionHandler<T>(e, uri);
|
||||
}
|
||||
}
|
||||
|
||||
@ -76,13 +75,7 @@ class Http {
|
||||
compute,
|
||||
);
|
||||
} on DioError catch (e) {
|
||||
if (e.response?.statusCode == 401) {
|
||||
exitLogin();
|
||||
}
|
||||
return HttpResponse(
|
||||
success: false,
|
||||
message: e.response?.statusMessage ?? e.message,
|
||||
code: 0);
|
||||
return exceptionHandler<T>(e, uri);
|
||||
}
|
||||
}
|
||||
|
||||
@ -102,13 +95,7 @@ class Http {
|
||||
compute,
|
||||
);
|
||||
} on DioError catch (e) {
|
||||
if (e.response?.statusCode == 401) {
|
||||
exitLogin();
|
||||
}
|
||||
return HttpResponse(
|
||||
success: false,
|
||||
message: e.response?.statusMessage ?? e.message,
|
||||
code: 0);
|
||||
return exceptionHandler<T>(e, uri);
|
||||
}
|
||||
}
|
||||
|
||||
@ -127,22 +114,31 @@ class Http {
|
||||
compute,
|
||||
);
|
||||
} on DioError catch (e) {
|
||||
if (e.response?.statusCode == 401) {
|
||||
exitLogin();
|
||||
}
|
||||
return HttpResponse(
|
||||
success: false,
|
||||
message: e.response?.statusMessage ?? e.message,
|
||||
code: 0);
|
||||
return exceptionHandler<T>(e, uri);
|
||||
}
|
||||
}
|
||||
|
||||
static bool pushedLoginPage = false;
|
||||
|
||||
static void exitLogin() {
|
||||
if (!pushedLoginPage) {
|
||||
"身份已过期,请重新登录".toast();
|
||||
pushedLoginPage = true;
|
||||
navigatorState.currentState?.pushReplacementNamed(Routes.routeLogin);
|
||||
navigatorState.currentState?.pushNamedAndRemoveUntil(Routes.routeLogin, (route) => false);
|
||||
}
|
||||
}
|
||||
|
||||
static HttpResponse<T> exceptionHandler<T>(DioError e, String path) {
|
||||
logger.e(e);
|
||||
if (e.response?.statusCode == 401 && !Url.inWhiteList(path)) {
|
||||
if (!getIt<UserInfoViewModel>().useSecretLogined) {
|
||||
exitLogin();
|
||||
}
|
||||
return HttpResponse(success: false, message: "没有该模块的访问权限", code: 401);
|
||||
}
|
||||
|
||||
if (e.response != null && e.response!.data != null) {
|
||||
return HttpResponse(success: false, message: e.response?.data["message"] ?? e.message, code: e.response?.data["code"] ?? 0);
|
||||
} else {
|
||||
return HttpResponse(success: false, message: e.message, code: e.response?.statusCode ?? 0);
|
||||
}
|
||||
}
|
||||
|
||||
@ -198,7 +194,7 @@ class Http {
|
||||
} else {
|
||||
return HttpResponse<T>(
|
||||
success: false,
|
||||
code: -1000,
|
||||
code: response.data["code"],
|
||||
message: response.data["message"],
|
||||
);
|
||||
}
|
||||
@ -227,8 +223,7 @@ class HttpResponse<T> {
|
||||
late int code;
|
||||
T? bean;
|
||||
|
||||
HttpResponse(
|
||||
{required this.success, this.message, required this.code, this.bean});
|
||||
HttpResponse({required this.success, this.message, required this.code, this.bean});
|
||||
}
|
||||
|
||||
class DeserializeAction<T> {
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
import 'package:dio/dio.dart';
|
||||
import 'package:qinglong_app/base/http/url.dart';
|
||||
import 'package:qinglong_app/main.dart';
|
||||
|
||||
import '../userinfo_viewmodel.dart';
|
||||
@ -6,17 +7,23 @@ import '../userinfo_viewmodel.dart';
|
||||
class TokenInterceptor extends Interceptor {
|
||||
@override
|
||||
void onRequest(RequestOptions options, RequestInterceptorHandler handler) {
|
||||
if (getIt<UserInfoViewModel>().token != null &&
|
||||
getIt<UserInfoViewModel>().token!.isNotEmpty) {
|
||||
options.headers["Authorization"] =
|
||||
"Bearer " + getIt<UserInfoViewModel>().token!;
|
||||
}
|
||||
|
||||
options.headers["User-Agent"] =
|
||||
"Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1";
|
||||
|
||||
options.headers["Content-Type"] = "application/json;charset=UTF-8";
|
||||
options.queryParameters["t"] =
|
||||
(DateTime.now().millisecondsSinceEpoch ~/ 1000).toString();
|
||||
|
||||
if (!Url.inWhiteList(options.path)) {
|
||||
options.queryParameters["t"] =
|
||||
(DateTime.now().millisecondsSinceEpoch ~/ 1000).toString();
|
||||
}
|
||||
|
||||
if (!Url.inLoginList(options.path)) {
|
||||
if (getIt<UserInfoViewModel>().token != null &&
|
||||
getIt<UserInfoViewModel>().token!.isNotEmpty) {
|
||||
options.headers["Authorization"] =
|
||||
"Bearer " + getIt<UserInfoViewModel>().token!;
|
||||
}
|
||||
}
|
||||
return handler.next(options);
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,35 +1,142 @@
|
||||
import '../../main.dart';
|
||||
import '../userinfo_viewmodel.dart';
|
||||
|
||||
class Url {
|
||||
static const login = "/api/user/login";
|
||||
static const tasks = "/api/crons";
|
||||
static const runTasks = "/api/crons/run";
|
||||
static const stopTasks = "/api/crons/stop";
|
||||
static const taskDetail = "/api/crons/";
|
||||
static const addTask = "/api/crons";
|
||||
static const pinTask = "/api/crons/pin";
|
||||
static const unpinTask = "/api/crons/unpin";
|
||||
static const enableTask = "/api/crons/enable";
|
||||
static const disableTask = "/api/crons/disable";
|
||||
static const files = "/api/configs/files";
|
||||
static const configContent = "/api/configs/";
|
||||
static const saveFile = "/api/configs/save";
|
||||
static const envs = "/api/envs";
|
||||
static const addEnv = "/api/envs";
|
||||
static const delEnv = "/api/envs";
|
||||
static const disableEnvs = "/api/envs/disable";
|
||||
static const enableEnvs = "/api/envs/enable";
|
||||
static const loginLog = "/api/user/login-log";
|
||||
static const taskLog = "/api/logs";
|
||||
static const taskLogDetail = "/api/logs/";
|
||||
static const scripts = "/api/scripts/files";
|
||||
static const scriptDetail = "/api/scripts/";
|
||||
static const dependencies = "/api/dependencies";
|
||||
static const dependencyReinstall = "/api/dependencies/reinstall";
|
||||
static get login => "/api/user/login";
|
||||
|
||||
static get loginOld => "/api/login";
|
||||
|
||||
static get loginTwo => "/api/user/two-factor/login";
|
||||
static const loginByClientId = "/open/auth/token";
|
||||
static const user = "/api/user";
|
||||
|
||||
static const updatePassword = "/api/user";
|
||||
|
||||
static get tasks => getIt<UserInfoViewModel>().useSecretLogined
|
||||
? "/open/crons"
|
||||
: "/api/crons";
|
||||
|
||||
static get runTasks => getIt<UserInfoViewModel>().useSecretLogined
|
||||
? "/open/crons/run"
|
||||
: "/api/crons/run";
|
||||
|
||||
static get stopTasks => getIt<UserInfoViewModel>().useSecretLogined
|
||||
? "/open/crons/stop"
|
||||
: "/api/crons/stop";
|
||||
|
||||
static get taskDetail => getIt<UserInfoViewModel>().useSecretLogined
|
||||
? "/open/crons/"
|
||||
: "/api/crons/";
|
||||
|
||||
static get addTask => getIt<UserInfoViewModel>().useSecretLogined
|
||||
? "/open/crons"
|
||||
: "/api/crons";
|
||||
|
||||
static get pinTask => getIt<UserInfoViewModel>().useSecretLogined
|
||||
? "/open/crons/pin"
|
||||
: "/api/crons/pin";
|
||||
|
||||
static get unpinTask => getIt<UserInfoViewModel>().useSecretLogined
|
||||
? "/open/crons/unpin"
|
||||
: "/api/crons/unpin";
|
||||
|
||||
static get enableTask => getIt<UserInfoViewModel>().useSecretLogined
|
||||
? "/open/crons/enable"
|
||||
: "/api/crons/enable";
|
||||
|
||||
static get disableTask => getIt<UserInfoViewModel>().useSecretLogined
|
||||
? "/open/crons/disable"
|
||||
: "/api/crons/disable";
|
||||
|
||||
static get files => getIt<UserInfoViewModel>().useSecretLogined
|
||||
? "/open/configs/files"
|
||||
: "/api/configs/files";
|
||||
|
||||
static get configContent => getIt<UserInfoViewModel>().useSecretLogined
|
||||
? "/open/configs/"
|
||||
: "/api/configs/";
|
||||
|
||||
static get saveFile => getIt<UserInfoViewModel>().useSecretLogined
|
||||
? "/open/configs/save"
|
||||
: "/api/configs/save";
|
||||
|
||||
static get envs =>
|
||||
getIt<UserInfoViewModel>().useSecretLogined ? "/open/envs" : "/api/envs";
|
||||
|
||||
static get addEnv =>
|
||||
getIt<UserInfoViewModel>().useSecretLogined ? "/open/envs" : "/api/envs";
|
||||
|
||||
static get delEnv =>
|
||||
getIt<UserInfoViewModel>().useSecretLogined ? "/open/envs" : "/api/envs";
|
||||
|
||||
static get disableEnvs => getIt<UserInfoViewModel>().useSecretLogined
|
||||
? "/open/envs/disable"
|
||||
: "/api/envs/disable";
|
||||
|
||||
static get enableEnvs => getIt<UserInfoViewModel>().useSecretLogined
|
||||
? "/open/envs/enable"
|
||||
: "/api/envs/enable";
|
||||
|
||||
static get loginLog => getIt<UserInfoViewModel>().useSecretLogined
|
||||
? "/open/user/login-log"
|
||||
: "/api/user/login-log";
|
||||
|
||||
static get taskLog =>
|
||||
getIt<UserInfoViewModel>().useSecretLogined ? "/open/logs" : "/api/logs";
|
||||
|
||||
static get taskLogDetail => getIt<UserInfoViewModel>().useSecretLogined
|
||||
? "/open/logs/"
|
||||
: "/api/logs/";
|
||||
|
||||
static get scripts => getIt<UserInfoViewModel>().useSecretLogined
|
||||
? "/open/scripts/files"
|
||||
: "/api/scripts/files";
|
||||
|
||||
static get scriptUpdate => getIt<UserInfoViewModel>().useSecretLogined
|
||||
? "/open/scripts"
|
||||
: "/api/scripts";
|
||||
|
||||
static get scriptDetail => getIt<UserInfoViewModel>().useSecretLogined
|
||||
? "/open/scripts/"
|
||||
: "/api/scripts/";
|
||||
|
||||
static get dependencies => getIt<UserInfoViewModel>().useSecretLogined
|
||||
? "/open/dependencies"
|
||||
: "/api/dependencies";
|
||||
|
||||
static get dependencyReinstall => getIt<UserInfoViewModel>().useSecretLogined
|
||||
? "/open/dependencies/reinstall"
|
||||
: "/api/dependencies/reinstall";
|
||||
|
||||
static intimeLog(String cronId) {
|
||||
return "/api/crons/$cronId/log";
|
||||
return getIt<UserInfoViewModel>().useSecretLogined
|
||||
? "/open/crons/$cronId/log"
|
||||
: "/api/crons/$cronId/log";
|
||||
}
|
||||
|
||||
static envMove(String envId) {
|
||||
return "/api/envs/$envId/move";
|
||||
return getIt<UserInfoViewModel>().useSecretLogined
|
||||
? "/open/envs/$envId/move"
|
||||
: "/api/envs/$envId/move";
|
||||
}
|
||||
|
||||
static bool inWhiteList(String path) {
|
||||
if (path == login ||
|
||||
path == loginByClientId ||
|
||||
path == loginTwo ||
|
||||
path == loginOld) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
static bool inLoginList(String path) {
|
||||
if (path == login || path == loginByClientId || path == loginOld) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
static String checkUpdateUrl =
|
||||
"https://raw.githubusercontent.com/qinglong-app/qinglong_app/main/version";
|
||||
}
|
||||
|
||||
@ -20,16 +20,23 @@ class QlAppBar extends StatelessWidget with PreferredSizeWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
Widget back = backWidget ??
|
||||
GestureDetector(
|
||||
InkWell(
|
||||
onTap: () {
|
||||
if (backCall != null) {
|
||||
backCall!();
|
||||
} else {
|
||||
Navigator.of(context).pop();
|
||||
}
|
||||
},
|
||||
child: const Center(
|
||||
child: Icon(
|
||||
CupertinoIcons.left_chevron,
|
||||
color: Colors.white,
|
||||
child: const Padding(
|
||||
padding: EdgeInsets.symmetric(
|
||||
horizontal: 15,
|
||||
),
|
||||
child: Center(
|
||||
child: Icon(
|
||||
CupertinoIcons.left_chevron,
|
||||
color: Colors.white,
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
@ -3,22 +3,31 @@ import 'package:flutter/material.dart';
|
||||
import 'package:qinglong_app/module/config/config_edit_page.dart';
|
||||
import 'package:qinglong_app/module/env/add_env_page.dart';
|
||||
import 'package:qinglong_app/module/env/env_bean.dart';
|
||||
import 'package:qinglong_app/module/env/env_detail_page.dart';
|
||||
import 'package:qinglong_app/module/home/home_page.dart';
|
||||
import 'package:qinglong_app/module/login/login_page.dart';
|
||||
import 'package:qinglong_app/module/others/about_page.dart';
|
||||
import 'package:qinglong_app/module/others/change_account_page.dart';
|
||||
import 'package:qinglong_app/module/others/dependencies/add_dependency_page.dart';
|
||||
import 'package:qinglong_app/module/others/dependencies/dependency_page.dart';
|
||||
import 'package:qinglong_app/module/others/login_log/login_log_page.dart';
|
||||
import 'package:qinglong_app/module/others/scripts/script_detail_page.dart';
|
||||
import 'package:qinglong_app/module/others/scripts/script_edit_page.dart';
|
||||
import 'package:qinglong_app/module/others/scripts/script_page.dart';
|
||||
import 'package:qinglong_app/module/others/task_log/task_log_detail_page.dart';
|
||||
import 'package:qinglong_app/module/others/task_log/task_log_page.dart';
|
||||
import 'package:qinglong_app/module/others/theme_page.dart';
|
||||
import 'package:qinglong_app/module/others/update_password_page.dart';
|
||||
import 'package:qinglong_app/module/task/add_task_page.dart';
|
||||
import 'package:qinglong_app/module/task/task_bean.dart';
|
||||
import 'package:qinglong_app/module/task/task_detail/task_detail_page.dart';
|
||||
|
||||
class Routes {
|
||||
static const String routeHomePage = "/home/homepage";
|
||||
static const String routeLogin = "/login";
|
||||
static const String routeAddTask = "/task/add";
|
||||
static const String routeTaskDetail = "/task/detail";
|
||||
static const String routeEnvDetail = "/env/detail";
|
||||
static const String routeAddDependency = "/task/dependency";
|
||||
static const String routeAddEnv = "/env/add";
|
||||
static const String routeConfigEdit = "/config/edit";
|
||||
@ -27,14 +36,28 @@ class Routes {
|
||||
static const String routeTaskLogDetail = "/log/taskDetail";
|
||||
static const String routeScript = "/script";
|
||||
static const String routeScriptDetail = "/script/detail";
|
||||
static const String routeScriptUpdate = "/script/update";
|
||||
static const String routeScriptAdd = "/script/add";
|
||||
static const String routeDependency = "/Dependency";
|
||||
static const String routeUpdatePassword = "/updatePassword";
|
||||
static const String routeAbout = "/about";
|
||||
static const String routeTheme = "/theme";
|
||||
static const String routeChangeAccount = "/changeAccount";
|
||||
|
||||
static Route<dynamic>? generateRoute(RouteSettings settings) {
|
||||
switch (settings.name) {
|
||||
case routeHomePage:
|
||||
return MaterialPageRoute(builder: (context) => const HomePage());
|
||||
case routeLogin:
|
||||
return MaterialPageRoute(builder: (context) => const LoginPage());
|
||||
if (settings.arguments != null) {
|
||||
return MaterialPageRoute(
|
||||
builder: (context) => const LoginPage(
|
||||
doNotLoadLocalData: true,
|
||||
));
|
||||
} else {
|
||||
return MaterialPageRoute(builder: (context) => const LoginPage());
|
||||
}
|
||||
|
||||
case routeAddTask:
|
||||
if (settings.arguments != null) {
|
||||
return CupertinoPageRoute(
|
||||
@ -45,12 +68,13 @@ class Routes {
|
||||
return CupertinoPageRoute(builder: (context) => const AddTaskPage());
|
||||
}
|
||||
case routeAddDependency:
|
||||
return CupertinoPageRoute(builder: (context) => const AddDependenyPage());
|
||||
return CupertinoPageRoute(
|
||||
builder: (context) => const AddDependencyPage());
|
||||
case routeAddEnv:
|
||||
if (settings.arguments != null) {
|
||||
return CupertinoPageRoute(
|
||||
builder: (context) => AddEnvPage(
|
||||
taskBean: settings.arguments as EnvBean,
|
||||
envBean: settings.arguments as EnvBean,
|
||||
));
|
||||
} else {
|
||||
return CupertinoPageRoute(builder: (context) => const AddEnvPage());
|
||||
@ -91,6 +115,42 @@ class Routes {
|
||||
path: (settings.arguments as Map)["path"],
|
||||
),
|
||||
);
|
||||
case routeTaskDetail:
|
||||
return CupertinoPageRoute(
|
||||
builder: (context) => TaskDetailPage(
|
||||
settings.arguments as TaskBean,
|
||||
),
|
||||
);
|
||||
case routeEnvDetail:
|
||||
return CupertinoPageRoute(
|
||||
builder: (context) => EnvDetailPage(
|
||||
settings.arguments as EnvBean,
|
||||
),
|
||||
);
|
||||
case routeUpdatePassword:
|
||||
return CupertinoPageRoute(
|
||||
builder: (context) => const UpdatePasswordPage(),
|
||||
);
|
||||
case routeAbout:
|
||||
return CupertinoPageRoute(
|
||||
builder: (context) => const AboutPage(),
|
||||
);
|
||||
case routeTheme:
|
||||
return CupertinoPageRoute(
|
||||
builder: (context) => const ThemePage(),
|
||||
);
|
||||
case routeChangeAccount:
|
||||
return CupertinoPageRoute(
|
||||
builder: (context) => const ChangeAccountPage(),
|
||||
);
|
||||
case routeScriptUpdate:
|
||||
return CupertinoPageRoute(
|
||||
builder: (context) => ScriptEditPage(
|
||||
(settings.arguments as Map)["title"],
|
||||
(settings.arguments as Map)["path"],
|
||||
(settings.arguments as Map)["content"],
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
return null;
|
||||
|
||||
@ -3,3 +3,6 @@ String spHost = "host";
|
||||
String spUserName = "username";
|
||||
String spPassWord = "password";
|
||||
String spTheme = "dart_mode";
|
||||
String spSecretLogined = "secret_logined";
|
||||
String spCustomColor = "customColor";
|
||||
String spLoginHistory = "loginHistory";
|
||||
|
||||
@ -3,23 +3,30 @@ import 'package:flutter/material.dart';
|
||||
import 'package:flutter/scheduler.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:qinglong_app/base/sp_const.dart';
|
||||
import 'package:qinglong_app/base/userinfo_viewmodel.dart';
|
||||
import 'package:qinglong_app/main.dart';
|
||||
import 'package:qinglong_app/utils/codeeditor_theme.dart';
|
||||
import 'package:qinglong_app/utils/sp_utils.dart';
|
||||
|
||||
var themeProvider = ChangeNotifierProvider((ref) => ThemeViewModel());
|
||||
const Color _primaryColor = Color(0xFF299343);
|
||||
|
||||
get primaryColor => _primaryColor;
|
||||
const commonColor = Color(0xFF299343);
|
||||
Color _primaryColor = commonColor;
|
||||
|
||||
class ThemeViewModel extends ChangeNotifier {
|
||||
ThemeData currentTheme = lightTheme;
|
||||
late ThemeData currentTheme;
|
||||
|
||||
bool _isInDarkMode = false;
|
||||
Color primaryColor = commonColor;
|
||||
|
||||
ThemeColors themeColor = LightThemeColors();
|
||||
|
||||
ThemeViewModel() {
|
||||
_primaryColor = Color(getIt<UserInfoViewModel>().primaryColor);
|
||||
primaryColor = Color(getIt<UserInfoViewModel>().primaryColor);
|
||||
var brightness = SchedulerBinding.instance!.window.platformBrightness;
|
||||
bool isDarkMode = brightness == Brightness.dark;
|
||||
changeThemeReal(isDarkMode, false);
|
||||
_isInDarkMode = brightness == Brightness.dark;
|
||||
changeThemeReal(_isInDarkMode, false);
|
||||
}
|
||||
|
||||
bool isInDartMode() {
|
||||
@ -27,12 +34,13 @@ class ThemeViewModel extends ChangeNotifier {
|
||||
}
|
||||
|
||||
void changeThemeReal(bool dark, [bool notify = true]) {
|
||||
_isInDarkMode = dark;
|
||||
SpUtil.putBool(spTheme, dark);
|
||||
if (!dark) {
|
||||
currentTheme = lightTheme;
|
||||
currentTheme = getLightTheme();
|
||||
themeColor = LightThemeColors();
|
||||
} else {
|
||||
currentTheme = darkTheme;
|
||||
currentTheme = getDartTheme();
|
||||
themeColor = DartThemeColors();
|
||||
}
|
||||
if (notify) {
|
||||
@ -40,124 +48,169 @@ class ThemeViewModel extends ChangeNotifier {
|
||||
}
|
||||
}
|
||||
|
||||
get darkMode => _isInDarkMode;
|
||||
|
||||
void changePrimaryColor(Color color) {
|
||||
_primaryColor = color;
|
||||
primaryColor = color;
|
||||
getIt<UserInfoViewModel>().updateCustomColor(color.value);
|
||||
changeThemeReal(SpUtil.getBool(spTheme, defValue: false), true);
|
||||
}
|
||||
|
||||
void changeTheme() {
|
||||
changeThemeReal(!SpUtil.getBool(spTheme, defValue: false), true);
|
||||
}
|
||||
}
|
||||
|
||||
ThemeData darkTheme = ThemeData.dark().copyWith(
|
||||
brightness: Brightness.dark,
|
||||
primaryColor: const Color(0xffffffff),
|
||||
scaffoldBackgroundColor: Colors.black,
|
||||
appBarTheme: const AppBarTheme(
|
||||
backgroundColor: Colors.black,
|
||||
titleTextStyle: TextStyle(
|
||||
color: Colors.white,
|
||||
fontSize: 18,
|
||||
),
|
||||
),
|
||||
inputDecorationTheme: const InputDecorationTheme(
|
||||
labelStyle: TextStyle(color: _primaryColor),
|
||||
focusedBorder: UnderlineInputBorder(
|
||||
borderSide: BorderSide(
|
||||
ThemeData getLightTheme() {
|
||||
return ThemeData.light().copyWith(
|
||||
brightness: Brightness.light,
|
||||
primaryColor: _primaryColor,
|
||||
colorScheme: ColorScheme.light(
|
||||
secondary: _primaryColor,
|
||||
primary: _primaryColor,
|
||||
),
|
||||
scaffoldBackgroundColor: const Color(0xfff5f5f5),
|
||||
inputDecorationTheme: InputDecorationTheme(
|
||||
labelStyle: TextStyle(color: _primaryColor),
|
||||
focusedBorder: UnderlineInputBorder(
|
||||
borderSide: BorderSide(
|
||||
color: _primaryColor,
|
||||
),
|
||||
),
|
||||
border: const UnderlineInputBorder(
|
||||
borderSide: BorderSide(
|
||||
color: Color(0xff999999),
|
||||
),
|
||||
),
|
||||
enabledBorder: const UnderlineInputBorder(
|
||||
borderSide: BorderSide(
|
||||
color: Color(0xff999999),
|
||||
),
|
||||
),
|
||||
),
|
||||
appBarTheme: AppBarTheme(
|
||||
backgroundColor: _primaryColor,
|
||||
titleTextStyle: const TextStyle(
|
||||
color: Colors.white,
|
||||
fontSize: 18,
|
||||
),
|
||||
),
|
||||
bottomNavigationBarTheme: BottomNavigationBarThemeData(
|
||||
selectedItemColor: _primaryColor,
|
||||
),
|
||||
buttonTheme: ButtonThemeData(
|
||||
buttonColor: _primaryColor,
|
||||
),
|
||||
progressIndicatorTheme: ProgressIndicatorThemeData(
|
||||
color: _primaryColor,
|
||||
),
|
||||
),
|
||||
),
|
||||
tabBarTheme: const TabBarTheme(
|
||||
labelStyle: TextStyle(
|
||||
fontSize: 14,
|
||||
),
|
||||
unselectedLabelStyle: TextStyle(
|
||||
fontSize: 14,
|
||||
),
|
||||
labelColor: Color(0xffffffff),
|
||||
unselectedLabelColor: Color(0xff999999),
|
||||
),
|
||||
colorScheme: const ColorScheme.light(
|
||||
secondary: _primaryColor,
|
||||
primary: _primaryColor,
|
||||
),
|
||||
toggleableActiveColor: _primaryColor,
|
||||
checkboxTheme: CheckboxThemeData(
|
||||
checkColor: MaterialStateProperty.resolveWith(
|
||||
(Set<MaterialState> states) {
|
||||
if (states.contains(MaterialState.disabled)) {
|
||||
return Colors.transparent;
|
||||
}
|
||||
if (states.contains(MaterialState.selected)) {
|
||||
return Colors.white;
|
||||
}
|
||||
return Colors.white;
|
||||
},
|
||||
),
|
||||
),
|
||||
);
|
||||
ThemeData lightTheme = ThemeData.light().copyWith(
|
||||
brightness: Brightness.light,
|
||||
primaryColor: _primaryColor,
|
||||
colorScheme: const ColorScheme.light(
|
||||
secondary: _primaryColor,
|
||||
primary: _primaryColor,
|
||||
),
|
||||
scaffoldBackgroundColor: const Color(0xfff5f5f5),
|
||||
inputDecorationTheme: const InputDecorationTheme(
|
||||
labelStyle: TextStyle(color: _primaryColor),
|
||||
focusedBorder: UnderlineInputBorder(
|
||||
borderSide: BorderSide(
|
||||
color: _primaryColor,
|
||||
tabBarTheme: TabBarTheme(
|
||||
labelStyle: const TextStyle(
|
||||
fontSize: 14,
|
||||
),
|
||||
unselectedLabelStyle: const TextStyle(
|
||||
fontSize: 14,
|
||||
),
|
||||
labelColor: _primaryColor,
|
||||
unselectedLabelColor: const Color(0xff999999),
|
||||
indicator: UnderlineTabIndicator(
|
||||
borderSide: BorderSide(color: _primaryColor),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
appBarTheme: const AppBarTheme(
|
||||
backgroundColor: _primaryColor,
|
||||
titleTextStyle: TextStyle(
|
||||
color: Colors.white,
|
||||
fontSize: 18,
|
||||
),
|
||||
),
|
||||
bottomNavigationBarTheme: const BottomNavigationBarThemeData(
|
||||
selectedItemColor: _primaryColor,
|
||||
),
|
||||
buttonTheme: const ButtonThemeData(
|
||||
buttonColor: _primaryColor,
|
||||
),
|
||||
progressIndicatorTheme: const ProgressIndicatorThemeData(
|
||||
color: _primaryColor,
|
||||
),
|
||||
tabBarTheme: const TabBarTheme(
|
||||
labelStyle: TextStyle(
|
||||
fontSize: 14,
|
||||
),
|
||||
unselectedLabelStyle: TextStyle(
|
||||
fontSize: 14,
|
||||
),
|
||||
labelColor: _primaryColor,
|
||||
unselectedLabelColor: Color(0xff999999),
|
||||
indicator: UnderlineTabIndicator(
|
||||
borderSide: BorderSide(color: _primaryColor),
|
||||
),
|
||||
),
|
||||
toggleableActiveColor: _primaryColor,
|
||||
checkboxTheme: CheckboxThemeData(
|
||||
checkColor: MaterialStateProperty.resolveWith(
|
||||
(Set<MaterialState> states) {
|
||||
if (states.contains(MaterialState.disabled)) {
|
||||
return Colors.transparent;
|
||||
}
|
||||
if (states.contains(MaterialState.selected)) {
|
||||
return Colors.white;
|
||||
}
|
||||
return Colors.black;
|
||||
},
|
||||
),
|
||||
),
|
||||
);
|
||||
toggleableActiveColor: _primaryColor,
|
||||
checkboxTheme: CheckboxThemeData(
|
||||
checkColor: MaterialStateProperty.resolveWith(
|
||||
(Set<MaterialState> states) {
|
||||
if (states.contains(MaterialState.disabled)) {
|
||||
return Colors.transparent;
|
||||
}
|
||||
if (states.contains(MaterialState.selected)) {
|
||||
return Colors.white;
|
||||
}
|
||||
return Colors.black;
|
||||
},
|
||||
),
|
||||
),
|
||||
cupertinoOverrideTheme: NoDefaultCupertinoThemeData(
|
||||
brightness: Brightness.light,
|
||||
primaryColor: _primaryColor,
|
||||
scaffoldBackgroundColor: const Color(0xfff5f5f5),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
ThemeData getDartTheme() {
|
||||
return ThemeData.dark().copyWith(
|
||||
brightness: Brightness.dark,
|
||||
primaryColor: const Color(0xffffffff),
|
||||
scaffoldBackgroundColor: Colors.black,
|
||||
appBarTheme: const AppBarTheme(
|
||||
backgroundColor: Colors.black,
|
||||
titleTextStyle: TextStyle(
|
||||
color: Colors.white,
|
||||
fontSize: 18,
|
||||
),
|
||||
),
|
||||
inputDecorationTheme: InputDecorationTheme(
|
||||
labelStyle: TextStyle(color: _primaryColor),
|
||||
focusedBorder: UnderlineInputBorder(
|
||||
borderSide: BorderSide(
|
||||
color: _primaryColor,
|
||||
),
|
||||
),
|
||||
border: const UnderlineInputBorder(
|
||||
borderSide: BorderSide(
|
||||
color: Color(0xff999999),
|
||||
),
|
||||
),
|
||||
enabledBorder: const UnderlineInputBorder(
|
||||
borderSide: BorderSide(
|
||||
color: Color(0xff999999),
|
||||
),
|
||||
),
|
||||
),
|
||||
tabBarTheme: const TabBarTheme(
|
||||
labelStyle: TextStyle(
|
||||
fontSize: 14,
|
||||
),
|
||||
unselectedLabelStyle: TextStyle(
|
||||
fontSize: 14,
|
||||
),
|
||||
labelColor: Color(0xffffffff),
|
||||
unselectedLabelColor: Color(0xff999999),
|
||||
),
|
||||
colorScheme: ColorScheme.light(
|
||||
secondary: _primaryColor,
|
||||
primary: _primaryColor,
|
||||
),
|
||||
toggleableActiveColor: _primaryColor,
|
||||
checkboxTheme: CheckboxThemeData(
|
||||
checkColor: MaterialStateProperty.resolveWith(
|
||||
(Set<MaterialState> states) {
|
||||
if (states.contains(MaterialState.disabled)) {
|
||||
return Colors.transparent;
|
||||
}
|
||||
if (states.contains(MaterialState.selected)) {
|
||||
return Colors.white;
|
||||
}
|
||||
return Colors.white;
|
||||
},
|
||||
),
|
||||
),
|
||||
cupertinoOverrideTheme: const NoDefaultCupertinoThemeData(
|
||||
brightness: Brightness.dark,
|
||||
primaryColor: Color(0xffffffff),
|
||||
scaffoldBackgroundColor: Colors.black,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
abstract class ThemeColors {
|
||||
Color settingBgColor();
|
||||
Color settingBordorColor();
|
||||
|
||||
Color taskTitleColor();
|
||||
Color titleColor();
|
||||
|
||||
Color descColor();
|
||||
|
||||
@ -170,7 +223,7 @@ abstract class ThemeColors {
|
||||
|
||||
class LightThemeColors extends ThemeColors {
|
||||
@override
|
||||
Color taskTitleColor() {
|
||||
Color titleColor() {
|
||||
return const Color(0xff333333);
|
||||
}
|
||||
|
||||
@ -198,11 +251,16 @@ class LightThemeColors extends ThemeColors {
|
||||
Color buttonBgColor() {
|
||||
return _primaryColor;
|
||||
}
|
||||
|
||||
@override
|
||||
Color settingBordorColor() {
|
||||
return Colors.white;
|
||||
}
|
||||
}
|
||||
|
||||
class DartThemeColors extends ThemeColors {
|
||||
@override
|
||||
Color taskTitleColor() {
|
||||
Color titleColor() {
|
||||
return Colors.white;
|
||||
}
|
||||
|
||||
@ -223,11 +281,16 @@ class DartThemeColors extends ThemeColors {
|
||||
|
||||
@override
|
||||
Color settingBgColor() {
|
||||
return Colors.black12;
|
||||
return Colors.black;
|
||||
}
|
||||
|
||||
@override
|
||||
Color buttonBgColor() {
|
||||
return const Color(0xff333333);
|
||||
}
|
||||
|
||||
@override
|
||||
Color settingBordorColor() {
|
||||
return Color(0xff333333);
|
||||
}
|
||||
}
|
||||
|
||||
103
lib/base/ui/highlight/flutter_highlight.dart
Normal file
@ -0,0 +1,103 @@
|
||||
import 'dart:ui';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/widgets.dart';
|
||||
import 'package:highlight/highlight.dart' show highlight, Node;
|
||||
|
||||
/// Highlight Flutter Widget
|
||||
class HighlightView extends StatelessWidget {
|
||||
/// The original code to be highlighted
|
||||
final String source;
|
||||
|
||||
/// Highlight language
|
||||
///
|
||||
/// It is recommended to give it a value for performance
|
||||
///
|
||||
/// [All available languages](https://github.com/pd4d10/highlight/tree/master/highlight/lib/languages)
|
||||
final String? language;
|
||||
|
||||
/// Highlight theme
|
||||
///
|
||||
/// [All available themes](https://github.com/pd4d10/highlight/blob/master/flutter_highlight/lib/themes)
|
||||
final Map<String, TextStyle> theme;
|
||||
|
||||
/// Padding
|
||||
final EdgeInsetsGeometry? padding;
|
||||
|
||||
/// Text styles
|
||||
///
|
||||
/// Specify text styles such as font family and font size
|
||||
final TextStyle? textStyle;
|
||||
|
||||
HighlightView(
|
||||
String input, {
|
||||
this.language,
|
||||
this.theme = const {},
|
||||
this.padding,
|
||||
this.textStyle,
|
||||
int tabSize = 8, // TODO: https://github.com/flutter/flutter/issues/50087
|
||||
}) : source = input.replaceAll('\t', ' ' * tabSize);
|
||||
|
||||
List<TextSpan> _convert(List<Node> nodes) {
|
||||
List<TextSpan> spans = [];
|
||||
var currentSpans = spans;
|
||||
List<List<TextSpan>> stack = [];
|
||||
|
||||
_traverse(Node node) {
|
||||
if (node.value != null) {
|
||||
currentSpans.add(node.className == null ? TextSpan(text: node.value) : TextSpan(text: node.value, style: theme[node.className!]));
|
||||
} else if (node.children != null) {
|
||||
List<TextSpan> tmp = [];
|
||||
currentSpans.add(TextSpan(children: tmp, style: theme[node.className!]));
|
||||
stack.add(currentSpans);
|
||||
currentSpans = tmp;
|
||||
|
||||
node.children!.forEach((n) {
|
||||
_traverse(n);
|
||||
if (n == node.children!.last) {
|
||||
currentSpans = stack.isEmpty ? spans : stack.removeLast();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
for (var node in nodes) {
|
||||
_traverse(node);
|
||||
}
|
||||
|
||||
return spans;
|
||||
}
|
||||
|
||||
static const _rootKey = 'root';
|
||||
static const _defaultFontColor = Color(0xff000000);
|
||||
static const _defaultBackgroundColor = Color(0xffffffff);
|
||||
|
||||
// TODO: dart:io is not available at web platform currently
|
||||
// See: https://github.com/flutter/flutter/issues/39998
|
||||
// So we just use monospace here for now
|
||||
static const _defaultFontFamily = 'monospace';
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
var _textStyle = TextStyle(
|
||||
fontFamily: _defaultFontFamily,
|
||||
color: theme[_rootKey]?.color ?? _defaultFontColor,
|
||||
);
|
||||
if (textStyle != null) {
|
||||
_textStyle = _textStyle.merge(textStyle);
|
||||
}
|
||||
|
||||
return Container(
|
||||
color: theme[_rootKey]?.backgroundColor ?? _defaultBackgroundColor,
|
||||
padding: padding,
|
||||
child: SelectableText.rich(
|
||||
TextSpan(
|
||||
style: _textStyle,
|
||||
children: _convert(highlight.parse(source, language: language).nodes!),
|
||||
),
|
||||
selectionWidthStyle: BoxWidthStyle.max,
|
||||
selectionHeightStyle: BoxHeightStyle.max,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
185
lib/base/ui/highlight/theme_map.dart
Normal file
@ -0,0 +1,185 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
import 'themes/a11y-dark.dart';
|
||||
import 'themes/a11y-light.dart';
|
||||
import 'themes/agate.dart';
|
||||
import 'themes/an-old-hope.dart';
|
||||
import 'themes/androidstudio.dart';
|
||||
import 'themes/arduino-light.dart';
|
||||
import 'themes/arta.dart';
|
||||
import 'themes/ascetic.dart';
|
||||
import 'themes/atelier-cave-dark.dart';
|
||||
import 'themes/atelier-cave-light.dart';
|
||||
import 'themes/atelier-dune-dark.dart';
|
||||
import 'themes/atelier-dune-light.dart';
|
||||
import 'themes/atelier-estuary-dark.dart';
|
||||
import 'themes/atelier-estuary-light.dart';
|
||||
import 'themes/atelier-forest-dark.dart';
|
||||
import 'themes/atelier-forest-light.dart';
|
||||
import 'themes/atelier-heath-dark.dart';
|
||||
import 'themes/atelier-heath-light.dart';
|
||||
import 'themes/atelier-lakeside-dark.dart';
|
||||
import 'themes/atelier-lakeside-light.dart';
|
||||
import 'themes/atelier-plateau-dark.dart';
|
||||
import 'themes/atelier-plateau-light.dart';
|
||||
import 'themes/atelier-savanna-dark.dart';
|
||||
import 'themes/atelier-savanna-light.dart';
|
||||
import 'themes/atelier-seaside-dark.dart';
|
||||
import 'themes/atelier-seaside-light.dart';
|
||||
import 'themes/atelier-sulphurpool-dark.dart';
|
||||
import 'themes/atelier-sulphurpool-light.dart';
|
||||
import 'themes/atom-one-dark-reasonable.dart';
|
||||
import 'themes/atom-one-dark.dart';
|
||||
import 'themes/atom-one-light.dart';
|
||||
import 'themes/brown-paper.dart';
|
||||
import 'themes/codepen-embed.dart';
|
||||
import 'themes/color-brewer.dart';
|
||||
import 'themes/darcula.dart';
|
||||
import 'themes/dark.dart';
|
||||
import 'themes/default.dart';
|
||||
import 'themes/docco.dart';
|
||||
import 'themes/dracula.dart';
|
||||
import 'themes/far.dart';
|
||||
import 'themes/foundation.dart';
|
||||
import 'themes/github-gist.dart';
|
||||
import 'themes/github.dart';
|
||||
import 'themes/gml.dart';
|
||||
import 'themes/googlecode.dart';
|
||||
import 'themes/gradient-dark.dart';
|
||||
import 'themes/grayscale.dart';
|
||||
import 'themes/gruvbox-dark.dart';
|
||||
import 'themes/gruvbox-light.dart';
|
||||
import 'themes/hopscotch.dart';
|
||||
import 'themes/hybrid.dart';
|
||||
import 'themes/idea.dart';
|
||||
import 'themes/ir-black.dart';
|
||||
import 'themes/isbl-editor-dark.dart';
|
||||
import 'themes/isbl-editor-light.dart';
|
||||
import 'themes/kimbie.dark.dart';
|
||||
import 'themes/kimbie.light.dart';
|
||||
import 'themes/lightfair.dart';
|
||||
import 'themes/magula.dart';
|
||||
import 'themes/mono-blue.dart';
|
||||
import 'themes/monokai-sublime.dart';
|
||||
import 'themes/monokai.dart';
|
||||
import 'themes/night-owl.dart';
|
||||
import 'themes/nord.dart';
|
||||
import 'themes/obsidian.dart';
|
||||
import 'themes/ocean.dart';
|
||||
import 'themes/paraiso-dark.dart';
|
||||
import 'themes/paraiso-light.dart';
|
||||
import 'themes/pojoaque.dart';
|
||||
import 'themes/purebasic.dart';
|
||||
import 'themes/qtcreator_dark.dart';
|
||||
import 'themes/qtcreator_light.dart';
|
||||
import 'themes/railscasts.dart';
|
||||
import 'themes/rainbow.dart';
|
||||
import 'themes/routeros.dart';
|
||||
import 'themes/school-book.dart';
|
||||
import 'themes/shades-of-purple.dart';
|
||||
import 'themes/solarized-dark.dart';
|
||||
import 'themes/solarized-light.dart';
|
||||
import 'themes/sunburst.dart';
|
||||
import 'themes/tomorrow-night-blue.dart';
|
||||
import 'themes/tomorrow-night-bright.dart';
|
||||
import 'themes/tomorrow-night-eighties.dart';
|
||||
import 'themes/tomorrow-night.dart';
|
||||
import 'themes/tomorrow.dart';
|
||||
import 'themes/vs.dart';
|
||||
import 'themes/vs2015.dart';
|
||||
import 'themes/xcode.dart';
|
||||
import 'themes/xt256.dart';
|
||||
import 'themes/zenburn.dart';
|
||||
|
||||
const themeMap = {
|
||||
'a11y-dark': a11yDarkTheme,
|
||||
'a11y-light': a11yLightTheme,
|
||||
'agate': agateTheme,
|
||||
'an-old-hope': anOldHopeTheme,
|
||||
'androidstudio': androidstudioTheme,
|
||||
'arduino-light': arduinoLightTheme,
|
||||
'arta': artaTheme,
|
||||
'ascetic': asceticTheme,
|
||||
'atelier-cave-dark': atelierCaveDarkTheme,
|
||||
'atelier-cave-light': atelierCaveLightTheme,
|
||||
'atelier-dune-dark': atelierDuneDarkTheme,
|
||||
'atelier-dune-light': atelierDuneLightTheme,
|
||||
'atelier-estuary-dark': atelierEstuaryDarkTheme,
|
||||
'atelier-estuary-light': atelierEstuaryLightTheme,
|
||||
'atelier-forest-dark': atelierForestDarkTheme,
|
||||
'atelier-forest-light': atelierForestLightTheme,
|
||||
'atelier-heath-dark': atelierHeathDarkTheme,
|
||||
'atelier-heath-light': atelierHeathLightTheme,
|
||||
'atelier-lakeside-dark': atelierLakesideDarkTheme,
|
||||
'atelier-lakeside-light': atelierLakesideLightTheme,
|
||||
'atelier-plateau-dark': atelierPlateauDarkTheme,
|
||||
'atelier-plateau-light': atelierPlateauLightTheme,
|
||||
'atelier-savanna-dark': atelierSavannaDarkTheme,
|
||||
'atelier-savanna-light': atelierSavannaLightTheme,
|
||||
'atelier-seaside-dark': atelierSeasideDarkTheme,
|
||||
'atelier-seaside-light': atelierSeasideLightTheme,
|
||||
'atelier-sulphurpool-dark': atelierSulphurpoolDarkTheme,
|
||||
'atelier-sulphurpool-light': atelierSulphurpoolLightTheme,
|
||||
'atom-one-dark-reasonable': atomOneDarkReasonableTheme,
|
||||
'atom-one-dark': atomOneDarkTheme,
|
||||
'atom-one-light': atomOneLightTheme,
|
||||
'brown-paper': brownPaperTheme,
|
||||
'codepen-embed': codepenEmbedTheme,
|
||||
'color-brewer': colorBrewerTheme,
|
||||
'darcula': darculaTheme,
|
||||
'dark': darkTheme,
|
||||
'default': defaultTheme,
|
||||
'docco': doccoTheme,
|
||||
'dracula': draculaTheme,
|
||||
'far': farTheme,
|
||||
'foundation': foundationTheme,
|
||||
'github-gist': githubGistTheme,
|
||||
'github': githubTheme,
|
||||
'gml': gmlTheme,
|
||||
'googlecode': googlecodeTheme,
|
||||
'gradient-dark': gradientDarkTheme,
|
||||
'grayscale': grayscaleTheme,
|
||||
'gruvbox-dark': gruvboxDarkTheme,
|
||||
'gruvbox-light': gruvboxLightTheme,
|
||||
'hopscotch': hopscotchTheme,
|
||||
'hybrid': hybridTheme,
|
||||
'idea': ideaTheme,
|
||||
'ir-black': irBlackTheme,
|
||||
'isbl-editor-dark': isblEditorDarkTheme,
|
||||
'isbl-editor-light': isblEditorLightTheme,
|
||||
'kimbie.dark': kimbieDarkTheme,
|
||||
'kimbie.light': kimbieLightTheme,
|
||||
'lightfair': lightfairTheme,
|
||||
'magula': magulaTheme,
|
||||
'mono-blue': monoBlueTheme,
|
||||
'monokai-sublime': monokaiSublimeTheme,
|
||||
'monokai': monokaiTheme,
|
||||
'night-owl': nightOwlTheme,
|
||||
'nord': nordTheme,
|
||||
'obsidian': obsidianTheme,
|
||||
'ocean': oceanTheme,
|
||||
'paraiso-dark': paraisoDarkTheme,
|
||||
'paraiso-light': paraisoLightTheme,
|
||||
'pojoaque': pojoaqueTheme,
|
||||
'purebasic': purebasicTheme,
|
||||
'qtcreator_dark': qtcreatorDarkTheme,
|
||||
'qtcreator_light': qtcreatorLightTheme,
|
||||
'railscasts': railscastsTheme,
|
||||
'rainbow': rainbowTheme,
|
||||
'routeros': routerosTheme,
|
||||
'school-book': schoolBookTheme,
|
||||
'shades-of-purple': shadesOfPurpleTheme,
|
||||
'solarized-dark': solarizedDarkTheme,
|
||||
'solarized-light': solarizedLightTheme,
|
||||
'sunburst': sunburstTheme,
|
||||
'tomorrow-night-blue': tomorrowNightBlueTheme,
|
||||
'tomorrow-night-bright': tomorrowNightBrightTheme,
|
||||
'tomorrow-night-eighties': tomorrowNightEightiesTheme,
|
||||
'tomorrow-night': tomorrowNightTheme,
|
||||
'tomorrow': tomorrowTheme,
|
||||
'vs': vsTheme,
|
||||
'vs2015': vs2015Theme,
|
||||
'xcode': xcodeTheme,
|
||||
'xt256': xt256Theme,
|
||||
'zenburn': zenburnTheme,
|
||||
};
|
||||
37
lib/base/ui/highlight/themes/a11y-dark.dart
Normal file
@ -0,0 +1,37 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
import 'package:flutter/painting.dart';
|
||||
|
||||
const a11yDarkTheme = {
|
||||
'comment': TextStyle(color: Color(0xffd4d0ab)),
|
||||
'quote': TextStyle(color: Color(0xffd4d0ab)),
|
||||
'variable': TextStyle(color: Color(0xffffa07a)),
|
||||
'template-variable': TextStyle(color: Color(0xffffa07a)),
|
||||
'tag': TextStyle(color: Color(0xffffa07a)),
|
||||
'name': TextStyle(color: Color(0xffffa07a)),
|
||||
'selector-id': TextStyle(color: Color(0xffffa07a)),
|
||||
'selector-class': TextStyle(color: Color(0xffffa07a)),
|
||||
'regexp': TextStyle(color: Color(0xffffa07a)),
|
||||
'deletion': TextStyle(color: Color(0xffffa07a)),
|
||||
'number': TextStyle(color: Color(0xfff5ab35)),
|
||||
'built_in': TextStyle(color: Color(0xfff5ab35)),
|
||||
'builtin-name': TextStyle(color: Color(0xfff5ab35)),
|
||||
'literal': TextStyle(color: Color(0xfff5ab35)),
|
||||
'type': TextStyle(color: Color(0xfff5ab35)),
|
||||
'params': TextStyle(color: Color(0xfff5ab35)),
|
||||
'meta': TextStyle(color: Color(0xfff5ab35)),
|
||||
'link': TextStyle(color: Color(0xfff5ab35)),
|
||||
'attribute': TextStyle(color: Color(0xffffd700)),
|
||||
'string': TextStyle(color: Color(0xffabe338)),
|
||||
'symbol': TextStyle(color: Color(0xffabe338)),
|
||||
'bullet': TextStyle(color: Color(0xffabe338)),
|
||||
'addition': TextStyle(color: Color(0xffabe338)),
|
||||
'title': TextStyle(color: Color(0xff00e0e0)),
|
||||
'section': TextStyle(color: Color(0xff00e0e0)),
|
||||
'keyword': TextStyle(color: Color(0xffdcc6e0)),
|
||||
'selector-tag': TextStyle(color: Color(0xffdcc6e0)),
|
||||
'root':
|
||||
TextStyle(backgroundColor: Color(0xff2b2b2b), color: Color(0xfff8f8f2)),
|
||||
'emphasis': TextStyle(fontStyle: FontStyle.italic),
|
||||
'strong': TextStyle(fontWeight: FontWeight.bold),
|
||||
};
|
||||
37
lib/base/ui/highlight/themes/a11y-light.dart
Normal file
@ -0,0 +1,37 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
import 'package:flutter/painting.dart';
|
||||
|
||||
const a11yLightTheme = {
|
||||
'comment': TextStyle(color: Color(0xff696969)),
|
||||
'quote': TextStyle(color: Color(0xff696969)),
|
||||
'variable': TextStyle(color: Color(0xffd91e18)),
|
||||
'template-variable': TextStyle(color: Color(0xffd91e18)),
|
||||
'tag': TextStyle(color: Color(0xffd91e18)),
|
||||
'name': TextStyle(color: Color(0xffd91e18)),
|
||||
'selector-id': TextStyle(color: Color(0xffd91e18)),
|
||||
'selector-class': TextStyle(color: Color(0xffd91e18)),
|
||||
'regexp': TextStyle(color: Color(0xffd91e18)),
|
||||
'deletion': TextStyle(color: Color(0xffd91e18)),
|
||||
'number': TextStyle(color: Color(0xffaa5d00)),
|
||||
'built_in': TextStyle(color: Color(0xffaa5d00)),
|
||||
'builtin-name': TextStyle(color: Color(0xffaa5d00)),
|
||||
'literal': TextStyle(color: Color(0xffaa5d00)),
|
||||
'type': TextStyle(color: Color(0xffaa5d00)),
|
||||
'params': TextStyle(color: Color(0xffaa5d00)),
|
||||
'meta': TextStyle(color: Color(0xffaa5d00)),
|
||||
'link': TextStyle(color: Color(0xffaa5d00)),
|
||||
'attribute': TextStyle(color: Color(0xffaa5d00)),
|
||||
'string': TextStyle(color: Color(0xff008000)),
|
||||
'symbol': TextStyle(color: Color(0xff008000)),
|
||||
'bullet': TextStyle(color: Color(0xff008000)),
|
||||
'addition': TextStyle(color: Color(0xff008000)),
|
||||
'title': TextStyle(color: Color(0xff007faa)),
|
||||
'section': TextStyle(color: Color(0xff007faa)),
|
||||
'keyword': TextStyle(color: Color(0xff7928a1)),
|
||||
'selector-tag': TextStyle(color: Color(0xff7928a1)),
|
||||
'root':
|
||||
TextStyle(backgroundColor: Color(0xfffefefe), color: Color(0xff545454)),
|
||||
'emphasis': TextStyle(fontStyle: FontStyle.italic),
|
||||
'strong': TextStyle(fontWeight: FontWeight.bold),
|
||||
};
|
||||
39
lib/base/ui/highlight/themes/agate.dart
Normal file
@ -0,0 +1,39 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
import 'package:flutter/painting.dart';
|
||||
|
||||
const agateTheme = {
|
||||
'root':
|
||||
TextStyle(backgroundColor: Color(0xff333333), color: Color(0xffffffff)),
|
||||
'name': TextStyle(fontWeight: FontWeight.bold),
|
||||
'strong': TextStyle(fontWeight: FontWeight.bold),
|
||||
'code': TextStyle(fontStyle: FontStyle.italic, color: Color(0xff888888)),
|
||||
'emphasis': TextStyle(fontStyle: FontStyle.italic),
|
||||
'tag': TextStyle(color: Color(0xff62c8f3)),
|
||||
'variable': TextStyle(color: Color(0xffade5fc)),
|
||||
'template-variable': TextStyle(color: Color(0xffade5fc)),
|
||||
'selector-id': TextStyle(color: Color(0xffade5fc)),
|
||||
'selector-class': TextStyle(color: Color(0xffade5fc)),
|
||||
'string': TextStyle(color: Color(0xffa2fca2)),
|
||||
'bullet': TextStyle(color: Color(0xffd36363)),
|
||||
'type': TextStyle(color: Color(0xffffffaa)),
|
||||
'title': TextStyle(color: Color(0xffffffaa)),
|
||||
'section': TextStyle(color: Color(0xffffffaa)),
|
||||
'attribute': TextStyle(color: Color(0xffffffaa)),
|
||||
'quote': TextStyle(color: Color(0xffffffaa)),
|
||||
'built_in': TextStyle(color: Color(0xffffffaa)),
|
||||
'builtin-name': TextStyle(color: Color(0xffffffaa)),
|
||||
'number': TextStyle(color: Color(0xffd36363)),
|
||||
'symbol': TextStyle(color: Color(0xffd36363)),
|
||||
'keyword': TextStyle(color: Color(0xfffcc28c)),
|
||||
'selector-tag': TextStyle(color: Color(0xfffcc28c)),
|
||||
'literal': TextStyle(color: Color(0xfffcc28c)),
|
||||
'comment': TextStyle(color: Color(0xff888888)),
|
||||
'deletion':
|
||||
TextStyle(color: Color(0xff333333), backgroundColor: Color(0xfffc9b9b)),
|
||||
'regexp': TextStyle(color: Color(0xffc6b4f0)),
|
||||
'link': TextStyle(color: Color(0xffc6b4f0)),
|
||||
'meta': TextStyle(color: Color(0xfffc9b9b)),
|
||||
'addition':
|
||||
TextStyle(backgroundColor: Color(0xffa2fca2), color: Color(0xff333333)),
|
||||
};
|
||||
37
lib/base/ui/highlight/themes/an-old-hope.dart
Normal file
@ -0,0 +1,37 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
import 'package:flutter/painting.dart';
|
||||
|
||||
const anOldHopeTheme = {
|
||||
'comment': TextStyle(color: Color(0xffB6B18B)),
|
||||
'quote': TextStyle(color: Color(0xffB6B18B)),
|
||||
'variable': TextStyle(color: Color(0xffEB3C54)),
|
||||
'template-variable': TextStyle(color: Color(0xffEB3C54)),
|
||||
'tag': TextStyle(color: Color(0xffEB3C54)),
|
||||
'name': TextStyle(color: Color(0xffEB3C54)),
|
||||
'selector-id': TextStyle(color: Color(0xffEB3C54)),
|
||||
'selector-class': TextStyle(color: Color(0xffEB3C54)),
|
||||
'regexp': TextStyle(color: Color(0xffEB3C54)),
|
||||
'deletion': TextStyle(color: Color(0xffEB3C54)),
|
||||
'number': TextStyle(color: Color(0xffE7CE56)),
|
||||
'built_in': TextStyle(color: Color(0xffE7CE56)),
|
||||
'builtin-name': TextStyle(color: Color(0xffE7CE56)),
|
||||
'literal': TextStyle(color: Color(0xffE7CE56)),
|
||||
'type': TextStyle(color: Color(0xffE7CE56)),
|
||||
'params': TextStyle(color: Color(0xffE7CE56)),
|
||||
'meta': TextStyle(color: Color(0xffE7CE56)),
|
||||
'link': TextStyle(color: Color(0xffE7CE56)),
|
||||
'attribute': TextStyle(color: Color(0xffEE7C2B)),
|
||||
'string': TextStyle(color: Color(0xff4FB4D7)),
|
||||
'symbol': TextStyle(color: Color(0xff4FB4D7)),
|
||||
'bullet': TextStyle(color: Color(0xff4FB4D7)),
|
||||
'addition': TextStyle(color: Color(0xff4FB4D7)),
|
||||
'title': TextStyle(color: Color(0xff78BB65)),
|
||||
'section': TextStyle(color: Color(0xff78BB65)),
|
||||
'keyword': TextStyle(color: Color(0xffB45EA4)),
|
||||
'selector-tag': TextStyle(color: Color(0xffB45EA4)),
|
||||
'root':
|
||||
TextStyle(backgroundColor: Color(0xff1C1D21), color: Color(0xffc0c5ce)),
|
||||
'emphasis': TextStyle(fontStyle: FontStyle.italic),
|
||||
'strong': TextStyle(fontWeight: FontWeight.bold),
|
||||
};
|
||||
32
lib/base/ui/highlight/themes/androidstudio.dart
Normal file
@ -0,0 +1,32 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
import 'package:flutter/painting.dart';
|
||||
|
||||
const androidstudioTheme = {
|
||||
'root':
|
||||
TextStyle(color: Color(0xffa9b7c6), backgroundColor: Color(0xff282b2e)),
|
||||
'number': TextStyle(color: Color(0xff6897BB)),
|
||||
'literal': TextStyle(color: Color(0xff6897BB)),
|
||||
'symbol': TextStyle(color: Color(0xff6897BB)),
|
||||
'bullet': TextStyle(color: Color(0xff6897BB)),
|
||||
'keyword': TextStyle(color: Color(0xffcc7832)),
|
||||
'selector-tag': TextStyle(color: Color(0xffcc7832)),
|
||||
'deletion': TextStyle(color: Color(0xffcc7832)),
|
||||
'variable': TextStyle(color: Color(0xff629755)),
|
||||
'template-variable': TextStyle(color: Color(0xff629755)),
|
||||
'link': TextStyle(color: Color(0xff629755)),
|
||||
'comment': TextStyle(color: Color(0xff808080)),
|
||||
'quote': TextStyle(color: Color(0xff808080)),
|
||||
'meta': TextStyle(color: Color(0xffbbb529)),
|
||||
'string': TextStyle(color: Color(0xff6A8759)),
|
||||
'attribute': TextStyle(color: Color(0xff6A8759)),
|
||||
'addition': TextStyle(color: Color(0xff6A8759)),
|
||||
'section': TextStyle(color: Color(0xffffc66d)),
|
||||
'title': TextStyle(color: Color(0xffffc66d)),
|
||||
'type': TextStyle(color: Color(0xffffc66d)),
|
||||
'name': TextStyle(color: Color(0xffe8bf6a)),
|
||||
'selector-id': TextStyle(color: Color(0xffe8bf6a)),
|
||||
'selector-class': TextStyle(color: Color(0xffe8bf6a)),
|
||||
'emphasis': TextStyle(fontStyle: FontStyle.italic),
|
||||
'strong': TextStyle(fontWeight: FontWeight.bold),
|
||||
};
|
||||
42
lib/base/ui/highlight/themes/arduino-light.dart
Normal file
@ -0,0 +1,42 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
import 'package:flutter/painting.dart';
|
||||
|
||||
const arduinoLightTheme = {
|
||||
'root':
|
||||
TextStyle(backgroundColor: Color(0xffFFFFFF), color: Color(0xff434f54)),
|
||||
'subst': TextStyle(color: Color(0xff434f54)),
|
||||
'keyword': TextStyle(color: Color(0xff00979D)),
|
||||
'attribute': TextStyle(color: Color(0xff00979D)),
|
||||
'selector-tag': TextStyle(color: Color(0xff00979D)),
|
||||
'doctag': TextStyle(color: Color(0xff00979D)),
|
||||
'name': TextStyle(color: Color(0xff00979D)),
|
||||
'built_in': TextStyle(color: Color(0xffD35400)),
|
||||
'literal': TextStyle(color: Color(0xffD35400)),
|
||||
'bullet': TextStyle(color: Color(0xffD35400)),
|
||||
'code': TextStyle(color: Color(0xffD35400)),
|
||||
'addition': TextStyle(color: Color(0xffD35400)),
|
||||
'regexp': TextStyle(color: Color(0xff00979D)),
|
||||
'symbol': TextStyle(color: Color(0xff00979D)),
|
||||
'variable': TextStyle(color: Color(0xff00979D)),
|
||||
'template-variable': TextStyle(color: Color(0xff00979D)),
|
||||
'link': TextStyle(color: Color(0xff00979D)),
|
||||
'selector-attr': TextStyle(color: Color(0xff00979D)),
|
||||
'selector-pseudo': TextStyle(color: Color(0xff00979D)),
|
||||
'type': TextStyle(color: Color(0xff005C5F)),
|
||||
'string': TextStyle(color: Color(0xff005C5F)),
|
||||
'selector-id': TextStyle(color: Color(0xff005C5F)),
|
||||
'selector-class': TextStyle(color: Color(0xff005C5F)),
|
||||
'quote': TextStyle(color: Color(0xff005C5F)),
|
||||
'template-tag': TextStyle(color: Color(0xff005C5F)),
|
||||
'deletion': TextStyle(color: Color(0xff005C5F)),
|
||||
'title': TextStyle(color: Color(0xff880000), fontWeight: FontWeight.bold),
|
||||
'section': TextStyle(color: Color(0xff880000), fontWeight: FontWeight.bold),
|
||||
'comment': TextStyle(color: Color.fromRGBO(149, 165, 166, .8)),
|
||||
'meta-keyword': TextStyle(color: Color(0xff728E00)),
|
||||
'meta': TextStyle(color: Color(0xff434f54)),
|
||||
'emphasis': TextStyle(fontStyle: FontStyle.italic),
|
||||
'strong': TextStyle(fontWeight: FontWeight.bold),
|
||||
'function': TextStyle(color: Color(0xff728E00)),
|
||||
'number': TextStyle(color: Color(0xff8A7B52)),
|
||||
};
|
||||
38
lib/base/ui/highlight/themes/arta.dart
Normal file
@ -0,0 +1,38 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
import 'package:flutter/painting.dart';
|
||||
|
||||
const artaTheme = {
|
||||
'root':
|
||||
TextStyle(backgroundColor: Color(0xff222222), color: Color(0xffaaaaaa)),
|
||||
'subst': TextStyle(color: Color(0xffaaaaaa)),
|
||||
'section': TextStyle(color: Color(0xffffffff), fontWeight: FontWeight.bold),
|
||||
'comment': TextStyle(color: Color(0xff444444)),
|
||||
'quote': TextStyle(color: Color(0xff444444)),
|
||||
'meta': TextStyle(color: Color(0xff444444)),
|
||||
'string': TextStyle(color: Color(0xffffcc33)),
|
||||
'symbol': TextStyle(color: Color(0xffffcc33)),
|
||||
'bullet': TextStyle(color: Color(0xffffcc33)),
|
||||
'regexp': TextStyle(color: Color(0xffffcc33)),
|
||||
'number': TextStyle(color: Color(0xff00cc66)),
|
||||
'addition': TextStyle(color: Color(0xff00cc66)),
|
||||
'built_in': TextStyle(color: Color(0xff32aaee)),
|
||||
'builtin-name': TextStyle(color: Color(0xff32aaee)),
|
||||
'literal': TextStyle(color: Color(0xff32aaee)),
|
||||
'type': TextStyle(color: Color(0xff32aaee)),
|
||||
'template-variable': TextStyle(color: Color(0xff32aaee)),
|
||||
'attribute': TextStyle(color: Color(0xff32aaee)),
|
||||
'link': TextStyle(color: Color(0xff32aaee)),
|
||||
'keyword': TextStyle(color: Color(0xff6644aa)),
|
||||
'selector-tag': TextStyle(color: Color(0xff6644aa)),
|
||||
'name': TextStyle(color: Color(0xff6644aa)),
|
||||
'selector-id': TextStyle(color: Color(0xff6644aa)),
|
||||
'selector-class': TextStyle(color: Color(0xff6644aa)),
|
||||
'title': TextStyle(color: Color(0xffbb1166)),
|
||||
'variable': TextStyle(color: Color(0xffbb1166)),
|
||||
'deletion': TextStyle(color: Color(0xffbb1166)),
|
||||
'template-tag': TextStyle(color: Color(0xffbb1166)),
|
||||
'doctag': TextStyle(fontWeight: FontWeight.bold),
|
||||
'strong': TextStyle(fontWeight: FontWeight.bold),
|
||||
'emphasis': TextStyle(fontStyle: FontStyle.italic),
|
||||
};
|
||||
27
lib/base/ui/highlight/themes/ascetic.dart
Normal file
@ -0,0 +1,27 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
import 'package:flutter/painting.dart';
|
||||
|
||||
const asceticTheme = {
|
||||
'root':
|
||||
TextStyle(backgroundColor: Color(0xffffffff), color: Color(0xff000000)),
|
||||
'string': TextStyle(color: Color(0xff888888)),
|
||||
'variable': TextStyle(color: Color(0xff888888)),
|
||||
'template-variable': TextStyle(color: Color(0xff888888)),
|
||||
'symbol': TextStyle(color: Color(0xff888888)),
|
||||
'bullet': TextStyle(color: Color(0xff888888)),
|
||||
'section': TextStyle(color: Color(0xff888888), fontWeight: FontWeight.bold),
|
||||
'addition': TextStyle(color: Color(0xff888888)),
|
||||
'attribute': TextStyle(color: Color(0xff888888)),
|
||||
'link': TextStyle(color: Color(0xff888888)),
|
||||
'comment': TextStyle(color: Color(0xffcccccc)),
|
||||
'quote': TextStyle(color: Color(0xffcccccc)),
|
||||
'meta': TextStyle(color: Color(0xffcccccc)),
|
||||
'deletion': TextStyle(color: Color(0xffcccccc)),
|
||||
'keyword': TextStyle(fontWeight: FontWeight.bold),
|
||||
'selector-tag': TextStyle(fontWeight: FontWeight.bold),
|
||||
'name': TextStyle(fontWeight: FontWeight.bold),
|
||||
'type': TextStyle(fontWeight: FontWeight.bold),
|
||||
'strong': TextStyle(fontWeight: FontWeight.bold),
|
||||
'emphasis': TextStyle(fontStyle: FontStyle.italic),
|
||||
};
|
||||
39
lib/base/ui/highlight/themes/atelier-cave-dark.dart
Normal file
@ -0,0 +1,39 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
import 'package:flutter/painting.dart';
|
||||
|
||||
const atelierCaveDarkTheme = {
|
||||
'comment': TextStyle(color: Color(0xff7e7887)),
|
||||
'quote': TextStyle(color: Color(0xff7e7887)),
|
||||
'variable': TextStyle(color: Color(0xffbe4678)),
|
||||
'template-variable': TextStyle(color: Color(0xffbe4678)),
|
||||
'attribute': TextStyle(color: Color(0xffbe4678)),
|
||||
'regexp': TextStyle(color: Color(0xffbe4678)),
|
||||
'link': TextStyle(color: Color(0xffbe4678)),
|
||||
'tag': TextStyle(color: Color(0xffbe4678)),
|
||||
'name': TextStyle(color: Color(0xffbe4678)),
|
||||
'selector-id': TextStyle(color: Color(0xffbe4678)),
|
||||
'selector-class': TextStyle(color: Color(0xffbe4678)),
|
||||
'number': TextStyle(color: Color(0xffaa573c)),
|
||||
'meta': TextStyle(color: Color(0xffaa573c)),
|
||||
'built_in': TextStyle(color: Color(0xffaa573c)),
|
||||
'builtin-name': TextStyle(color: Color(0xffaa573c)),
|
||||
'literal': TextStyle(color: Color(0xffaa573c)),
|
||||
'type': TextStyle(color: Color(0xffaa573c)),
|
||||
'params': TextStyle(color: Color(0xffaa573c)),
|
||||
'string': TextStyle(color: Color(0xff2a9292)),
|
||||
'symbol': TextStyle(color: Color(0xff2a9292)),
|
||||
'bullet': TextStyle(color: Color(0xff2a9292)),
|
||||
'title': TextStyle(color: Color(0xff576ddb)),
|
||||
'section': TextStyle(color: Color(0xff576ddb)),
|
||||
'keyword': TextStyle(color: Color(0xff955ae7)),
|
||||
'selector-tag': TextStyle(color: Color(0xff955ae7)),
|
||||
'deletion':
|
||||
TextStyle(color: Color(0xff19171c), backgroundColor: Color(0xffbe4678)),
|
||||
'addition':
|
||||
TextStyle(color: Color(0xff19171c), backgroundColor: Color(0xff2a9292)),
|
||||
'root':
|
||||
TextStyle(backgroundColor: Color(0xff19171c), color: Color(0xff8b8792)),
|
||||
'emphasis': TextStyle(fontStyle: FontStyle.italic),
|
||||
'strong': TextStyle(fontWeight: FontWeight.bold),
|
||||
};
|
||||
39
lib/base/ui/highlight/themes/atelier-cave-light.dart
Normal file
@ -0,0 +1,39 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
import 'package:flutter/painting.dart';
|
||||
|
||||
const atelierCaveLightTheme = {
|
||||
'comment': TextStyle(color: Color(0xff655f6d)),
|
||||
'quote': TextStyle(color: Color(0xff655f6d)),
|
||||
'variable': TextStyle(color: Color(0xffbe4678)),
|
||||
'template-variable': TextStyle(color: Color(0xffbe4678)),
|
||||
'attribute': TextStyle(color: Color(0xffbe4678)),
|
||||
'tag': TextStyle(color: Color(0xffbe4678)),
|
||||
'name': TextStyle(color: Color(0xffbe4678)),
|
||||
'regexp': TextStyle(color: Color(0xffbe4678)),
|
||||
'link': TextStyle(color: Color(0xffbe4678)),
|
||||
'selector-id': TextStyle(color: Color(0xffbe4678)),
|
||||
'selector-class': TextStyle(color: Color(0xffbe4678)),
|
||||
'number': TextStyle(color: Color(0xffaa573c)),
|
||||
'meta': TextStyle(color: Color(0xffaa573c)),
|
||||
'built_in': TextStyle(color: Color(0xffaa573c)),
|
||||
'builtin-name': TextStyle(color: Color(0xffaa573c)),
|
||||
'literal': TextStyle(color: Color(0xffaa573c)),
|
||||
'type': TextStyle(color: Color(0xffaa573c)),
|
||||
'params': TextStyle(color: Color(0xffaa573c)),
|
||||
'string': TextStyle(color: Color(0xff2a9292)),
|
||||
'symbol': TextStyle(color: Color(0xff2a9292)),
|
||||
'bullet': TextStyle(color: Color(0xff2a9292)),
|
||||
'title': TextStyle(color: Color(0xff576ddb)),
|
||||
'section': TextStyle(color: Color(0xff576ddb)),
|
||||
'keyword': TextStyle(color: Color(0xff955ae7)),
|
||||
'selector-tag': TextStyle(color: Color(0xff955ae7)),
|
||||
'deletion':
|
||||
TextStyle(color: Color(0xff19171c), backgroundColor: Color(0xffbe4678)),
|
||||
'addition':
|
||||
TextStyle(color: Color(0xff19171c), backgroundColor: Color(0xff2a9292)),
|
||||
'root':
|
||||
TextStyle(backgroundColor: Color(0xffefecf4), color: Color(0xff585260)),
|
||||
'emphasis': TextStyle(fontStyle: FontStyle.italic),
|
||||
'strong': TextStyle(fontWeight: FontWeight.bold),
|
||||
};
|
||||
35
lib/base/ui/highlight/themes/atelier-dune-dark.dart
Normal file
@ -0,0 +1,35 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
import 'package:flutter/painting.dart';
|
||||
|
||||
const atelierDuneDarkTheme = {
|
||||
'comment': TextStyle(color: Color(0xff999580)),
|
||||
'quote': TextStyle(color: Color(0xff999580)),
|
||||
'variable': TextStyle(color: Color(0xffd73737)),
|
||||
'template-variable': TextStyle(color: Color(0xffd73737)),
|
||||
'attribute': TextStyle(color: Color(0xffd73737)),
|
||||
'tag': TextStyle(color: Color(0xffd73737)),
|
||||
'name': TextStyle(color: Color(0xffd73737)),
|
||||
'regexp': TextStyle(color: Color(0xffd73737)),
|
||||
'link': TextStyle(color: Color(0xffd73737)),
|
||||
'selector-id': TextStyle(color: Color(0xffd73737)),
|
||||
'selector-class': TextStyle(color: Color(0xffd73737)),
|
||||
'number': TextStyle(color: Color(0xffb65611)),
|
||||
'meta': TextStyle(color: Color(0xffb65611)),
|
||||
'built_in': TextStyle(color: Color(0xffb65611)),
|
||||
'builtin-name': TextStyle(color: Color(0xffb65611)),
|
||||
'literal': TextStyle(color: Color(0xffb65611)),
|
||||
'type': TextStyle(color: Color(0xffb65611)),
|
||||
'params': TextStyle(color: Color(0xffb65611)),
|
||||
'string': TextStyle(color: Color(0xff60ac39)),
|
||||
'symbol': TextStyle(color: Color(0xff60ac39)),
|
||||
'bullet': TextStyle(color: Color(0xff60ac39)),
|
||||
'title': TextStyle(color: Color(0xff6684e1)),
|
||||
'section': TextStyle(color: Color(0xff6684e1)),
|
||||
'keyword': TextStyle(color: Color(0xffb854d4)),
|
||||
'selector-tag': TextStyle(color: Color(0xffb854d4)),
|
||||
'root':
|
||||
TextStyle(backgroundColor: Color(0xff20201d), color: Color(0xffa6a28c)),
|
||||
'emphasis': TextStyle(fontStyle: FontStyle.italic),
|
||||
'strong': TextStyle(fontWeight: FontWeight.bold),
|
||||
};
|
||||
35
lib/base/ui/highlight/themes/atelier-dune-light.dart
Normal file
@ -0,0 +1,35 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
import 'package:flutter/painting.dart';
|
||||
|
||||
const atelierDuneLightTheme = {
|
||||
'comment': TextStyle(color: Color(0xff7d7a68)),
|
||||
'quote': TextStyle(color: Color(0xff7d7a68)),
|
||||
'variable': TextStyle(color: Color(0xffd73737)),
|
||||
'template-variable': TextStyle(color: Color(0xffd73737)),
|
||||
'attribute': TextStyle(color: Color(0xffd73737)),
|
||||
'tag': TextStyle(color: Color(0xffd73737)),
|
||||
'name': TextStyle(color: Color(0xffd73737)),
|
||||
'regexp': TextStyle(color: Color(0xffd73737)),
|
||||
'link': TextStyle(color: Color(0xffd73737)),
|
||||
'selector-id': TextStyle(color: Color(0xffd73737)),
|
||||
'selector-class': TextStyle(color: Color(0xffd73737)),
|
||||
'number': TextStyle(color: Color(0xffb65611)),
|
||||
'meta': TextStyle(color: Color(0xffb65611)),
|
||||
'built_in': TextStyle(color: Color(0xffb65611)),
|
||||
'builtin-name': TextStyle(color: Color(0xffb65611)),
|
||||
'literal': TextStyle(color: Color(0xffb65611)),
|
||||
'type': TextStyle(color: Color(0xffb65611)),
|
||||
'params': TextStyle(color: Color(0xffb65611)),
|
||||
'string': TextStyle(color: Color(0xff60ac39)),
|
||||
'symbol': TextStyle(color: Color(0xff60ac39)),
|
||||
'bullet': TextStyle(color: Color(0xff60ac39)),
|
||||
'title': TextStyle(color: Color(0xff6684e1)),
|
||||
'section': TextStyle(color: Color(0xff6684e1)),
|
||||
'keyword': TextStyle(color: Color(0xffb854d4)),
|
||||
'selector-tag': TextStyle(color: Color(0xffb854d4)),
|
||||
'root':
|
||||
TextStyle(backgroundColor: Color(0xfffefbec), color: Color(0xff6e6b5e)),
|
||||
'emphasis': TextStyle(fontStyle: FontStyle.italic),
|
||||
'strong': TextStyle(fontWeight: FontWeight.bold),
|
||||
};
|
||||
39
lib/base/ui/highlight/themes/atelier-estuary-dark.dart
Normal file
@ -0,0 +1,39 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
import 'package:flutter/painting.dart';
|
||||
|
||||
const atelierEstuaryDarkTheme = {
|
||||
'comment': TextStyle(color: Color(0xff878573)),
|
||||
'quote': TextStyle(color: Color(0xff878573)),
|
||||
'variable': TextStyle(color: Color(0xffba6236)),
|
||||
'template-variable': TextStyle(color: Color(0xffba6236)),
|
||||
'attribute': TextStyle(color: Color(0xffba6236)),
|
||||
'tag': TextStyle(color: Color(0xffba6236)),
|
||||
'name': TextStyle(color: Color(0xffba6236)),
|
||||
'regexp': TextStyle(color: Color(0xffba6236)),
|
||||
'link': TextStyle(color: Color(0xffba6236)),
|
||||
'selector-id': TextStyle(color: Color(0xffba6236)),
|
||||
'selector-class': TextStyle(color: Color(0xffba6236)),
|
||||
'number': TextStyle(color: Color(0xffae7313)),
|
||||
'meta': TextStyle(color: Color(0xffae7313)),
|
||||
'built_in': TextStyle(color: Color(0xffae7313)),
|
||||
'builtin-name': TextStyle(color: Color(0xffae7313)),
|
||||
'literal': TextStyle(color: Color(0xffae7313)),
|
||||
'type': TextStyle(color: Color(0xffae7313)),
|
||||
'params': TextStyle(color: Color(0xffae7313)),
|
||||
'string': TextStyle(color: Color(0xff7d9726)),
|
||||
'symbol': TextStyle(color: Color(0xff7d9726)),
|
||||
'bullet': TextStyle(color: Color(0xff7d9726)),
|
||||
'title': TextStyle(color: Color(0xff36a166)),
|
||||
'section': TextStyle(color: Color(0xff36a166)),
|
||||
'keyword': TextStyle(color: Color(0xff5f9182)),
|
||||
'selector-tag': TextStyle(color: Color(0xff5f9182)),
|
||||
'deletion':
|
||||
TextStyle(color: Color(0xff22221b), backgroundColor: Color(0xffba6236)),
|
||||
'addition':
|
||||
TextStyle(color: Color(0xff22221b), backgroundColor: Color(0xff7d9726)),
|
||||
'root':
|
||||
TextStyle(backgroundColor: Color(0xff22221b), color: Color(0xff929181)),
|
||||
'emphasis': TextStyle(fontStyle: FontStyle.italic),
|
||||
'strong': TextStyle(fontWeight: FontWeight.bold),
|
||||
};
|
||||
39
lib/base/ui/highlight/themes/atelier-estuary-light.dart
Normal file
@ -0,0 +1,39 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
import 'package:flutter/painting.dart';
|
||||
|
||||
const atelierEstuaryLightTheme = {
|
||||
'comment': TextStyle(color: Color(0xff6c6b5a)),
|
||||
'quote': TextStyle(color: Color(0xff6c6b5a)),
|
||||
'variable': TextStyle(color: Color(0xffba6236)),
|
||||
'template-variable': TextStyle(color: Color(0xffba6236)),
|
||||
'attribute': TextStyle(color: Color(0xffba6236)),
|
||||
'tag': TextStyle(color: Color(0xffba6236)),
|
||||
'name': TextStyle(color: Color(0xffba6236)),
|
||||
'regexp': TextStyle(color: Color(0xffba6236)),
|
||||
'link': TextStyle(color: Color(0xffba6236)),
|
||||
'selector-id': TextStyle(color: Color(0xffba6236)),
|
||||
'selector-class': TextStyle(color: Color(0xffba6236)),
|
||||
'number': TextStyle(color: Color(0xffae7313)),
|
||||
'meta': TextStyle(color: Color(0xffae7313)),
|
||||
'built_in': TextStyle(color: Color(0xffae7313)),
|
||||
'builtin-name': TextStyle(color: Color(0xffae7313)),
|
||||
'literal': TextStyle(color: Color(0xffae7313)),
|
||||
'type': TextStyle(color: Color(0xffae7313)),
|
||||
'params': TextStyle(color: Color(0xffae7313)),
|
||||
'string': TextStyle(color: Color(0xff7d9726)),
|
||||
'symbol': TextStyle(color: Color(0xff7d9726)),
|
||||
'bullet': TextStyle(color: Color(0xff7d9726)),
|
||||
'title': TextStyle(color: Color(0xff36a166)),
|
||||
'section': TextStyle(color: Color(0xff36a166)),
|
||||
'keyword': TextStyle(color: Color(0xff5f9182)),
|
||||
'selector-tag': TextStyle(color: Color(0xff5f9182)),
|
||||
'deletion':
|
||||
TextStyle(color: Color(0xff22221b), backgroundColor: Color(0xffba6236)),
|
||||
'addition':
|
||||
TextStyle(color: Color(0xff22221b), backgroundColor: Color(0xff7d9726)),
|
||||
'root':
|
||||
TextStyle(backgroundColor: Color(0xfff4f3ec), color: Color(0xff5f5e4e)),
|
||||
'emphasis': TextStyle(fontStyle: FontStyle.italic),
|
||||
'strong': TextStyle(fontWeight: FontWeight.bold),
|
||||
};
|
||||
35
lib/base/ui/highlight/themes/atelier-forest-dark.dart
Normal file
@ -0,0 +1,35 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
import 'package:flutter/painting.dart';
|
||||
|
||||
const atelierForestDarkTheme = {
|
||||
'comment': TextStyle(color: Color(0xff9c9491)),
|
||||
'quote': TextStyle(color: Color(0xff9c9491)),
|
||||
'variable': TextStyle(color: Color(0xfff22c40)),
|
||||
'template-variable': TextStyle(color: Color(0xfff22c40)),
|
||||
'attribute': TextStyle(color: Color(0xfff22c40)),
|
||||
'tag': TextStyle(color: Color(0xfff22c40)),
|
||||
'name': TextStyle(color: Color(0xfff22c40)),
|
||||
'regexp': TextStyle(color: Color(0xfff22c40)),
|
||||
'link': TextStyle(color: Color(0xfff22c40)),
|
||||
'selector-id': TextStyle(color: Color(0xfff22c40)),
|
||||
'selector-class': TextStyle(color: Color(0xfff22c40)),
|
||||
'number': TextStyle(color: Color(0xffdf5320)),
|
||||
'meta': TextStyle(color: Color(0xffdf5320)),
|
||||
'built_in': TextStyle(color: Color(0xffdf5320)),
|
||||
'builtin-name': TextStyle(color: Color(0xffdf5320)),
|
||||
'literal': TextStyle(color: Color(0xffdf5320)),
|
||||
'type': TextStyle(color: Color(0xffdf5320)),
|
||||
'params': TextStyle(color: Color(0xffdf5320)),
|
||||
'string': TextStyle(color: Color(0xff7b9726)),
|
||||
'symbol': TextStyle(color: Color(0xff7b9726)),
|
||||
'bullet': TextStyle(color: Color(0xff7b9726)),
|
||||
'title': TextStyle(color: Color(0xff407ee7)),
|
||||
'section': TextStyle(color: Color(0xff407ee7)),
|
||||
'keyword': TextStyle(color: Color(0xff6666ea)),
|
||||
'selector-tag': TextStyle(color: Color(0xff6666ea)),
|
||||
'root':
|
||||
TextStyle(backgroundColor: Color(0xff1b1918), color: Color(0xffa8a19f)),
|
||||
'emphasis': TextStyle(fontStyle: FontStyle.italic),
|
||||
'strong': TextStyle(fontWeight: FontWeight.bold),
|
||||
};
|
||||
35
lib/base/ui/highlight/themes/atelier-forest-light.dart
Normal file
@ -0,0 +1,35 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
import 'package:flutter/painting.dart';
|
||||
|
||||
const atelierForestLightTheme = {
|
||||
'comment': TextStyle(color: Color(0xff766e6b)),
|
||||
'quote': TextStyle(color: Color(0xff766e6b)),
|
||||
'variable': TextStyle(color: Color(0xfff22c40)),
|
||||
'template-variable': TextStyle(color: Color(0xfff22c40)),
|
||||
'attribute': TextStyle(color: Color(0xfff22c40)),
|
||||
'tag': TextStyle(color: Color(0xfff22c40)),
|
||||
'name': TextStyle(color: Color(0xfff22c40)),
|
||||
'regexp': TextStyle(color: Color(0xfff22c40)),
|
||||
'link': TextStyle(color: Color(0xfff22c40)),
|
||||
'selector-id': TextStyle(color: Color(0xfff22c40)),
|
||||
'selector-class': TextStyle(color: Color(0xfff22c40)),
|
||||
'number': TextStyle(color: Color(0xffdf5320)),
|
||||
'meta': TextStyle(color: Color(0xffdf5320)),
|
||||
'built_in': TextStyle(color: Color(0xffdf5320)),
|
||||
'builtin-name': TextStyle(color: Color(0xffdf5320)),
|
||||
'literal': TextStyle(color: Color(0xffdf5320)),
|
||||
'type': TextStyle(color: Color(0xffdf5320)),
|
||||
'params': TextStyle(color: Color(0xffdf5320)),
|
||||
'string': TextStyle(color: Color(0xff7b9726)),
|
||||
'symbol': TextStyle(color: Color(0xff7b9726)),
|
||||
'bullet': TextStyle(color: Color(0xff7b9726)),
|
||||
'title': TextStyle(color: Color(0xff407ee7)),
|
||||
'section': TextStyle(color: Color(0xff407ee7)),
|
||||
'keyword': TextStyle(color: Color(0xff6666ea)),
|
||||
'selector-tag': TextStyle(color: Color(0xff6666ea)),
|
||||
'root':
|
||||
TextStyle(backgroundColor: Color(0xfff1efee), color: Color(0xff68615e)),
|
||||
'emphasis': TextStyle(fontStyle: FontStyle.italic),
|
||||
'strong': TextStyle(fontWeight: FontWeight.bold),
|
||||
};
|
||||
35
lib/base/ui/highlight/themes/atelier-heath-dark.dart
Normal file
@ -0,0 +1,35 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
import 'package:flutter/painting.dart';
|
||||
|
||||
const atelierHeathDarkTheme = {
|
||||
'comment': TextStyle(color: Color(0xff9e8f9e)),
|
||||
'quote': TextStyle(color: Color(0xff9e8f9e)),
|
||||
'variable': TextStyle(color: Color(0xffca402b)),
|
||||
'template-variable': TextStyle(color: Color(0xffca402b)),
|
||||
'attribute': TextStyle(color: Color(0xffca402b)),
|
||||
'tag': TextStyle(color: Color(0xffca402b)),
|
||||
'name': TextStyle(color: Color(0xffca402b)),
|
||||
'regexp': TextStyle(color: Color(0xffca402b)),
|
||||
'link': TextStyle(color: Color(0xffca402b)),
|
||||
'selector-id': TextStyle(color: Color(0xffca402b)),
|
||||
'selector-class': TextStyle(color: Color(0xffca402b)),
|
||||
'number': TextStyle(color: Color(0xffa65926)),
|
||||
'meta': TextStyle(color: Color(0xffa65926)),
|
||||
'built_in': TextStyle(color: Color(0xffa65926)),
|
||||
'builtin-name': TextStyle(color: Color(0xffa65926)),
|
||||
'literal': TextStyle(color: Color(0xffa65926)),
|
||||
'type': TextStyle(color: Color(0xffa65926)),
|
||||
'params': TextStyle(color: Color(0xffa65926)),
|
||||
'string': TextStyle(color: Color(0xff918b3b)),
|
||||
'symbol': TextStyle(color: Color(0xff918b3b)),
|
||||
'bullet': TextStyle(color: Color(0xff918b3b)),
|
||||
'title': TextStyle(color: Color(0xff516aec)),
|
||||
'section': TextStyle(color: Color(0xff516aec)),
|
||||
'keyword': TextStyle(color: Color(0xff7b59c0)),
|
||||
'selector-tag': TextStyle(color: Color(0xff7b59c0)),
|
||||
'root':
|
||||
TextStyle(backgroundColor: Color(0xff1b181b), color: Color(0xffab9bab)),
|
||||
'emphasis': TextStyle(fontStyle: FontStyle.italic),
|
||||
'strong': TextStyle(fontWeight: FontWeight.bold),
|
||||
};
|
||||
35
lib/base/ui/highlight/themes/atelier-heath-light.dart
Normal file
@ -0,0 +1,35 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
import 'package:flutter/painting.dart';
|
||||
|
||||
const atelierHeathLightTheme = {
|
||||
'comment': TextStyle(color: Color(0xff776977)),
|
||||
'quote': TextStyle(color: Color(0xff776977)),
|
||||
'variable': TextStyle(color: Color(0xffca402b)),
|
||||
'template-variable': TextStyle(color: Color(0xffca402b)),
|
||||
'attribute': TextStyle(color: Color(0xffca402b)),
|
||||
'tag': TextStyle(color: Color(0xffca402b)),
|
||||
'name': TextStyle(color: Color(0xffca402b)),
|
||||
'regexp': TextStyle(color: Color(0xffca402b)),
|
||||
'link': TextStyle(color: Color(0xffca402b)),
|
||||
'selector-id': TextStyle(color: Color(0xffca402b)),
|
||||
'selector-class': TextStyle(color: Color(0xffca402b)),
|
||||
'number': TextStyle(color: Color(0xffa65926)),
|
||||
'meta': TextStyle(color: Color(0xffa65926)),
|
||||
'built_in': TextStyle(color: Color(0xffa65926)),
|
||||
'builtin-name': TextStyle(color: Color(0xffa65926)),
|
||||
'literal': TextStyle(color: Color(0xffa65926)),
|
||||
'type': TextStyle(color: Color(0xffa65926)),
|
||||
'params': TextStyle(color: Color(0xffa65926)),
|
||||
'string': TextStyle(color: Color(0xff918b3b)),
|
||||
'symbol': TextStyle(color: Color(0xff918b3b)),
|
||||
'bullet': TextStyle(color: Color(0xff918b3b)),
|
||||
'title': TextStyle(color: Color(0xff516aec)),
|
||||
'section': TextStyle(color: Color(0xff516aec)),
|
||||
'keyword': TextStyle(color: Color(0xff7b59c0)),
|
||||
'selector-tag': TextStyle(color: Color(0xff7b59c0)),
|
||||
'root':
|
||||
TextStyle(backgroundColor: Color(0xfff7f3f7), color: Color(0xff695d69)),
|
||||
'emphasis': TextStyle(fontStyle: FontStyle.italic),
|
||||
'strong': TextStyle(fontWeight: FontWeight.bold),
|
||||
};
|
||||
35
lib/base/ui/highlight/themes/atelier-lakeside-dark.dart
Normal file
@ -0,0 +1,35 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
import 'package:flutter/painting.dart';
|
||||
|
||||
const atelierLakesideDarkTheme = {
|
||||
'comment': TextStyle(color: Color(0xff7195a8)),
|
||||
'quote': TextStyle(color: Color(0xff7195a8)),
|
||||
'variable': TextStyle(color: Color(0xffd22d72)),
|
||||
'template-variable': TextStyle(color: Color(0xffd22d72)),
|
||||
'attribute': TextStyle(color: Color(0xffd22d72)),
|
||||
'tag': TextStyle(color: Color(0xffd22d72)),
|
||||
'name': TextStyle(color: Color(0xffd22d72)),
|
||||
'regexp': TextStyle(color: Color(0xffd22d72)),
|
||||
'link': TextStyle(color: Color(0xffd22d72)),
|
||||
'selector-id': TextStyle(color: Color(0xffd22d72)),
|
||||
'selector-class': TextStyle(color: Color(0xffd22d72)),
|
||||
'number': TextStyle(color: Color(0xff935c25)),
|
||||
'meta': TextStyle(color: Color(0xff935c25)),
|
||||
'built_in': TextStyle(color: Color(0xff935c25)),
|
||||
'builtin-name': TextStyle(color: Color(0xff935c25)),
|
||||
'literal': TextStyle(color: Color(0xff935c25)),
|
||||
'type': TextStyle(color: Color(0xff935c25)),
|
||||
'params': TextStyle(color: Color(0xff935c25)),
|
||||
'string': TextStyle(color: Color(0xff568c3b)),
|
||||
'symbol': TextStyle(color: Color(0xff568c3b)),
|
||||
'bullet': TextStyle(color: Color(0xff568c3b)),
|
||||
'title': TextStyle(color: Color(0xff257fad)),
|
||||
'section': TextStyle(color: Color(0xff257fad)),
|
||||
'keyword': TextStyle(color: Color(0xff6b6bb8)),
|
||||
'selector-tag': TextStyle(color: Color(0xff6b6bb8)),
|
||||
'root':
|
||||
TextStyle(backgroundColor: Color(0xff161b1d), color: Color(0xff7ea2b4)),
|
||||
'emphasis': TextStyle(fontStyle: FontStyle.italic),
|
||||
'strong': TextStyle(fontWeight: FontWeight.bold),
|
||||
};
|
||||
35
lib/base/ui/highlight/themes/atelier-lakeside-light.dart
Normal file
@ -0,0 +1,35 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
import 'package:flutter/painting.dart';
|
||||
|
||||
const atelierLakesideLightTheme = {
|
||||
'comment': TextStyle(color: Color(0xff5a7b8c)),
|
||||
'quote': TextStyle(color: Color(0xff5a7b8c)),
|
||||
'variable': TextStyle(color: Color(0xffd22d72)),
|
||||
'template-variable': TextStyle(color: Color(0xffd22d72)),
|
||||
'attribute': TextStyle(color: Color(0xffd22d72)),
|
||||
'tag': TextStyle(color: Color(0xffd22d72)),
|
||||
'name': TextStyle(color: Color(0xffd22d72)),
|
||||
'regexp': TextStyle(color: Color(0xffd22d72)),
|
||||
'link': TextStyle(color: Color(0xffd22d72)),
|
||||
'selector-id': TextStyle(color: Color(0xffd22d72)),
|
||||
'selector-class': TextStyle(color: Color(0xffd22d72)),
|
||||
'number': TextStyle(color: Color(0xff935c25)),
|
||||
'meta': TextStyle(color: Color(0xff935c25)),
|
||||
'built_in': TextStyle(color: Color(0xff935c25)),
|
||||
'builtin-name': TextStyle(color: Color(0xff935c25)),
|
||||
'literal': TextStyle(color: Color(0xff935c25)),
|
||||
'type': TextStyle(color: Color(0xff935c25)),
|
||||
'params': TextStyle(color: Color(0xff935c25)),
|
||||
'string': TextStyle(color: Color(0xff568c3b)),
|
||||
'symbol': TextStyle(color: Color(0xff568c3b)),
|
||||
'bullet': TextStyle(color: Color(0xff568c3b)),
|
||||
'title': TextStyle(color: Color(0xff257fad)),
|
||||
'section': TextStyle(color: Color(0xff257fad)),
|
||||
'keyword': TextStyle(color: Color(0xff6b6bb8)),
|
||||
'selector-tag': TextStyle(color: Color(0xff6b6bb8)),
|
||||
'root':
|
||||
TextStyle(backgroundColor: Color(0xffebf8ff), color: Color(0xff516d7b)),
|
||||
'emphasis': TextStyle(fontStyle: FontStyle.italic),
|
||||
'strong': TextStyle(fontWeight: FontWeight.bold),
|
||||
};
|
||||
39
lib/base/ui/highlight/themes/atelier-plateau-dark.dart
Normal file
@ -0,0 +1,39 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
import 'package:flutter/painting.dart';
|
||||
|
||||
const atelierPlateauDarkTheme = {
|
||||
'comment': TextStyle(color: Color(0xff7e7777)),
|
||||
'quote': TextStyle(color: Color(0xff7e7777)),
|
||||
'variable': TextStyle(color: Color(0xffca4949)),
|
||||
'template-variable': TextStyle(color: Color(0xffca4949)),
|
||||
'attribute': TextStyle(color: Color(0xffca4949)),
|
||||
'tag': TextStyle(color: Color(0xffca4949)),
|
||||
'name': TextStyle(color: Color(0xffca4949)),
|
||||
'regexp': TextStyle(color: Color(0xffca4949)),
|
||||
'link': TextStyle(color: Color(0xffca4949)),
|
||||
'selector-id': TextStyle(color: Color(0xffca4949)),
|
||||
'selector-class': TextStyle(color: Color(0xffca4949)),
|
||||
'number': TextStyle(color: Color(0xffb45a3c)),
|
||||
'meta': TextStyle(color: Color(0xffb45a3c)),
|
||||
'built_in': TextStyle(color: Color(0xffb45a3c)),
|
||||
'builtin-name': TextStyle(color: Color(0xffb45a3c)),
|
||||
'literal': TextStyle(color: Color(0xffb45a3c)),
|
||||
'type': TextStyle(color: Color(0xffb45a3c)),
|
||||
'params': TextStyle(color: Color(0xffb45a3c)),
|
||||
'string': TextStyle(color: Color(0xff4b8b8b)),
|
||||
'symbol': TextStyle(color: Color(0xff4b8b8b)),
|
||||
'bullet': TextStyle(color: Color(0xff4b8b8b)),
|
||||
'title': TextStyle(color: Color(0xff7272ca)),
|
||||
'section': TextStyle(color: Color(0xff7272ca)),
|
||||
'keyword': TextStyle(color: Color(0xff8464c4)),
|
||||
'selector-tag': TextStyle(color: Color(0xff8464c4)),
|
||||
'deletion':
|
||||
TextStyle(color: Color(0xff1b1818), backgroundColor: Color(0xffca4949)),
|
||||
'addition':
|
||||
TextStyle(color: Color(0xff1b1818), backgroundColor: Color(0xff4b8b8b)),
|
||||
'root':
|
||||
TextStyle(backgroundColor: Color(0xff1b1818), color: Color(0xff8a8585)),
|
||||
'emphasis': TextStyle(fontStyle: FontStyle.italic),
|
||||
'strong': TextStyle(fontWeight: FontWeight.bold),
|
||||
};
|
||||
39
lib/base/ui/highlight/themes/atelier-plateau-light.dart
Normal file
@ -0,0 +1,39 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
import 'package:flutter/painting.dart';
|
||||
|
||||
const atelierPlateauLightTheme = {
|
||||
'comment': TextStyle(color: Color(0xff655d5d)),
|
||||
'quote': TextStyle(color: Color(0xff655d5d)),
|
||||
'variable': TextStyle(color: Color(0xffca4949)),
|
||||
'template-variable': TextStyle(color: Color(0xffca4949)),
|
||||
'attribute': TextStyle(color: Color(0xffca4949)),
|
||||
'tag': TextStyle(color: Color(0xffca4949)),
|
||||
'name': TextStyle(color: Color(0xffca4949)),
|
||||
'regexp': TextStyle(color: Color(0xffca4949)),
|
||||
'link': TextStyle(color: Color(0xffca4949)),
|
||||
'selector-id': TextStyle(color: Color(0xffca4949)),
|
||||
'selector-class': TextStyle(color: Color(0xffca4949)),
|
||||
'number': TextStyle(color: Color(0xffb45a3c)),
|
||||
'meta': TextStyle(color: Color(0xffb45a3c)),
|
||||
'built_in': TextStyle(color: Color(0xffb45a3c)),
|
||||
'builtin-name': TextStyle(color: Color(0xffb45a3c)),
|
||||
'literal': TextStyle(color: Color(0xffb45a3c)),
|
||||
'type': TextStyle(color: Color(0xffb45a3c)),
|
||||
'params': TextStyle(color: Color(0xffb45a3c)),
|
||||
'string': TextStyle(color: Color(0xff4b8b8b)),
|
||||
'symbol': TextStyle(color: Color(0xff4b8b8b)),
|
||||
'bullet': TextStyle(color: Color(0xff4b8b8b)),
|
||||
'title': TextStyle(color: Color(0xff7272ca)),
|
||||
'section': TextStyle(color: Color(0xff7272ca)),
|
||||
'keyword': TextStyle(color: Color(0xff8464c4)),
|
||||
'selector-tag': TextStyle(color: Color(0xff8464c4)),
|
||||
'deletion':
|
||||
TextStyle(color: Color(0xff1b1818), backgroundColor: Color(0xffca4949)),
|
||||
'addition':
|
||||
TextStyle(color: Color(0xff1b1818), backgroundColor: Color(0xff4b8b8b)),
|
||||
'root':
|
||||
TextStyle(backgroundColor: Color(0xfff4ecec), color: Color(0xff585050)),
|
||||
'emphasis': TextStyle(fontStyle: FontStyle.italic),
|
||||
'strong': TextStyle(fontWeight: FontWeight.bold),
|
||||
};
|
||||
39
lib/base/ui/highlight/themes/atelier-savanna-dark.dart
Normal file
@ -0,0 +1,39 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
import 'package:flutter/painting.dart';
|
||||
|
||||
const atelierSavannaDarkTheme = {
|
||||
'comment': TextStyle(color: Color(0xff78877d)),
|
||||
'quote': TextStyle(color: Color(0xff78877d)),
|
||||
'variable': TextStyle(color: Color(0xffb16139)),
|
||||
'template-variable': TextStyle(color: Color(0xffb16139)),
|
||||
'attribute': TextStyle(color: Color(0xffb16139)),
|
||||
'tag': TextStyle(color: Color(0xffb16139)),
|
||||
'name': TextStyle(color: Color(0xffb16139)),
|
||||
'regexp': TextStyle(color: Color(0xffb16139)),
|
||||
'link': TextStyle(color: Color(0xffb16139)),
|
||||
'selector-id': TextStyle(color: Color(0xffb16139)),
|
||||
'selector-class': TextStyle(color: Color(0xffb16139)),
|
||||
'number': TextStyle(color: Color(0xff9f713c)),
|
||||
'meta': TextStyle(color: Color(0xff9f713c)),
|
||||
'built_in': TextStyle(color: Color(0xff9f713c)),
|
||||
'builtin-name': TextStyle(color: Color(0xff9f713c)),
|
||||
'literal': TextStyle(color: Color(0xff9f713c)),
|
||||
'type': TextStyle(color: Color(0xff9f713c)),
|
||||
'params': TextStyle(color: Color(0xff9f713c)),
|
||||
'string': TextStyle(color: Color(0xff489963)),
|
||||
'symbol': TextStyle(color: Color(0xff489963)),
|
||||
'bullet': TextStyle(color: Color(0xff489963)),
|
||||
'title': TextStyle(color: Color(0xff478c90)),
|
||||
'section': TextStyle(color: Color(0xff478c90)),
|
||||
'keyword': TextStyle(color: Color(0xff55859b)),
|
||||
'selector-tag': TextStyle(color: Color(0xff55859b)),
|
||||
'deletion':
|
||||
TextStyle(color: Color(0xff171c19), backgroundColor: Color(0xffb16139)),
|
||||
'addition':
|
||||
TextStyle(color: Color(0xff171c19), backgroundColor: Color(0xff489963)),
|
||||
'root':
|
||||
TextStyle(backgroundColor: Color(0xff171c19), color: Color(0xff87928a)),
|
||||
'emphasis': TextStyle(fontStyle: FontStyle.italic),
|
||||
'strong': TextStyle(fontWeight: FontWeight.bold),
|
||||
};
|
||||
39
lib/base/ui/highlight/themes/atelier-savanna-light.dart
Normal file
@ -0,0 +1,39 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
import 'package:flutter/painting.dart';
|
||||
|
||||
const atelierSavannaLightTheme = {
|
||||
'comment': TextStyle(color: Color(0xff5f6d64)),
|
||||
'quote': TextStyle(color: Color(0xff5f6d64)),
|
||||
'variable': TextStyle(color: Color(0xffb16139)),
|
||||
'template-variable': TextStyle(color: Color(0xffb16139)),
|
||||
'attribute': TextStyle(color: Color(0xffb16139)),
|
||||
'tag': TextStyle(color: Color(0xffb16139)),
|
||||
'name': TextStyle(color: Color(0xffb16139)),
|
||||
'regexp': TextStyle(color: Color(0xffb16139)),
|
||||
'link': TextStyle(color: Color(0xffb16139)),
|
||||
'selector-id': TextStyle(color: Color(0xffb16139)),
|
||||
'selector-class': TextStyle(color: Color(0xffb16139)),
|
||||
'number': TextStyle(color: Color(0xff9f713c)),
|
||||
'meta': TextStyle(color: Color(0xff9f713c)),
|
||||
'built_in': TextStyle(color: Color(0xff9f713c)),
|
||||
'builtin-name': TextStyle(color: Color(0xff9f713c)),
|
||||
'literal': TextStyle(color: Color(0xff9f713c)),
|
||||
'type': TextStyle(color: Color(0xff9f713c)),
|
||||
'params': TextStyle(color: Color(0xff9f713c)),
|
||||
'string': TextStyle(color: Color(0xff489963)),
|
||||
'symbol': TextStyle(color: Color(0xff489963)),
|
||||
'bullet': TextStyle(color: Color(0xff489963)),
|
||||
'title': TextStyle(color: Color(0xff478c90)),
|
||||
'section': TextStyle(color: Color(0xff478c90)),
|
||||
'keyword': TextStyle(color: Color(0xff55859b)),
|
||||
'selector-tag': TextStyle(color: Color(0xff55859b)),
|
||||
'deletion':
|
||||
TextStyle(color: Color(0xff171c19), backgroundColor: Color(0xffb16139)),
|
||||
'addition':
|
||||
TextStyle(color: Color(0xff171c19), backgroundColor: Color(0xff489963)),
|
||||
'root':
|
||||
TextStyle(backgroundColor: Color(0xffecf4ee), color: Color(0xff526057)),
|
||||
'emphasis': TextStyle(fontStyle: FontStyle.italic),
|
||||
'strong': TextStyle(fontWeight: FontWeight.bold),
|
||||
};
|
||||
35
lib/base/ui/highlight/themes/atelier-seaside-dark.dart
Normal file
@ -0,0 +1,35 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
import 'package:flutter/painting.dart';
|
||||
|
||||
const atelierSeasideDarkTheme = {
|
||||
'comment': TextStyle(color: Color(0xff809980)),
|
||||
'quote': TextStyle(color: Color(0xff809980)),
|
||||
'variable': TextStyle(color: Color(0xffe6193c)),
|
||||
'template-variable': TextStyle(color: Color(0xffe6193c)),
|
||||
'attribute': TextStyle(color: Color(0xffe6193c)),
|
||||
'tag': TextStyle(color: Color(0xffe6193c)),
|
||||
'name': TextStyle(color: Color(0xffe6193c)),
|
||||
'regexp': TextStyle(color: Color(0xffe6193c)),
|
||||
'link': TextStyle(color: Color(0xffe6193c)),
|
||||
'selector-id': TextStyle(color: Color(0xffe6193c)),
|
||||
'selector-class': TextStyle(color: Color(0xffe6193c)),
|
||||
'number': TextStyle(color: Color(0xff87711d)),
|
||||
'meta': TextStyle(color: Color(0xff87711d)),
|
||||
'built_in': TextStyle(color: Color(0xff87711d)),
|
||||
'builtin-name': TextStyle(color: Color(0xff87711d)),
|
||||
'literal': TextStyle(color: Color(0xff87711d)),
|
||||
'type': TextStyle(color: Color(0xff87711d)),
|
||||
'params': TextStyle(color: Color(0xff87711d)),
|
||||
'string': TextStyle(color: Color(0xff29a329)),
|
||||
'symbol': TextStyle(color: Color(0xff29a329)),
|
||||
'bullet': TextStyle(color: Color(0xff29a329)),
|
||||
'title': TextStyle(color: Color(0xff3d62f5)),
|
||||
'section': TextStyle(color: Color(0xff3d62f5)),
|
||||
'keyword': TextStyle(color: Color(0xffad2bee)),
|
||||
'selector-tag': TextStyle(color: Color(0xffad2bee)),
|
||||
'root':
|
||||
TextStyle(backgroundColor: Color(0xff131513), color: Color(0xff8ca68c)),
|
||||
'emphasis': TextStyle(fontStyle: FontStyle.italic),
|
||||
'strong': TextStyle(fontWeight: FontWeight.bold),
|
||||
};
|
||||
35
lib/base/ui/highlight/themes/atelier-seaside-light.dart
Normal file
@ -0,0 +1,35 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
import 'package:flutter/painting.dart';
|
||||
|
||||
const atelierSeasideLightTheme = {
|
||||
'comment': TextStyle(color: Color(0xff687d68)),
|
||||
'quote': TextStyle(color: Color(0xff687d68)),
|
||||
'variable': TextStyle(color: Color(0xffe6193c)),
|
||||
'template-variable': TextStyle(color: Color(0xffe6193c)),
|
||||
'attribute': TextStyle(color: Color(0xffe6193c)),
|
||||
'tag': TextStyle(color: Color(0xffe6193c)),
|
||||
'name': TextStyle(color: Color(0xffe6193c)),
|
||||
'regexp': TextStyle(color: Color(0xffe6193c)),
|
||||
'link': TextStyle(color: Color(0xffe6193c)),
|
||||
'selector-id': TextStyle(color: Color(0xffe6193c)),
|
||||
'selector-class': TextStyle(color: Color(0xffe6193c)),
|
||||
'number': TextStyle(color: Color(0xff87711d)),
|
||||
'meta': TextStyle(color: Color(0xff87711d)),
|
||||
'built_in': TextStyle(color: Color(0xff87711d)),
|
||||
'builtin-name': TextStyle(color: Color(0xff87711d)),
|
||||
'literal': TextStyle(color: Color(0xff87711d)),
|
||||
'type': TextStyle(color: Color(0xff87711d)),
|
||||
'params': TextStyle(color: Color(0xff87711d)),
|
||||
'string': TextStyle(color: Color(0xff29a329)),
|
||||
'symbol': TextStyle(color: Color(0xff29a329)),
|
||||
'bullet': TextStyle(color: Color(0xff29a329)),
|
||||
'title': TextStyle(color: Color(0xff3d62f5)),
|
||||
'section': TextStyle(color: Color(0xff3d62f5)),
|
||||
'keyword': TextStyle(color: Color(0xffad2bee)),
|
||||
'selector-tag': TextStyle(color: Color(0xffad2bee)),
|
||||
'root':
|
||||
TextStyle(backgroundColor: Color(0xfff4fbf4), color: Color(0xff5e6e5e)),
|
||||
'emphasis': TextStyle(fontStyle: FontStyle.italic),
|
||||
'strong': TextStyle(fontWeight: FontWeight.bold),
|
||||
};
|
||||
35
lib/base/ui/highlight/themes/atelier-sulphurpool-dark.dart
Normal file
@ -0,0 +1,35 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
import 'package:flutter/painting.dart';
|
||||
|
||||
const atelierSulphurpoolDarkTheme = {
|
||||
'comment': TextStyle(color: Color(0xff898ea4)),
|
||||
'quote': TextStyle(color: Color(0xff898ea4)),
|
||||
'variable': TextStyle(color: Color(0xffc94922)),
|
||||
'template-variable': TextStyle(color: Color(0xffc94922)),
|
||||
'attribute': TextStyle(color: Color(0xffc94922)),
|
||||
'tag': TextStyle(color: Color(0xffc94922)),
|
||||
'name': TextStyle(color: Color(0xffc94922)),
|
||||
'regexp': TextStyle(color: Color(0xffc94922)),
|
||||
'link': TextStyle(color: Color(0xffc94922)),
|
||||
'selector-id': TextStyle(color: Color(0xffc94922)),
|
||||
'selector-class': TextStyle(color: Color(0xffc94922)),
|
||||
'number': TextStyle(color: Color(0xffc76b29)),
|
||||
'meta': TextStyle(color: Color(0xffc76b29)),
|
||||
'built_in': TextStyle(color: Color(0xffc76b29)),
|
||||
'builtin-name': TextStyle(color: Color(0xffc76b29)),
|
||||
'literal': TextStyle(color: Color(0xffc76b29)),
|
||||
'type': TextStyle(color: Color(0xffc76b29)),
|
||||
'params': TextStyle(color: Color(0xffc76b29)),
|
||||
'string': TextStyle(color: Color(0xffac9739)),
|
||||
'symbol': TextStyle(color: Color(0xffac9739)),
|
||||
'bullet': TextStyle(color: Color(0xffac9739)),
|
||||
'title': TextStyle(color: Color(0xff3d8fd1)),
|
||||
'section': TextStyle(color: Color(0xff3d8fd1)),
|
||||
'keyword': TextStyle(color: Color(0xff6679cc)),
|
||||
'selector-tag': TextStyle(color: Color(0xff6679cc)),
|
||||
'root':
|
||||
TextStyle(backgroundColor: Color(0xff202746), color: Color(0xff979db4)),
|
||||
'emphasis': TextStyle(fontStyle: FontStyle.italic),
|
||||
'strong': TextStyle(fontWeight: FontWeight.bold),
|
||||
};
|
||||
35
lib/base/ui/highlight/themes/atelier-sulphurpool-light.dart
Normal file
@ -0,0 +1,35 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
import 'package:flutter/painting.dart';
|
||||
|
||||
const atelierSulphurpoolLightTheme = {
|
||||
'comment': TextStyle(color: Color(0xff6b7394)),
|
||||
'quote': TextStyle(color: Color(0xff6b7394)),
|
||||
'variable': TextStyle(color: Color(0xffc94922)),
|
||||
'template-variable': TextStyle(color: Color(0xffc94922)),
|
||||
'attribute': TextStyle(color: Color(0xffc94922)),
|
||||
'tag': TextStyle(color: Color(0xffc94922)),
|
||||
'name': TextStyle(color: Color(0xffc94922)),
|
||||
'regexp': TextStyle(color: Color(0xffc94922)),
|
||||
'link': TextStyle(color: Color(0xffc94922)),
|
||||
'selector-id': TextStyle(color: Color(0xffc94922)),
|
||||
'selector-class': TextStyle(color: Color(0xffc94922)),
|
||||
'number': TextStyle(color: Color(0xffc76b29)),
|
||||
'meta': TextStyle(color: Color(0xffc76b29)),
|
||||
'built_in': TextStyle(color: Color(0xffc76b29)),
|
||||
'builtin-name': TextStyle(color: Color(0xffc76b29)),
|
||||
'literal': TextStyle(color: Color(0xffc76b29)),
|
||||
'type': TextStyle(color: Color(0xffc76b29)),
|
||||
'params': TextStyle(color: Color(0xffc76b29)),
|
||||
'string': TextStyle(color: Color(0xffac9739)),
|
||||
'symbol': TextStyle(color: Color(0xffac9739)),
|
||||
'bullet': TextStyle(color: Color(0xffac9739)),
|
||||
'title': TextStyle(color: Color(0xff3d8fd1)),
|
||||
'section': TextStyle(color: Color(0xff3d8fd1)),
|
||||
'keyword': TextStyle(color: Color(0xff6679cc)),
|
||||
'selector-tag': TextStyle(color: Color(0xff6679cc)),
|
||||
'root':
|
||||
TextStyle(backgroundColor: Color(0xfff5f7ff), color: Color(0xff5e6687)),
|
||||
'emphasis': TextStyle(fontStyle: FontStyle.italic),
|
||||
'strong': TextStyle(fontWeight: FontWeight.bold),
|
||||
};
|
||||
44
lib/base/ui/highlight/themes/atom-one-dark-reasonable.dart
Normal file
@ -0,0 +1,44 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
import 'package:flutter/painting.dart';
|
||||
|
||||
const atomOneDarkReasonableTheme = {
|
||||
'root':
|
||||
TextStyle(color: Color(0xffabb2bf), backgroundColor: Color(0xff282c34)),
|
||||
'keyword': TextStyle(color: Color(0xffF92672)),
|
||||
'operator': TextStyle(color: Color(0xffF92672)),
|
||||
'pattern-match': TextStyle(color: Color(0xffF92672)),
|
||||
'function': TextStyle(color: Color(0xff61aeee)),
|
||||
'comment': TextStyle(color: Color(0xffb18eb1), fontStyle: FontStyle.italic),
|
||||
'quote': TextStyle(color: Color(0xffb18eb1), fontStyle: FontStyle.italic),
|
||||
'doctag': TextStyle(color: Color(0xffc678dd)),
|
||||
'formula': TextStyle(color: Color(0xffc678dd)),
|
||||
'section': TextStyle(color: Color(0xffe06c75)),
|
||||
'name': TextStyle(color: Color(0xffe06c75)),
|
||||
'selector-tag': TextStyle(color: Color(0xffe06c75)),
|
||||
'deletion': TextStyle(color: Color(0xffe06c75)),
|
||||
'subst': TextStyle(color: Color(0xffe06c75)),
|
||||
'literal': TextStyle(color: Color(0xff56b6c2)),
|
||||
'string': TextStyle(color: Color(0xff98c379)),
|
||||
'regexp': TextStyle(color: Color(0xff98c379)),
|
||||
'addition': TextStyle(color: Color(0xff98c379)),
|
||||
'attribute': TextStyle(color: Color(0xff98c379)),
|
||||
'meta-string': TextStyle(color: Color(0xff98c379)),
|
||||
'built_in': TextStyle(color: Color(0xffe6c07b)),
|
||||
'attr': TextStyle(color: Color(0xffd19a66)),
|
||||
'variable': TextStyle(color: Color(0xffd19a66)),
|
||||
'template-variable': TextStyle(color: Color(0xffd19a66)),
|
||||
'type': TextStyle(color: Color(0xffd19a66)),
|
||||
'selector-class': TextStyle(color: Color(0xffd19a66)),
|
||||
'selector-attr': TextStyle(color: Color(0xffd19a66)),
|
||||
'selector-pseudo': TextStyle(color: Color(0xffd19a66)),
|
||||
'number': TextStyle(color: Color(0xffd19a66)),
|
||||
'symbol': TextStyle(color: Color(0xff61aeee)),
|
||||
'bullet': TextStyle(color: Color(0xff61aeee)),
|
||||
'link': TextStyle(color: Color(0xff61aeee)),
|
||||
'meta': TextStyle(color: Color(0xff61aeee)),
|
||||
'selector-id': TextStyle(color: Color(0xff61aeee)),
|
||||
'title': TextStyle(color: Color(0xff61aeee)),
|
||||
'emphasis': TextStyle(fontStyle: FontStyle.italic),
|
||||
'strong': TextStyle(fontWeight: FontWeight.bold),
|
||||
};
|
||||
41
lib/base/ui/highlight/themes/atom-one-dark.dart
Normal file
@ -0,0 +1,41 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
import 'package:flutter/painting.dart';
|
||||
|
||||
const atomOneDarkTheme = {
|
||||
'root':
|
||||
TextStyle(color: Color(0xffabb2bf), backgroundColor: Color(0xff282c34)),
|
||||
'comment': TextStyle(color: Color(0xff5c6370), fontStyle: FontStyle.italic),
|
||||
'quote': TextStyle(color: Color(0xff5c6370), fontStyle: FontStyle.italic),
|
||||
'doctag': TextStyle(color: Color(0xffc678dd)),
|
||||
'keyword': TextStyle(color: Color(0xffc678dd)),
|
||||
'formula': TextStyle(color: Color(0xffc678dd)),
|
||||
'section': TextStyle(color: Color(0xffe06c75)),
|
||||
'name': TextStyle(color: Color(0xffe06c75)),
|
||||
'selector-tag': TextStyle(color: Color(0xffe06c75)),
|
||||
'deletion': TextStyle(color: Color(0xffe06c75)),
|
||||
'subst': TextStyle(color: Color(0xffe06c75)),
|
||||
'literal': TextStyle(color: Color(0xff56b6c2)),
|
||||
'string': TextStyle(color: Color(0xff98c379)),
|
||||
'regexp': TextStyle(color: Color(0xff98c379)),
|
||||
'addition': TextStyle(color: Color(0xff98c379)),
|
||||
'attribute': TextStyle(color: Color(0xff98c379)),
|
||||
'meta-string': TextStyle(color: Color(0xff98c379)),
|
||||
'built_in': TextStyle(color: Color(0xffe6c07b)),
|
||||
'attr': TextStyle(color: Color(0xffd19a66)),
|
||||
'variable': TextStyle(color: Color(0xffd19a66)),
|
||||
'template-variable': TextStyle(color: Color(0xffd19a66)),
|
||||
'type': TextStyle(color: Color(0xffd19a66)),
|
||||
'selector-class': TextStyle(color: Color(0xffd19a66)),
|
||||
'selector-attr': TextStyle(color: Color(0xffd19a66)),
|
||||
'selector-pseudo': TextStyle(color: Color(0xffd19a66)),
|
||||
'number': TextStyle(color: Color(0xffd19a66)),
|
||||
'symbol': TextStyle(color: Color(0xff61aeee)),
|
||||
'bullet': TextStyle(color: Color(0xff61aeee)),
|
||||
'link': TextStyle(color: Color(0xff61aeee)),
|
||||
'meta': TextStyle(color: Color(0xff61aeee)),
|
||||
'selector-id': TextStyle(color: Color(0xff61aeee)),
|
||||
'title': TextStyle(color: Color(0xff61aeee)),
|
||||
'emphasis': TextStyle(fontStyle: FontStyle.italic),
|
||||
'strong': TextStyle(fontWeight: FontWeight.bold),
|
||||
};
|
||||
41
lib/base/ui/highlight/themes/atom-one-light.dart
Normal file
@ -0,0 +1,41 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
import 'package:flutter/painting.dart';
|
||||
|
||||
const atomOneLightTheme = {
|
||||
'root':
|
||||
TextStyle(color: Color(0xff383a42), backgroundColor: Color(0xfffafafa)),
|
||||
'comment': TextStyle(color: Color(0xffa0a1a7), fontStyle: FontStyle.italic),
|
||||
'quote': TextStyle(color: Color(0xffa0a1a7), fontStyle: FontStyle.italic),
|
||||
'doctag': TextStyle(color: Color(0xffa626a4)),
|
||||
'keyword': TextStyle(color: Color(0xffa626a4)),
|
||||
'formula': TextStyle(color: Color(0xffa626a4)),
|
||||
'section': TextStyle(color: Color(0xffe45649)),
|
||||
'name': TextStyle(color: Color(0xffe45649)),
|
||||
'selector-tag': TextStyle(color: Color(0xffe45649)),
|
||||
'deletion': TextStyle(color: Color(0xffe45649)),
|
||||
'subst': TextStyle(color: Color(0xffe45649)),
|
||||
'literal': TextStyle(color: Color(0xff0184bb)),
|
||||
'string': TextStyle(color: Color(0xff50a14f)),
|
||||
'regexp': TextStyle(color: Color(0xff50a14f)),
|
||||
'addition': TextStyle(color: Color(0xff50a14f)),
|
||||
'attribute': TextStyle(color: Color(0xff50a14f)),
|
||||
'meta-string': TextStyle(color: Color(0xff50a14f)),
|
||||
'built_in': TextStyle(color: Color(0xffc18401)),
|
||||
'attr': TextStyle(color: Color(0xff986801)),
|
||||
'variable': TextStyle(color: Color(0xff986801)),
|
||||
'template-variable': TextStyle(color: Color(0xff986801)),
|
||||
'type': TextStyle(color: Color(0xff986801)),
|
||||
'selector-class': TextStyle(color: Color(0xff986801)),
|
||||
'selector-attr': TextStyle(color: Color(0xff986801)),
|
||||
'selector-pseudo': TextStyle(color: Color(0xff986801)),
|
||||
'number': TextStyle(color: Color(0xff986801)),
|
||||
'symbol': TextStyle(color: Color(0xff4078f2)),
|
||||
'bullet': TextStyle(color: Color(0xff4078f2)),
|
||||
'link': TextStyle(color: Color(0xff4078f2)),
|
||||
'meta': TextStyle(color: Color(0xff4078f2)),
|
||||
'selector-id': TextStyle(color: Color(0xff4078f2)),
|
||||
'title': TextStyle(color: Color(0xff4078f2)),
|
||||
'emphasis': TextStyle(fontStyle: FontStyle.italic),
|
||||
'strong': TextStyle(fontWeight: FontWeight.bold),
|
||||
};
|
||||
34
lib/base/ui/highlight/themes/brown-paper.dart
Normal file
@ -0,0 +1,34 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
import 'package:flutter/painting.dart';
|
||||
|
||||
const brownPaperTheme = {
|
||||
'root':
|
||||
TextStyle(backgroundColor: Color(0xffb7a68e), color: Color(0xff363c69)),
|
||||
'keyword': TextStyle(color: Color(0xff005599), fontWeight: FontWeight.bold),
|
||||
'selector-tag':
|
||||
TextStyle(color: Color(0xff005599), fontWeight: FontWeight.bold),
|
||||
'literal': TextStyle(color: Color(0xff005599), fontWeight: FontWeight.bold),
|
||||
'subst': TextStyle(color: Color(0xff363c69)),
|
||||
'string': TextStyle(color: Color(0xff2c009f)),
|
||||
'title': TextStyle(color: Color(0xff2c009f), fontWeight: FontWeight.bold),
|
||||
'section': TextStyle(color: Color(0xff2c009f), fontWeight: FontWeight.bold),
|
||||
'type': TextStyle(color: Color(0xff2c009f), fontWeight: FontWeight.bold),
|
||||
'attribute': TextStyle(color: Color(0xff2c009f)),
|
||||
'symbol': TextStyle(color: Color(0xff2c009f)),
|
||||
'bullet': TextStyle(color: Color(0xff2c009f)),
|
||||
'built_in': TextStyle(color: Color(0xff2c009f)),
|
||||
'addition': TextStyle(color: Color(0xff2c009f)),
|
||||
'variable': TextStyle(color: Color(0xff2c009f)),
|
||||
'template-tag': TextStyle(color: Color(0xff2c009f)),
|
||||
'template-variable': TextStyle(color: Color(0xff2c009f)),
|
||||
'link': TextStyle(color: Color(0xff2c009f)),
|
||||
'name': TextStyle(color: Color(0xff2c009f), fontWeight: FontWeight.bold),
|
||||
'comment': TextStyle(color: Color(0xff802022)),
|
||||
'quote': TextStyle(color: Color(0xff802022)),
|
||||
'meta': TextStyle(color: Color(0xff802022)),
|
||||
'deletion': TextStyle(color: Color(0xff802022)),
|
||||
'doctag': TextStyle(fontWeight: FontWeight.bold),
|
||||
'strong': TextStyle(fontWeight: FontWeight.bold),
|
||||
'emphasis': TextStyle(fontStyle: FontStyle.italic),
|
||||
};
|
||||
37
lib/base/ui/highlight/themes/codepen-embed.dart
Normal file
@ -0,0 +1,37 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
import 'package:flutter/painting.dart';
|
||||
|
||||
const codepenEmbedTheme = {
|
||||
'root':
|
||||
TextStyle(backgroundColor: Color(0xff222222), color: Color(0xffffffff)),
|
||||
'comment': TextStyle(color: Color(0xff777777)),
|
||||
'quote': TextStyle(color: Color(0xff777777)),
|
||||
'variable': TextStyle(color: Color(0xffab875d)),
|
||||
'template-variable': TextStyle(color: Color(0xffab875d)),
|
||||
'tag': TextStyle(color: Color(0xffab875d)),
|
||||
'regexp': TextStyle(color: Color(0xffab875d)),
|
||||
'meta': TextStyle(color: Color(0xffab875d)),
|
||||
'number': TextStyle(color: Color(0xffab875d)),
|
||||
'built_in': TextStyle(color: Color(0xffab875d)),
|
||||
'builtin-name': TextStyle(color: Color(0xffab875d)),
|
||||
'literal': TextStyle(color: Color(0xffab875d)),
|
||||
'params': TextStyle(color: Color(0xffab875d)),
|
||||
'symbol': TextStyle(color: Color(0xffab875d)),
|
||||
'bullet': TextStyle(color: Color(0xffab875d)),
|
||||
'link': TextStyle(color: Color(0xffab875d)),
|
||||
'deletion': TextStyle(color: Color(0xffab875d)),
|
||||
'section': TextStyle(color: Color(0xff9b869b)),
|
||||
'title': TextStyle(color: Color(0xff9b869b)),
|
||||
'name': TextStyle(color: Color(0xff9b869b)),
|
||||
'selector-id': TextStyle(color: Color(0xff9b869b)),
|
||||
'selector-class': TextStyle(color: Color(0xff9b869b)),
|
||||
'type': TextStyle(color: Color(0xff9b869b)),
|
||||
'attribute': TextStyle(color: Color(0xff9b869b)),
|
||||
'string': TextStyle(color: Color(0xff8f9c6c)),
|
||||
'keyword': TextStyle(color: Color(0xff8f9c6c)),
|
||||
'selector-tag': TextStyle(color: Color(0xff8f9c6c)),
|
||||
'addition': TextStyle(color: Color(0xff8f9c6c)),
|
||||
'emphasis': TextStyle(fontStyle: FontStyle.italic),
|
||||
'strong': TextStyle(fontWeight: FontWeight.bold),
|
||||
};
|
||||
38
lib/base/ui/highlight/themes/color-brewer.dart
Normal file
@ -0,0 +1,38 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
import 'package:flutter/painting.dart';
|
||||
|
||||
const colorBrewerTheme = {
|
||||
'root':
|
||||
TextStyle(backgroundColor: Color(0xffffffff), color: Color(0xff000000)),
|
||||
'subst': TextStyle(color: Color(0xff000000)),
|
||||
'string': TextStyle(color: Color(0xff756bb1)),
|
||||
'meta': TextStyle(color: Color(0xff756bb1)),
|
||||
'symbol': TextStyle(color: Color(0xff756bb1)),
|
||||
'template-tag': TextStyle(color: Color(0xff756bb1)),
|
||||
'template-variable': TextStyle(color: Color(0xff756bb1)),
|
||||
'addition': TextStyle(color: Color(0xff756bb1)),
|
||||
'comment': TextStyle(color: Color(0xff636363)),
|
||||
'quote': TextStyle(color: Color(0xff636363)),
|
||||
'number': TextStyle(color: Color(0xff31a354)),
|
||||
'regexp': TextStyle(color: Color(0xff31a354)),
|
||||
'literal': TextStyle(color: Color(0xff31a354)),
|
||||
'bullet': TextStyle(color: Color(0xff31a354)),
|
||||
'link': TextStyle(color: Color(0xff31a354)),
|
||||
'deletion': TextStyle(color: Color(0xff8888ff)),
|
||||
'variable': TextStyle(color: Color(0xff8888ff)),
|
||||
'keyword': TextStyle(color: Color(0xff3182bd)),
|
||||
'selector-tag': TextStyle(color: Color(0xff3182bd)),
|
||||
'title': TextStyle(color: Color(0xff3182bd)),
|
||||
'section': TextStyle(color: Color(0xff3182bd)),
|
||||
'built_in': TextStyle(color: Color(0xff3182bd)),
|
||||
'doctag': TextStyle(color: Color(0xff3182bd)),
|
||||
'type': TextStyle(color: Color(0xff3182bd)),
|
||||
'tag': TextStyle(color: Color(0xff3182bd)),
|
||||
'name': TextStyle(color: Color(0xff3182bd)),
|
||||
'selector-id': TextStyle(color: Color(0xff3182bd)),
|
||||
'selector-class': TextStyle(color: Color(0xff3182bd)),
|
||||
'strong': TextStyle(color: Color(0xff3182bd)),
|
||||
'emphasis': TextStyle(fontStyle: FontStyle.italic),
|
||||
'attribute': TextStyle(color: Color(0xffe6550d)),
|
||||
};
|
||||
40
lib/base/ui/highlight/themes/darcula.dart
Normal file
@ -0,0 +1,40 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
import 'package:flutter/painting.dart';
|
||||
|
||||
const darculaTheme = {
|
||||
'root':
|
||||
TextStyle(backgroundColor: Color(0xff2b2b2b), color: Color(0xffbababa)),
|
||||
'strong': TextStyle(color: Color(0xffa8a8a2)),
|
||||
'emphasis': TextStyle(color: Color(0xffa8a8a2), fontStyle: FontStyle.italic),
|
||||
'bullet': TextStyle(color: Color(0xff6896ba)),
|
||||
'quote': TextStyle(color: Color(0xff6896ba)),
|
||||
'link': TextStyle(color: Color(0xff6896ba)),
|
||||
'number': TextStyle(color: Color(0xff6896ba)),
|
||||
'regexp': TextStyle(color: Color(0xff6896ba)),
|
||||
'literal': TextStyle(color: Color(0xff6896ba)),
|
||||
'code': TextStyle(color: Color(0xffa6e22e)),
|
||||
'selector-class': TextStyle(color: Color(0xffa6e22e)),
|
||||
'keyword': TextStyle(color: Color(0xffcb7832)),
|
||||
'selector-tag': TextStyle(color: Color(0xffcb7832)),
|
||||
'section': TextStyle(color: Color(0xffcb7832)),
|
||||
'attribute': TextStyle(color: Color(0xffcb7832)),
|
||||
'name': TextStyle(color: Color(0xffcb7832)),
|
||||
'variable': TextStyle(color: Color(0xffcb7832)),
|
||||
'params': TextStyle(color: Color(0xffb9b9b9)),
|
||||
'string': TextStyle(color: Color(0xff6a8759)),
|
||||
'subst': TextStyle(color: Color(0xffe0c46c)),
|
||||
'type': TextStyle(color: Color(0xffe0c46c)),
|
||||
'built_in': TextStyle(color: Color(0xffe0c46c)),
|
||||
'builtin-name': TextStyle(color: Color(0xffe0c46c)),
|
||||
'symbol': TextStyle(color: Color(0xffe0c46c)),
|
||||
'selector-id': TextStyle(color: Color(0xffe0c46c)),
|
||||
'selector-attr': TextStyle(color: Color(0xffe0c46c)),
|
||||
'selector-pseudo': TextStyle(color: Color(0xffe0c46c)),
|
||||
'template-tag': TextStyle(color: Color(0xffe0c46c)),
|
||||
'template-variable': TextStyle(color: Color(0xffe0c46c)),
|
||||
'addition': TextStyle(color: Color(0xffe0c46c)),
|
||||
'comment': TextStyle(color: Color(0xff7f7f7f)),
|
||||
'deletion': TextStyle(color: Color(0xff7f7f7f)),
|
||||
'meta': TextStyle(color: Color(0xff7f7f7f)),
|
||||
};
|
||||
34
lib/base/ui/highlight/themes/dark.dart
Normal file
@ -0,0 +1,34 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
import 'package:flutter/painting.dart';
|
||||
|
||||
const darkTheme = {
|
||||
'root':
|
||||
TextStyle(backgroundColor: Color(0xff444444), color: Color(0xffdddddd)),
|
||||
'keyword': TextStyle(color: Color(0xffffffff), fontWeight: FontWeight.bold),
|
||||
'selector-tag':
|
||||
TextStyle(color: Color(0xffffffff), fontWeight: FontWeight.bold),
|
||||
'literal': TextStyle(color: Color(0xffffffff), fontWeight: FontWeight.bold),
|
||||
'section': TextStyle(color: Color(0xffffffff), fontWeight: FontWeight.bold),
|
||||
'link': TextStyle(color: Color(0xffffffff)),
|
||||
'subst': TextStyle(color: Color(0xffdddddd)),
|
||||
'string': TextStyle(color: Color(0xffdd8888)),
|
||||
'title': TextStyle(color: Color(0xffdd8888), fontWeight: FontWeight.bold),
|
||||
'name': TextStyle(color: Color(0xffdd8888), fontWeight: FontWeight.bold),
|
||||
'type': TextStyle(color: Color(0xffdd8888), fontWeight: FontWeight.bold),
|
||||
'attribute': TextStyle(color: Color(0xffdd8888)),
|
||||
'symbol': TextStyle(color: Color(0xffdd8888)),
|
||||
'bullet': TextStyle(color: Color(0xffdd8888)),
|
||||
'built_in': TextStyle(color: Color(0xffdd8888)),
|
||||
'addition': TextStyle(color: Color(0xffdd8888)),
|
||||
'variable': TextStyle(color: Color(0xffdd8888)),
|
||||
'template-tag': TextStyle(color: Color(0xffdd8888)),
|
||||
'template-variable': TextStyle(color: Color(0xffdd8888)),
|
||||
'comment': TextStyle(color: Color(0xff777777)),
|
||||
'quote': TextStyle(color: Color(0xff777777)),
|
||||
'deletion': TextStyle(color: Color(0xff777777)),
|
||||
'meta': TextStyle(color: Color(0xff777777)),
|
||||
'doctag': TextStyle(fontWeight: FontWeight.bold),
|
||||
'strong': TextStyle(fontWeight: FontWeight.bold),
|
||||
'emphasis': TextStyle(fontStyle: FontStyle.italic),
|
||||
};
|
||||
42
lib/base/ui/highlight/themes/default.dart
Normal file
@ -0,0 +1,42 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
import 'package:flutter/painting.dart';
|
||||
|
||||
const defaultTheme = {
|
||||
'root':
|
||||
TextStyle(backgroundColor: Color(0xffF0F0F0), color: Color(0xff444444)),
|
||||
'subst': TextStyle(color: Color(0xff444444)),
|
||||
'comment': TextStyle(color: Color(0xff888888)),
|
||||
'keyword': TextStyle(fontWeight: FontWeight.bold),
|
||||
'attribute': TextStyle(fontWeight: FontWeight.bold),
|
||||
'selector-tag': TextStyle(fontWeight: FontWeight.bold),
|
||||
'meta-keyword': TextStyle(fontWeight: FontWeight.bold),
|
||||
'doctag': TextStyle(fontWeight: FontWeight.bold),
|
||||
'name': TextStyle(fontWeight: FontWeight.bold),
|
||||
'type': TextStyle(color: Color(0xff880000)),
|
||||
'string': TextStyle(color: Color(0xff880000)),
|
||||
'number': TextStyle(color: Color(0xff880000)),
|
||||
'selector-id': TextStyle(color: Color(0xff880000)),
|
||||
'selector-class': TextStyle(color: Color(0xff880000)),
|
||||
'quote': TextStyle(color: Color(0xff880000)),
|
||||
'template-tag': TextStyle(color: Color(0xff880000)),
|
||||
'deletion': TextStyle(color: Color(0xff880000)),
|
||||
'title': TextStyle(color: Color(0xff880000), fontWeight: FontWeight.bold),
|
||||
'section': TextStyle(color: Color(0xff880000), fontWeight: FontWeight.bold),
|
||||
'regexp': TextStyle(color: Color(0xffBC6060)),
|
||||
'symbol': TextStyle(color: Color(0xffBC6060)),
|
||||
'variable': TextStyle(color: Color(0xffBC6060)),
|
||||
'template-variable': TextStyle(color: Color(0xffBC6060)),
|
||||
'link': TextStyle(color: Color(0xffBC6060)),
|
||||
'selector-attr': TextStyle(color: Color(0xffBC6060)),
|
||||
'selector-pseudo': TextStyle(color: Color(0xffBC6060)),
|
||||
'literal': TextStyle(color: Color(0xff78A960)),
|
||||
'built_in': TextStyle(color: Color(0xff397300)),
|
||||
'bullet': TextStyle(color: Color(0xff397300)),
|
||||
'code': TextStyle(color: Color(0xff397300)),
|
||||
'addition': TextStyle(color: Color(0xff397300)),
|
||||
'meta': TextStyle(color: Color(0xff1f7199)),
|
||||
'meta-string': TextStyle(color: Color(0xff4d99bf)),
|
||||
'emphasis': TextStyle(fontStyle: FontStyle.italic),
|
||||
'strong': TextStyle(fontWeight: FontWeight.bold),
|
||||
};
|
||||
40
lib/base/ui/highlight/themes/docco.dart
Normal file
@ -0,0 +1,40 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
import 'package:flutter/painting.dart';
|
||||
|
||||
const doccoTheme = {
|
||||
'root':
|
||||
TextStyle(color: Color(0xff000000), backgroundColor: Color(0xfff8f8ff)),
|
||||
'comment': TextStyle(color: Color(0xff408080), fontStyle: FontStyle.italic),
|
||||
'quote': TextStyle(color: Color(0xff408080), fontStyle: FontStyle.italic),
|
||||
'keyword': TextStyle(color: Color(0xff954121)),
|
||||
'selector-tag': TextStyle(color: Color(0xff954121)),
|
||||
'literal': TextStyle(color: Color(0xff954121)),
|
||||
'subst': TextStyle(color: Color(0xff954121)),
|
||||
'number': TextStyle(color: Color(0xff40a070)),
|
||||
'string': TextStyle(color: Color(0xff219161)),
|
||||
'doctag': TextStyle(color: Color(0xff219161)),
|
||||
'selector-id': TextStyle(color: Color(0xff19469d)),
|
||||
'selector-class': TextStyle(color: Color(0xff19469d)),
|
||||
'section': TextStyle(color: Color(0xff19469d)),
|
||||
'type': TextStyle(color: Color(0xff19469d)),
|
||||
'params': TextStyle(color: Color(0xff0000ff)),
|
||||
'title': TextStyle(color: Color(0xff445588), fontWeight: FontWeight.bold),
|
||||
'tag': TextStyle(color: Color(0xff000080), fontWeight: FontWeight.normal),
|
||||
'name': TextStyle(color: Color(0xff000080), fontWeight: FontWeight.normal),
|
||||
'attribute':
|
||||
TextStyle(color: Color(0xff000080), fontWeight: FontWeight.normal),
|
||||
'variable': TextStyle(color: Color(0xff008080)),
|
||||
'template-variable': TextStyle(color: Color(0xff008080)),
|
||||
'regexp': TextStyle(color: Color(0xffbb6688)),
|
||||
'link': TextStyle(color: Color(0xffbb6688)),
|
||||
'symbol': TextStyle(color: Color(0xff990073)),
|
||||
'bullet': TextStyle(color: Color(0xff990073)),
|
||||
'built_in': TextStyle(color: Color(0xff0086b3)),
|
||||
'builtin-name': TextStyle(color: Color(0xff0086b3)),
|
||||
'meta': TextStyle(color: Color(0xff999999), fontWeight: FontWeight.bold),
|
||||
'deletion': TextStyle(backgroundColor: Color(0xffffdddd)),
|
||||
'addition': TextStyle(backgroundColor: Color(0xffddffdd)),
|
||||
'emphasis': TextStyle(fontStyle: FontStyle.italic),
|
||||
'strong': TextStyle(fontWeight: FontWeight.bold),
|
||||
};
|
||||
33
lib/base/ui/highlight/themes/dracula.dart
Normal file
@ -0,0 +1,33 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
import 'package:flutter/painting.dart';
|
||||
|
||||
const draculaTheme = {
|
||||
'root':
|
||||
TextStyle(backgroundColor: Color(0xff282a36), color: Color(0xfff8f8f2)),
|
||||
'keyword': TextStyle(color: Color(0xff8be9fd), fontWeight: FontWeight.bold),
|
||||
'selector-tag':
|
||||
TextStyle(color: Color(0xff8be9fd), fontWeight: FontWeight.bold),
|
||||
'literal': TextStyle(color: Color(0xff8be9fd), fontWeight: FontWeight.bold),
|
||||
'section': TextStyle(color: Color(0xff8be9fd), fontWeight: FontWeight.bold),
|
||||
'link': TextStyle(color: Color(0xff8be9fd)),
|
||||
'subst': TextStyle(color: Color(0xfff8f8f2)),
|
||||
'string': TextStyle(color: Color(0xfff1fa8c)),
|
||||
'title': TextStyle(color: Color(0xfff1fa8c), fontWeight: FontWeight.bold),
|
||||
'name': TextStyle(color: Color(0xfff1fa8c), fontWeight: FontWeight.bold),
|
||||
'type': TextStyle(color: Color(0xfff1fa8c), fontWeight: FontWeight.bold),
|
||||
'attribute': TextStyle(color: Color(0xfff1fa8c)),
|
||||
'symbol': TextStyle(color: Color(0xfff1fa8c)),
|
||||
'bullet': TextStyle(color: Color(0xfff1fa8c)),
|
||||
'addition': TextStyle(color: Color(0xfff1fa8c)),
|
||||
'variable': TextStyle(color: Color(0xfff1fa8c)),
|
||||
'template-tag': TextStyle(color: Color(0xfff1fa8c)),
|
||||
'template-variable': TextStyle(color: Color(0xfff1fa8c)),
|
||||
'comment': TextStyle(color: Color(0xff6272a4)),
|
||||
'quote': TextStyle(color: Color(0xff6272a4)),
|
||||
'deletion': TextStyle(color: Color(0xff6272a4)),
|
||||
'meta': TextStyle(color: Color(0xff6272a4)),
|
||||
'doctag': TextStyle(fontWeight: FontWeight.bold),
|
||||
'strong': TextStyle(fontWeight: FontWeight.bold),
|
||||
'emphasis': TextStyle(fontStyle: FontStyle.italic),
|
||||
};
|
||||
39
lib/base/ui/highlight/themes/far.dart
Normal file
@ -0,0 +1,39 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
import 'package:flutter/painting.dart';
|
||||
|
||||
const farTheme = {
|
||||
'root':
|
||||
TextStyle(backgroundColor: Color(0xff000080), color: Color(0xff00ffff)),
|
||||
'subst': TextStyle(color: Color(0xff00ffff)),
|
||||
'string': TextStyle(color: Color(0xffffff00)),
|
||||
'attribute': TextStyle(color: Color(0xffffff00)),
|
||||
'symbol': TextStyle(color: Color(0xffffff00)),
|
||||
'bullet': TextStyle(color: Color(0xffffff00)),
|
||||
'built_in': TextStyle(color: Color(0xffffff00)),
|
||||
'builtin-name': TextStyle(color: Color(0xffffff00)),
|
||||
'template-tag': TextStyle(color: Color(0xffffff00)),
|
||||
'template-variable': TextStyle(color: Color(0xffffff00)),
|
||||
'addition': TextStyle(color: Color(0xffffff00)),
|
||||
'keyword': TextStyle(color: Color(0xffffffff), fontWeight: FontWeight.bold),
|
||||
'selector-tag':
|
||||
TextStyle(color: Color(0xffffffff), fontWeight: FontWeight.bold),
|
||||
'section': TextStyle(color: Color(0xffffffff), fontWeight: FontWeight.bold),
|
||||
'type': TextStyle(color: Color(0xffffffff)),
|
||||
'name': TextStyle(color: Color(0xffffffff), fontWeight: FontWeight.bold),
|
||||
'selector-id': TextStyle(color: Color(0xffffffff)),
|
||||
'selector-class': TextStyle(color: Color(0xffffffff)),
|
||||
'variable': TextStyle(color: Color(0xffffffff)),
|
||||
'comment': TextStyle(color: Color(0xff888888)),
|
||||
'quote': TextStyle(color: Color(0xff888888)),
|
||||
'doctag': TextStyle(color: Color(0xff888888)),
|
||||
'deletion': TextStyle(color: Color(0xff888888)),
|
||||
'number': TextStyle(color: Color(0xff00ff00)),
|
||||
'regexp': TextStyle(color: Color(0xff00ff00)),
|
||||
'literal': TextStyle(color: Color(0xff00ff00)),
|
||||
'link': TextStyle(color: Color(0xff00ff00)),
|
||||
'meta': TextStyle(color: Color(0xff008080)),
|
||||
'title': TextStyle(fontWeight: FontWeight.bold),
|
||||
'strong': TextStyle(fontWeight: FontWeight.bold),
|
||||
'emphasis': TextStyle(fontStyle: FontStyle.italic),
|
||||
};
|
||||
36
lib/base/ui/highlight/themes/foundation.dart
Normal file
@ -0,0 +1,36 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
import 'package:flutter/painting.dart';
|
||||
|
||||
const foundationTheme = {
|
||||
'root':
|
||||
TextStyle(backgroundColor: Color(0xffeeeeee), color: Color(0xff000000)),
|
||||
'link': TextStyle(color: Color(0xff007700)),
|
||||
'emphasis': TextStyle(color: Color(0xff007700), fontStyle: FontStyle.italic),
|
||||
'attribute': TextStyle(color: Color(0xff007700)),
|
||||
'addition': TextStyle(color: Color(0xff007700)),
|
||||
'strong': TextStyle(color: Color(0xffdd1144), fontWeight: FontWeight.bold),
|
||||
'string': TextStyle(color: Color(0xffdd1144)),
|
||||
'deletion': TextStyle(color: Color(0xffdd1144)),
|
||||
'quote': TextStyle(color: Color(0xff999988), fontStyle: FontStyle.italic),
|
||||
'comment': TextStyle(color: Color(0xff999988), fontStyle: FontStyle.italic),
|
||||
'section': TextStyle(color: Color(0xff990000)),
|
||||
'title': TextStyle(color: Color(0xff990000)),
|
||||
'type': TextStyle(color: Color(0xff445588)),
|
||||
'variable': TextStyle(color: Color(0xff336699)),
|
||||
'template-variable': TextStyle(color: Color(0xff336699)),
|
||||
'bullet': TextStyle(color: Color(0xff997700)),
|
||||
'meta': TextStyle(color: Color(0xff3344bb)),
|
||||
'code': TextStyle(color: Color(0xff009999)),
|
||||
'number': TextStyle(color: Color(0xff009999)),
|
||||
'literal': TextStyle(color: Color(0xff009999)),
|
||||
'keyword': TextStyle(color: Color(0xff009999)),
|
||||
'selector-tag': TextStyle(color: Color(0xff009999)),
|
||||
'regexp':
|
||||
TextStyle(backgroundColor: Color(0xfffff0ff), color: Color(0xff880088)),
|
||||
'symbol': TextStyle(color: Color(0xff990073)),
|
||||
'tag': TextStyle(color: Color(0xff007700)),
|
||||
'name': TextStyle(color: Color(0xff007700)),
|
||||
'selector-id': TextStyle(color: Color(0xff007700)),
|
||||
'selector-class': TextStyle(color: Color(0xff007700)),
|
||||
};
|
||||
37
lib/base/ui/highlight/themes/github-gist.dart
Normal file
@ -0,0 +1,37 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
import 'package:flutter/painting.dart';
|
||||
|
||||
const githubGistTheme = {
|
||||
'root':
|
||||
TextStyle(backgroundColor: Color(0xffffffff), color: Color(0xff333333)),
|
||||
'comment': TextStyle(color: Color(0xff969896)),
|
||||
'meta': TextStyle(color: Color(0xff969896)),
|
||||
'variable': TextStyle(color: Color(0xffdf5000)),
|
||||
'template-variable': TextStyle(color: Color(0xffdf5000)),
|
||||
'strong': TextStyle(color: Color(0xffdf5000)),
|
||||
'emphasis': TextStyle(color: Color(0xffdf5000)),
|
||||
'quote': TextStyle(color: Color(0xffdf5000)),
|
||||
'keyword': TextStyle(color: Color(0xffd73a49)),
|
||||
'selector-tag': TextStyle(color: Color(0xffd73a49)),
|
||||
'type': TextStyle(color: Color(0xffd73a49)),
|
||||
'literal': TextStyle(color: Color(0xff0086b3)),
|
||||
'symbol': TextStyle(color: Color(0xff0086b3)),
|
||||
'bullet': TextStyle(color: Color(0xff0086b3)),
|
||||
'attribute': TextStyle(color: Color(0xff0086b3)),
|
||||
'section': TextStyle(color: Color(0xff63a35c)),
|
||||
'name': TextStyle(color: Color(0xff63a35c)),
|
||||
'tag': TextStyle(color: Color(0xff333333)),
|
||||
'title': TextStyle(color: Color(0xff6f42c1)),
|
||||
'attr': TextStyle(color: Color(0xff6f42c1)),
|
||||
'selector-id': TextStyle(color: Color(0xff6f42c1)),
|
||||
'selector-class': TextStyle(color: Color(0xff6f42c1)),
|
||||
'selector-attr': TextStyle(color: Color(0xff6f42c1)),
|
||||
'selector-pseudo': TextStyle(color: Color(0xff6f42c1)),
|
||||
'addition':
|
||||
TextStyle(color: Color(0xff55a532), backgroundColor: Color(0xffeaffea)),
|
||||
'deletion':
|
||||
TextStyle(color: Color(0xffbd2c00), backgroundColor: Color(0xffffecec)),
|
||||
'number': TextStyle(color: Color(0xff005cc5)),
|
||||
'string': TextStyle(color: Color(0xff032f62)),
|
||||
};
|
||||
40
lib/base/ui/highlight/themes/github.dart
Normal file
@ -0,0 +1,40 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
import 'package:flutter/painting.dart';
|
||||
|
||||
const githubTheme = {
|
||||
'root':
|
||||
TextStyle(color: Color(0xff333333), backgroundColor: Color(0xfff8f8f8)),
|
||||
'comment': TextStyle(color: Color(0xff999988), fontStyle: FontStyle.italic),
|
||||
'quote': TextStyle(color: Color(0xff999988), fontStyle: FontStyle.italic),
|
||||
'keyword': TextStyle(color: Color(0xff333333), fontWeight: FontWeight.bold),
|
||||
'selector-tag':
|
||||
TextStyle(color: Color(0xff333333), fontWeight: FontWeight.bold),
|
||||
'subst': TextStyle(color: Color(0xff333333), fontWeight: FontWeight.normal),
|
||||
'number': TextStyle(color: Color(0xff008080)),
|
||||
'literal': TextStyle(color: Color(0xff008080)),
|
||||
'variable': TextStyle(color: Color(0xff008080)),
|
||||
'template-variable': TextStyle(color: Color(0xff008080)),
|
||||
'string': TextStyle(color: Color(0xffdd1144)),
|
||||
'doctag': TextStyle(color: Color(0xffdd1144)),
|
||||
'title': TextStyle(color: Color(0xff990000), fontWeight: FontWeight.bold),
|
||||
'section': TextStyle(color: Color(0xff990000), fontWeight: FontWeight.bold),
|
||||
'selector-id':
|
||||
TextStyle(color: Color(0xff990000), fontWeight: FontWeight.bold),
|
||||
'type': TextStyle(color: Color(0xff445588), fontWeight: FontWeight.bold),
|
||||
'tag': TextStyle(color: Color(0xff000080), fontWeight: FontWeight.normal),
|
||||
'name': TextStyle(color: Color(0xff000080), fontWeight: FontWeight.normal),
|
||||
'attribute':
|
||||
TextStyle(color: Color(0xff000080), fontWeight: FontWeight.normal),
|
||||
'regexp': TextStyle(color: Color(0xff009926)),
|
||||
'link': TextStyle(color: Color(0xff009926)),
|
||||
'symbol': TextStyle(color: Color(0xff990073)),
|
||||
'bullet': TextStyle(color: Color(0xff990073)),
|
||||
'built_in': TextStyle(color: Color(0xff0086b3)),
|
||||
'builtin-name': TextStyle(color: Color(0xff0086b3)),
|
||||
'meta': TextStyle(color: Color(0xff999999), fontWeight: FontWeight.bold),
|
||||
'deletion': TextStyle(backgroundColor: Color(0xffffdddd)),
|
||||
'addition': TextStyle(backgroundColor: Color(0xffddffdd)),
|
||||
'emphasis': TextStyle(fontStyle: FontStyle.italic),
|
||||
'strong': TextStyle(fontWeight: FontWeight.bold),
|
||||
};
|
||||
42
lib/base/ui/highlight/themes/gml.dart
Normal file
@ -0,0 +1,42 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
import 'package:flutter/painting.dart';
|
||||
|
||||
const gmlTheme = {
|
||||
'root':
|
||||
TextStyle(backgroundColor: Color(0xff222222), color: Color(0xffC0C0C0)),
|
||||
'keyword': TextStyle(color: Color(0xffFFB871), fontWeight: FontWeight.bold),
|
||||
'built_in': TextStyle(color: Color(0xffFFB871)),
|
||||
'literal': TextStyle(color: Color(0xffFF8080)),
|
||||
'symbol': TextStyle(color: Color(0xff58E55A)),
|
||||
'comment': TextStyle(color: Color(0xff5B995B)),
|
||||
'string': TextStyle(color: Color(0xffFFFF00)),
|
||||
'number': TextStyle(color: Color(0xffFF8080)),
|
||||
'attribute': TextStyle(color: Color(0xffC0C0C0)),
|
||||
'selector-tag': TextStyle(color: Color(0xffC0C0C0)),
|
||||
'doctag': TextStyle(color: Color(0xffC0C0C0)),
|
||||
'name': TextStyle(color: Color(0xffC0C0C0)),
|
||||
'bullet': TextStyle(color: Color(0xffC0C0C0)),
|
||||
'code': TextStyle(color: Color(0xffC0C0C0)),
|
||||
'addition': TextStyle(color: Color(0xffC0C0C0)),
|
||||
'regexp': TextStyle(color: Color(0xffC0C0C0)),
|
||||
'variable': TextStyle(color: Color(0xffC0C0C0)),
|
||||
'template-variable': TextStyle(color: Color(0xffC0C0C0)),
|
||||
'link': TextStyle(color: Color(0xffC0C0C0)),
|
||||
'selector-attr': TextStyle(color: Color(0xffC0C0C0)),
|
||||
'selector-pseudo': TextStyle(color: Color(0xffC0C0C0)),
|
||||
'type': TextStyle(color: Color(0xffC0C0C0)),
|
||||
'selector-id': TextStyle(color: Color(0xffC0C0C0)),
|
||||
'selector-class': TextStyle(color: Color(0xffC0C0C0)),
|
||||
'quote': TextStyle(color: Color(0xffC0C0C0)),
|
||||
'template-tag': TextStyle(color: Color(0xffC0C0C0)),
|
||||
'deletion': TextStyle(color: Color(0xffC0C0C0)),
|
||||
'title': TextStyle(color: Color(0xffC0C0C0)),
|
||||
'section': TextStyle(color: Color(0xffC0C0C0)),
|
||||
'function': TextStyle(color: Color(0xffC0C0C0)),
|
||||
'meta-keyword': TextStyle(color: Color(0xffC0C0C0)),
|
||||
'meta': TextStyle(color: Color(0xffC0C0C0)),
|
||||
'subst': TextStyle(color: Color(0xffC0C0C0)),
|
||||
'emphasis': TextStyle(fontStyle: FontStyle.italic),
|
||||
'strong': TextStyle(fontWeight: FontWeight.bold),
|
||||
};
|
||||