diff --git a/app/src/main/assets/about_html/index.html b/app/src/main/assets/about_html/index.html index 9eb9401..b3bb3ea 100644 --- a/app/src/main/assets/about_html/index.html +++ b/app/src/main/assets/about_html/index.html @@ -7,27 +7,9 @@ body { text-align: center; } - - a:link { - color: #FF4081; - text-decoration: none; + a { + text-decoration:none; } - - a:visited { - color: #FF4081; - text-decoration: none; - } - - a:hover { - color: #FF4081; - text-decoration: none; - } - - a:active { - color: #FF4081; - text-decoration: none; - } - @@ -37,54 +19,61 @@ document.getElementById("build_time").innerHTML = "Build time: " + time; document.getElementById("git_commit").innerHTML = "Git commit: " + gitCommit; } + function changeColor(color){ + var aList = document.getElementsByTagName("a"); + for(var i = 0; i < aList.length;i++){ + aList[i].style.color = color; + } + } -
-
-
iTX Technologies
-
-
-
Daedalus
-
Version: Unknown
-
Build time: Unknown
-
Git commit: Unknown
-
-
Users must comply with local laws and regulations.
-
-
Copyright (C) 2017-2018 iTX Technologies admin@itxtech.org -
-
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
+
+
+
iTX Technologies

- 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 General Public License for more details.
+
+
Daedalus
+
Version: Unknown
+
Build time: Unknown
+
Git commit: Unknown

- You should have received a copy of the GNU General Public License
- along with this program. If not, see http://www.gnu.org/licenses/.
-
-
-
-
Open Source Licenses
-
-
- ClearEditText: APL 2.0
- DNS66: GPLv3
- Pcap4J: MIT
- MiniDNS: LGPLv2.1
- Gson: APL 2.0
- Shadowsocks: GPLv3 +
Users must comply with local laws and regulations.
+
+
Copyright (C) 2017-2018 iTX Technologies admin@itxtech.org +
+
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU 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 General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see http://www.gnu.org/licenses/.
+
+
+
+
Open Source Licenses
+
+
+ ClearEditText: APL 2.0
+ DNS66: GPLv3
+ Pcap4J: MIT
+ MiniDNS: LGPLv2.1
+ Gson: APL 2.0
+ Shadowsocks: GPLv3 +
diff --git a/app/src/main/assets/about_html/index_zh.html b/app/src/main/assets/about_html/index_zh.html index 8fdda6b..a0318d6 100644 --- a/app/src/main/assets/about_html/index_zh.html +++ b/app/src/main/assets/about_html/index_zh.html @@ -7,27 +7,9 @@ body { text-align: center; } - - a:link { - color: #FF4081; - text-decoration: none; + a { + text-decoration:none; } - - a:visited { - color: #FF4081; - text-decoration: none; - } - - a:hover { - color: #FF4081; - text-decoration: none; - } - - a:active { - color: #FF4081; - text-decoration: none; - } - @@ -37,54 +19,62 @@ document.getElementById("build_time").innerHTML = "构建时间:" + time; document.getElementById("git_commit").innerHTML = "Git commit:" + gitCommit; } + function changeColor(color){ + var aList = document.getElementsByTagName("a"); + for(var i = 0; i < aList.length;i++){ + aList[i].style.color = color; + } + } -
-
-
iTX Technologies
-
-
-
Daedalus
-
Version: Unknown
-
Build time: Unknown
-
Git commit: Unknown
-
-
使用者必须遵守当地法律法规。
-
-
Copyright (C) 2017-2018 iTX Technologies admin@itxtech.org -
-
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
+ +
+
+
iTX Technologies

- 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 General Public License for more details.
+
+
Daedalus
+
Version: Unknown
+
Build time: Unknown
+
Git commit: Unknown

- You should have received a copy of the GNU General Public License
- along with this program. If not, see http://www.gnu.org/licenses/.
-
-
-
-
Open Source Licenses
-
-
- ClearEditText: APL 2.0
- DNS66: GPLv3
- Pcap4J: MIT
- MiniDNS: LGPLv2.1
- Gson: APL 2.0
- Shadowsocks: GPLv3 +
使用者必须遵守当地法律法规。
+
+
Copyright (C) 2017-2018 iTX Technologies admin@itxtech.org +
+
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU 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 General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see http://www.gnu.org/licenses/.
+
+
+
+
Open Source Licenses
+
+
+ ClearEditText: APL 2.0
+ DNS66: GPLv3
+ Pcap4J: MIT
+ MiniDNS: LGPLv2.1
+ Gson: APL 2.0
+ Shadowsocks: GPLv3 +
diff --git a/app/src/main/java/org/itxtech/daedalus/fragment/AboutFragment.java b/app/src/main/java/org/itxtech/daedalus/fragment/AboutFragment.java index ccc65a8..84ca364 100644 --- a/app/src/main/java/org/itxtech/daedalus/fragment/AboutFragment.java +++ b/app/src/main/java/org/itxtech/daedalus/fragment/AboutFragment.java @@ -61,6 +61,7 @@ public class AboutFragment extends ToolbarFragment { public void onPageFinished(WebView view, String url) { super.onPageFinished(view, url); try { + mWebView.loadUrl("javascript:changeColor('"+(Daedalus.isDarkTheme() ? "#FFFFFF" : "#000000")+"')"); mWebView.loadUrl("javascript:changeVersionInfo('" + Daedalus.getInstance().getPackageManager().getPackageInfo(Daedalus.getInstance().getPackageName(), 0).versionName + "', '" + BuildConfig.BUILD_TIME + "', '" + BuildConfig.GIT_COMMIT + "')"); } catch (Exception e) { Log.e("DAboutActivity", e.toString()); diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index 3ab3e9c..88c80e5 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -1,6 +1,8 @@ #3F51B5 - #303F9F - #FF4081 + #2f42b5 + #3F81f1 + #3F51B5 + #f2f2f2 diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 7887fdb..ad9c1a1 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -8,9 +8,9 @@ @color/colorAccent