Compare commits
24 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 998cb3d193 | |||
| 9ba3374b16 | |||
| 4ded8537e8 | |||
| 59e51da991 | |||
| 070e2fb4f0 | |||
| 632ecc51d8 | |||
| 58b2cace16 | |||
| 3648fa3361 | |||
| 122122ef80 | |||
| d26ef7bf7f | |||
| 83da84371c | |||
| f0fbdaf121 | |||
| a20f29728e | |||
| 9669fe2a8d | |||
| ed5ab24bd3 | |||
| b5c989b5f9 | |||
| 725b336501 | |||
| 57e4f8770b | |||
| 3b313e2362 | |||
| 1e96cd02bc | |||
| 8f869e19cc | |||
| 270e21ed23 | |||
| 6412554096 | |||
| 286f8513d4 |
@@ -24,13 +24,13 @@ android {
|
|||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
applicationId "cc.winboll.studio.aes"
|
applicationId "cc.winboll.studio.aes"
|
||||||
minSdkVersion 21
|
minSdkVersion 26
|
||||||
targetSdkVersion 30
|
targetSdkVersion 30
|
||||||
versionCode 1
|
versionCode 1
|
||||||
// versionName 更新后需要手动设置
|
// versionName 更新后需要手动设置
|
||||||
// 项目模块目录的 build.gradle 文件的 stageCount=0
|
// 项目模块目录的 build.gradle 文件的 stageCount=0
|
||||||
// Gradle编译环境下合起来的 versionName 就是 "${versionName}.0"
|
// Gradle编译环境下合起来的 versionName 就是 "${versionName}.0"
|
||||||
versionName "15.15"
|
versionName "15.20"
|
||||||
if(true) {
|
if(true) {
|
||||||
versionName = genVersionName("${versionName}")
|
versionName = genVersionName("${versionName}")
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
#Created by .winboll/winboll_app_build.gradle
|
#Created by .winboll/winboll_app_build.gradle
|
||||||
#Sat Apr 25 04:16:42 HKT 2026
|
#Tue May 12 10:47:54 CST 2026
|
||||||
stageCount=10
|
stageCount=3
|
||||||
libraryProject=libaes
|
libraryProject=libaes
|
||||||
baseVersion=15.15
|
baseVersion=15.20
|
||||||
publishVersion=15.15.9
|
publishVersion=15.20.2
|
||||||
buildCount=0
|
buildCount=14
|
||||||
baseBetaVersion=15.15.10
|
baseBetaVersion=15.20.3
|
||||||
|
|||||||
16
aes/src/main/res/values-night/styles.xml
Normal file
16
aes/src/main/res/values-night/styles.xml
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources>
|
||||||
|
<style name="MyAESTheme" parent="AESTheme">
|
||||||
|
<item name="themeDebug">@style/MyDebugActivityTheme</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style name="MyDebugActivityTheme" parent="Theme.AppCompat.NoActionBar">
|
||||||
|
<item name="android:statusBarColor">@color/toolbarBackgroundColor</item>
|
||||||
|
<item name="colorTittle">@color/mainWindowTextColor</item>
|
||||||
|
<item name="colorTittleBackgound">@color/toolbarBackgroundColor</item>
|
||||||
|
<item name="colorText">@color/debugTextColor</item>
|
||||||
|
<item name="colorTextBackgound">@color/mainWindowBackgroundColor</item>
|
||||||
|
<item name="debugTextColor">@color/debugTextColor</item>
|
||||||
|
<item name="toolbarTextColor">@color/toolbarTextColor</item>
|
||||||
|
</style>
|
||||||
|
</resources>
|
||||||
@@ -1,5 +1,16 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
<style name="MyAESTheme" parent="AESTheme">
|
<style name="MyAESTheme" parent="AESTheme">
|
||||||
|
<item name="themeDebug">@style/MyDebugActivityTheme</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style name="MyDebugActivityTheme" parent="Theme.AppCompat.Light.NoActionBar">
|
||||||
|
<item name="android:statusBarColor">@color/toolbarBackgroundColor</item>
|
||||||
|
<item name="colorTittle">@color/mainWindowTextColor</item>
|
||||||
|
<item name="colorTittleBackgound">@color/toolbarBackgroundColor</item>
|
||||||
|
<item name="colorText">@color/debugTextColor</item>
|
||||||
|
<item name="colorTextBackgound">@color/mainWindowBackgroundColor</item>
|
||||||
|
<item name="debugTextColor">@color/debugTextColor</item>
|
||||||
|
<item name="toolbarTextColor">@color/toolbarTextColor</item>
|
||||||
</style>
|
</style>
|
||||||
</resources>
|
</resources>
|
||||||
@@ -96,8 +96,8 @@ allprojects {
|
|||||||
// 1. 对纯 Java 模块的 JavaCompile 任务配置(升级为 Java 11)
|
// 1. 对纯 Java 模块的 JavaCompile 任务配置(升级为 Java 11)
|
||||||
tasks.withType(JavaCompile) {
|
tasks.withType(JavaCompile) {
|
||||||
options.compilerArgs << "-parameters"
|
options.compilerArgs << "-parameters"
|
||||||
sourceCompatibility = JavaVersion.VERSION_1_7
|
sourceCompatibility = JavaVersion.VERSION_11
|
||||||
targetCompatibility = JavaVersion.VERSION_1_7
|
targetCompatibility = JavaVersion.VERSION_11
|
||||||
// 可选:确保编码一致
|
// 可选:确保编码一致
|
||||||
options.encoding = "UTF-8"
|
options.encoding = "UTF-8"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ android {
|
|||||||
buildToolsVersion "30.0.3"
|
buildToolsVersion "30.0.3"
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
minSdkVersion 21
|
minSdkVersion 26
|
||||||
targetSdkVersion 30
|
targetSdkVersion 30
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -27,8 +27,6 @@ android {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
// 权限请求框架:https://github.com/getActivity/XXPermissions
|
|
||||||
api 'com.github.getActivity:XXPermissions:18.63'
|
|
||||||
// 下拉控件
|
// 下拉控件
|
||||||
api 'com.baoyz.pullrefreshlayout:library:1.2.0'
|
api 'com.baoyz.pullrefreshlayout:library:1.2.0'
|
||||||
// 拼音搜索
|
// 拼音搜索
|
||||||
@@ -63,7 +61,7 @@ dependencies {
|
|||||||
//annotationProcessor 'com.github.bumptech.glide:compiler:4.9.0'
|
//annotationProcessor 'com.github.bumptech.glide:compiler:4.9.0'
|
||||||
|
|
||||||
// WinBoLL库 nexus.winboll.cc 地址
|
// WinBoLL库 nexus.winboll.cc 地址
|
||||||
api 'cc.winboll.studio:libappbase:15.15.19'
|
api 'cc.winboll.studio:libappbase:15.20.9'
|
||||||
// 备用库 jitpack.io 地址
|
// 备用库 jitpack.io 地址
|
||||||
//api 'com.github.ZhanGSKen:APPBase:appbase-v15.15.3'
|
//api 'com.github.ZhanGSKen:APPBase:appbase-v15.15.3'
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
#Created by .winboll/winboll_app_build.gradle
|
#Created by .winboll/winboll_app_build.gradle
|
||||||
#Sat Apr 25 04:16:30 HKT 2026
|
#Tue May 12 10:47:54 CST 2026
|
||||||
stageCount=10
|
stageCount=3
|
||||||
libraryProject=libaes
|
libraryProject=libaes
|
||||||
baseVersion=15.15
|
baseVersion=15.20
|
||||||
publishVersion=15.15.9
|
publishVersion=15.20.2
|
||||||
buildCount=0
|
buildCount=14
|
||||||
baseBetaVersion=15.15.10
|
baseBetaVersion=15.20.3
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ import cc.winboll.studio.libaes.utils.DevelopUtils;
|
|||||||
import cc.winboll.studio.libaes.utils.WinBoLLActivityManager;
|
import cc.winboll.studio.libaes.utils.WinBoLLActivityManager;
|
||||||
import cc.winboll.studio.libaes.views.ADrawerMenuListView;
|
import cc.winboll.studio.libaes.views.ADrawerMenuListView;
|
||||||
import cc.winboll.studio.libaes.views.ADsBannerView;
|
import cc.winboll.studio.libaes.views.ADsBannerView;
|
||||||
|
import cc.winboll.studio.libaes.views.ASupportToolbar;
|
||||||
import cc.winboll.studio.libappbase.GlobalApplication;
|
import cc.winboll.studio.libappbase.GlobalApplication;
|
||||||
import cc.winboll.studio.libappbase.LogUtils;
|
import cc.winboll.studio.libappbase.LogUtils;
|
||||||
import com.baoyz.widget.PullRefreshLayout;
|
import com.baoyz.widget.PullRefreshLayout;
|
||||||
@@ -174,6 +175,9 @@ public abstract class DrawerFragmentActivity extends AppCompatActivity implement
|
|||||||
@Override
|
@Override
|
||||||
public boolean onOptionsItemSelected(MenuItem item) {
|
public boolean onOptionsItemSelected(MenuItem item) {
|
||||||
if (AESThemeUtil.onAppThemeItemSelected(this, item)) {
|
if (AESThemeUtil.onAppThemeItemSelected(this, item)) {
|
||||||
|
if (mToolbar instanceof ASupportToolbar) {
|
||||||
|
((ASupportToolbar) mToolbar).refreshFromTheme();
|
||||||
|
}
|
||||||
recreate();
|
recreate();
|
||||||
} if (DevelopUtils.onDevelopItemSelected(this, item)) {
|
} if (DevelopUtils.onDevelopItemSelected(this, item)) {
|
||||||
LogUtils.d(TAG, String.format("onOptionsItemSelected item.getItemId() %d ", item.getItemId()));
|
LogUtils.d(TAG, String.format("onOptionsItemSelected item.getItemId() %d ", item.getItemId()));
|
||||||
|
|||||||
@@ -12,6 +12,8 @@ import androidx.appcompat.widget.Toolbar;
|
|||||||
import cc.winboll.studio.libaes.R;
|
import cc.winboll.studio.libaes.R;
|
||||||
import cc.winboll.studio.libaes.interfaces.IWinBoLLActivity;
|
import cc.winboll.studio.libaes.interfaces.IWinBoLLActivity;
|
||||||
import cc.winboll.studio.libaes.utils.AESThemeUtil;
|
import cc.winboll.studio.libaes.utils.AESThemeUtil;
|
||||||
|
import cc.winboll.studio.libaes.views.ASupportToolbar;
|
||||||
|
import cc.winboll.studio.libappbase.LogUtils;
|
||||||
|
|
||||||
public class TestASupportToolbarActivity extends AppCompatActivity implements IWinBoLLActivity {
|
public class TestASupportToolbarActivity extends AppCompatActivity implements IWinBoLLActivity {
|
||||||
|
|
||||||
@@ -29,14 +31,17 @@ public class TestASupportToolbarActivity extends AppCompatActivity implements IW
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
|
LogUtils.d(TAG, "onCreate() start");
|
||||||
AESThemeUtil.applyAppTheme(this);
|
AESThemeUtil.applyAppTheme(this);
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
setContentView(R.layout.activity_testasupporttoolbar);
|
setContentView(R.layout.activity_testasupporttoolbar);
|
||||||
|
LogUtils.d(TAG, "setContentView() done");
|
||||||
Toolbar toolbar = findViewById(R.id.activitytestasupporttoolbarASupportToolbar1);
|
Toolbar toolbar = findViewById(R.id.activitytestasupporttoolbarASupportToolbar1);
|
||||||
|
LogUtils.d(TAG, "findViewById() done, toolbar=" + toolbar.getClass().getSimpleName());
|
||||||
setSupportActionBar(toolbar);
|
setSupportActionBar(toolbar);
|
||||||
|
LogUtils.d(TAG, "setSupportActionBar() done");
|
||||||
getSupportActionBar().setTitle(TAG);
|
getSupportActionBar().setTitle(TAG);
|
||||||
|
LogUtils.d(TAG, "setTitle() done");
|
||||||
|
LogUtils.d(TAG, "onCreate() end");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,15 +7,12 @@ package cc.winboll.studio.libaes.views;
|
|||||||
*/
|
*/
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.content.res.TypedArray;
|
import android.content.res.TypedArray;
|
||||||
import android.graphics.Color;
|
|
||||||
import android.graphics.drawable.GradientDrawable;
|
import android.graphics.drawable.GradientDrawable;
|
||||||
import android.graphics.drawable.LayerDrawable;
|
import android.graphics.drawable.LayerDrawable;
|
||||||
import android.util.AttributeSet;
|
import android.util.AttributeSet;
|
||||||
import androidx.appcompat.widget.Toolbar;
|
import androidx.appcompat.widget.Toolbar;
|
||||||
import cc.winboll.studio.libaes.R;
|
import cc.winboll.studio.libaes.R;
|
||||||
import android.graphics.drawable.Drawable;
|
import cc.winboll.studio.libappbase.LogUtils;
|
||||||
import androidx.core.content.ContextCompat;
|
|
||||||
import android.graphics.PorterDuff;
|
|
||||||
|
|
||||||
public class ASupportToolbar extends Toolbar {
|
public class ASupportToolbar extends Toolbar {
|
||||||
|
|
||||||
@@ -25,65 +22,120 @@ public class ASupportToolbar extends Toolbar {
|
|||||||
int mStartColor;
|
int mStartColor;
|
||||||
int mCenterColor;
|
int mCenterColor;
|
||||||
int mEndColor;
|
int mEndColor;
|
||||||
LayerDrawable ld;
|
|
||||||
GradientDrawable[] array = new GradientDrawable[3];
|
GradientDrawable[] array = new GradientDrawable[3];
|
||||||
//private GradientDrawable gradientDrawable;
|
LayerDrawable ld;
|
||||||
|
|
||||||
public ASupportToolbar(Context context) {
|
public ASupportToolbar(Context context) {
|
||||||
super(context);
|
super(context);
|
||||||
|
LogUtils.d(TAG, "ASupportToolbar() constructor");
|
||||||
}
|
}
|
||||||
|
|
||||||
public ASupportToolbar(Context context, AttributeSet attrs) {
|
public ASupportToolbar(Context context, AttributeSet attrs) {
|
||||||
super(context, attrs);
|
super(context, attrs);
|
||||||
TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.ASupportToolbar, R.attr.aSupportToolbar, 0);
|
LogUtils.d(TAG, "ASupportToolbar() attrs constructor");
|
||||||
mTitleTextColor = a.getColor(R.styleable.ASupportToolbar_attrASupportToolbarTitleTextColor, Color.GREEN);
|
initStyledAttributes(attrs, R.attr.aSupportToolbar);
|
||||||
mStartColor = a.getColor(R.styleable.ASupportToolbar_attrASupportToolbarStartColor, Color.BLUE);
|
|
||||||
mCenterColor = a.getColor(R.styleable.ASupportToolbar_attrASupportToolbarCenterColor, Color.RED);
|
|
||||||
mEndColor = a.getColor(R.styleable.ASupportToolbar_attrASupportToolbarEndColor, Color.YELLOW);
|
|
||||||
// 返回一个绑定资源结束的信号给资源
|
|
||||||
a.recycle();
|
|
||||||
notifyColorChange();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public ASupportToolbar(Context context, AttributeSet attrs, int defStyleAttr) {
|
||||||
|
super(context, attrs, defStyleAttr);
|
||||||
|
LogUtils.d(TAG, "ASupportToolbar() attrs defStyleAttr constructor");
|
||||||
|
initStyledAttributes(attrs, defStyleAttr);
|
||||||
|
}
|
||||||
|
|
||||||
|
void initStyledAttributes(AttributeSet attrs, int defStyleAttr) {
|
||||||
|
LogUtils.d(TAG, "initStyledAttributes() start");
|
||||||
|
TypedArray a = getContext().obtainStyledAttributes(attrs, R.styleable.ASupportToolbar, defStyleAttr, 0);
|
||||||
|
mTitleTextColor = a.getColor(R.styleable.ASupportToolbar_attrASupportToolbarTitleTextColor, 0xFF00FF00);
|
||||||
|
mStartColor = a.getColor(R.styleable.ASupportToolbar_attrASupportToolbarStartColor, 0xFF03AB4E);
|
||||||
|
mCenterColor = a.getColor(R.styleable.ASupportToolbar_attrASupportToolbarCenterColor, 0xFF03AB4E);
|
||||||
|
mEndColor = a.getColor(R.styleable.ASupportToolbar_attrASupportToolbarEndColor, 0xFF3DDC84);
|
||||||
|
LogUtils.d(TAG, String.format("initStyledAttributes() colors: title=0x%x, start=0x%x, center=0x%x, end=0x%x", mTitleTextColor, mStartColor, mCenterColor, mEndColor));
|
||||||
|
a.recycle();
|
||||||
|
setTitleTextColor(mTitleTextColor);
|
||||||
|
LogUtils.d(TAG, "initStyledAttributes() end");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void onAttachedToWindow() {
|
||||||
|
super.onAttachedToWindow();
|
||||||
|
LogUtils.d(TAG, "onAttachedToWindow() start");
|
||||||
|
refreshFromTheme();
|
||||||
|
LogUtils.d(TAG, "onAttachedToWindow() end");
|
||||||
|
}
|
||||||
|
|
||||||
|
public void refreshFromTheme() {
|
||||||
|
LogUtils.d(TAG, "refreshFromTheme() start");
|
||||||
|
TypedArray a = getContext().obtainStyledAttributes(R.styleable.ASupportToolbar);
|
||||||
|
try {
|
||||||
|
mTitleTextColor = a.getColor(R.styleable.ASupportToolbar_attrASupportToolbarTitleTextColor, 0xFF00FF00);
|
||||||
|
mStartColor = a.getColor(R.styleable.ASupportToolbar_attrASupportToolbarStartColor, 0xFF03AB4E);
|
||||||
|
mCenterColor = a.getColor(R.styleable.ASupportToolbar_attrASupportToolbarCenterColor, 0xFF03AB4E);
|
||||||
|
mEndColor = a.getColor(R.styleable.ASupportToolbar_attrASupportToolbarEndColor, 0xFF3DDC84);
|
||||||
|
LogUtils.d(TAG, String.format("refreshFromTheme() colors: title=0x%x, start=0x%x, center=0x%x, end=0x%x", mTitleTextColor, mStartColor, mCenterColor, mEndColor));
|
||||||
|
} finally {
|
||||||
|
a.recycle();
|
||||||
|
}
|
||||||
|
postNotifyColorChange();
|
||||||
|
LogUtils.d(TAG, "refreshFromTheme() end");
|
||||||
|
}
|
||||||
|
|
||||||
|
void postNotifyColorChange() {
|
||||||
|
LogUtils.d(TAG, "postNotifyColorChange()");
|
||||||
|
removeCallbacks(mRefreshRunnable);
|
||||||
|
post(mRefreshRunnable);
|
||||||
|
}
|
||||||
|
|
||||||
|
Runnable mRefreshRunnable = new Runnable() {
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
|
LogUtils.d(TAG, "mRefreshRunnable.run() start");
|
||||||
|
notifyColorChange();
|
||||||
|
LogUtils.d(TAG, "mRefreshRunnable.run() end");
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
void notifyColorChange() {
|
void notifyColorChange() {
|
||||||
// 工具栏描边
|
LogUtils.d(TAG, "notifyColorChange() start");
|
||||||
|
LogUtils.d(TAG, String.format("notifyColorChange() size: width=%d, height=%d", getWidth(), getHeight()));
|
||||||
|
|
||||||
|
int nWidth = getWidth();
|
||||||
|
int nHeight = getHeight();
|
||||||
|
if (nWidth == 0 || nHeight == 0) {
|
||||||
|
LogUtils.d(TAG, "notifyColorChange() skipped: width or height is 0");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
int nStroke = 5;
|
int nStroke = 5;
|
||||||
|
|
||||||
//分别为开始颜色,中间夜色,结束颜色
|
int colors0[] = { mEndColor , mCenterColor, mStartColor };
|
||||||
int colors0[] = { mEndColor , mCenterColor, mStartColor};
|
|
||||||
GradientDrawable gradientDrawable0;
|
|
||||||
array[2] = new GradientDrawable(GradientDrawable.Orientation.TOP_BOTTOM, colors0);
|
array[2] = new GradientDrawable(GradientDrawable.Orientation.TOP_BOTTOM, colors0);
|
||||||
gradientDrawable0 = array[2];
|
array[2].setShape(GradientDrawable.RECTANGLE);
|
||||||
gradientDrawable0.setShape(GradientDrawable.RECTANGLE);
|
array[2].setColors(colors0);
|
||||||
gradientDrawable0.setColors(colors0); //添加颜色组
|
array[2].setGradientType(GradientDrawable.LINEAR_GRADIENT);
|
||||||
gradientDrawable0.setGradientType(GradientDrawable.LINEAR_GRADIENT);//设置线性渐变
|
array[2].setCornerRadius(20);
|
||||||
gradientDrawable0.setCornerRadius(20);
|
|
||||||
|
|
||||||
int colors1[] = { mCenterColor , mCenterColor, mCenterColor };
|
int colors1[] = { mCenterColor, mCenterColor, mCenterColor };
|
||||||
GradientDrawable gradientDrawable1;
|
|
||||||
array[1] = new GradientDrawable(GradientDrawable.Orientation.TOP_BOTTOM, colors1);
|
array[1] = new GradientDrawable(GradientDrawable.Orientation.TOP_BOTTOM, colors1);
|
||||||
gradientDrawable1 = array[1];
|
array[1].setShape(GradientDrawable.RECTANGLE);
|
||||||
gradientDrawable1.setShape(GradientDrawable.RECTANGLE);
|
array[1].setColors(colors1);
|
||||||
gradientDrawable1.setColors(colors1); //添加颜色组
|
array[1].setGradientType(GradientDrawable.LINEAR_GRADIENT);
|
||||||
gradientDrawable1.setGradientType(GradientDrawable.LINEAR_GRADIENT);//设置线性渐变
|
array[1].setCornerRadius(20);
|
||||||
gradientDrawable1.setCornerRadius(20);
|
|
||||||
|
|
||||||
int colors2[] = { mEndColor, mCenterColor, mStartColor };
|
int colors2[] = { mEndColor, mCenterColor, mStartColor };
|
||||||
GradientDrawable gradientDrawable2;
|
|
||||||
array[0] = new GradientDrawable(GradientDrawable.Orientation.TOP_BOTTOM, colors2);
|
array[0] = new GradientDrawable(GradientDrawable.Orientation.TOP_BOTTOM, colors2);
|
||||||
gradientDrawable2 = array[0];
|
array[0].setShape(GradientDrawable.RECTANGLE);
|
||||||
gradientDrawable2.setShape(GradientDrawable.RECTANGLE);
|
array[0].setColors(colors2);
|
||||||
gradientDrawable2.setColors(colors2); //添加颜色组
|
array[0].setGradientType(GradientDrawable.LINEAR_GRADIENT);
|
||||||
gradientDrawable2.setGradientType(GradientDrawable.LINEAR_GRADIENT);//设置线性渐变
|
array[0].setCornerRadius(20);
|
||||||
gradientDrawable2.setCornerRadius(20);
|
|
||||||
|
|
||||||
ld = new LayerDrawable(array); //参数为上面的Drawable数组
|
ld = new LayerDrawable(array);
|
||||||
ld.setLayerInset(2, nStroke * 2, nStroke * 2, getWidth() + nStroke * 2, getHeight() + nStroke * 2);
|
ld.setLayerInset(2, nStroke * 2, nStroke * 2, nWidth + nStroke * 2, nHeight + nStroke * 2);
|
||||||
ld.setLayerInset(1, nStroke, nStroke, getWidth() + nStroke, getHeight() + nStroke);
|
ld.setLayerInset(1, nStroke, nStroke, nWidth + nStroke, nHeight + nStroke);
|
||||||
ld.setLayerInset(0, 0, 0, getWidth(), getHeight());
|
ld.setLayerInset(0, 0, 0, nWidth, nHeight);
|
||||||
|
|
||||||
setBackgroundDrawable(ld);
|
setBackgroundDrawable(ld);
|
||||||
setTitleTextColor(mTitleTextColor);
|
setTitleTextColor(mTitleTextColor);
|
||||||
setSubtitleTextColor(mTitleTextColor);
|
setSubtitleTextColor(mTitleTextColor);
|
||||||
|
LogUtils.d(TAG, "notifyColorChange() end");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
33
libaes/src/main/res/values-night/colors.xml
Normal file
33
libaes/src/main/res/values-night/colors.xml
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources>
|
||||||
|
|
||||||
|
<color name="colorTextColor">#FFFFFFFF</color>
|
||||||
|
<color name="colorPrimary">#FF03AB4E</color>
|
||||||
|
<color name="colorPrimaryDark">#FF027C39</color>
|
||||||
|
<color name="colorAccent">#FF3DDC84</color>
|
||||||
|
<color name="colorText">#FFFFFB8D</color>
|
||||||
|
<color name="colorToastFrame">#FFA9A9A9</color>
|
||||||
|
<color name="colorToastShadow">#FF000000</color>
|
||||||
|
<color name="colorToastBackgroung">#FFFFFFFF</color>
|
||||||
|
<color name="colorAToolbarStartColor">#FF7D3F12</color>
|
||||||
|
<color name="colorAToolbarCenterColor">#FFCC6E2B</color>
|
||||||
|
<color name="colorAToolbarEndColor">#FFF4B98F</color>
|
||||||
|
|
||||||
|
<color name="colorACardShadow">@color/colorPrimaryDark</color>
|
||||||
|
<color name="colorACardFrame">@color/colorPrimary</color>
|
||||||
|
<color name="colorACardBackgroung">@color/colorAccent</color>
|
||||||
|
|
||||||
|
<color name="colorATickProgressBarBackgroung">@color/colorAccent</color>
|
||||||
|
<color name="colorATickProgressBarProgress">@color/colorPrimary</color>
|
||||||
|
|
||||||
|
<color name="colorOHPCTSBackground">@color/colorAccent</color>
|
||||||
|
<color name="colorOHPCTSSecondaryProgress">@color/colorPrimary</color>
|
||||||
|
<color name="colorOHPCTSProgress">@color/colorPrimaryDark</color>
|
||||||
|
|
||||||
|
<color name="toolbarBackgroundColor">#FF03AB4E</color>
|
||||||
|
<color name="toolbarTextColor">#FFFFFFFF</color>
|
||||||
|
<color name="mainWindowBackgroundColor">#FF2C2C2C</color>
|
||||||
|
<color name="mainWindowTextColor">#FFFFFFFF</color>
|
||||||
|
<color name="debugTextColor">#FFFF0000</color>
|
||||||
|
|
||||||
|
</resources>
|
||||||
112
libaes/src/main/res/values-night/styles.xml
Normal file
112
libaes/src/main/res/values-night/styles.xml
Normal file
@@ -0,0 +1,112 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources>
|
||||||
|
|
||||||
|
<style name="AESTheme" parent="Theme.AppCompat.NoActionBar">
|
||||||
|
<item name="themeDebug">@style/DebugActivityTheme</item>
|
||||||
|
<item name="aboutViewBackgroundColor">@color/mainWindowBackgroundColor</item>
|
||||||
|
<item name="aboutViewTextColor">@color/mainWindowTextColor</item>
|
||||||
|
<item name="aboutViewTitleColor">@color/mainWindowTextColor</item>
|
||||||
|
<item name="aboutViewDividerColor">@color/mainWindowTextColor</item>
|
||||||
|
<item name="dialogBackgroundColor">@color/mainWindowBackgroundColor</item>
|
||||||
|
<item name="dialogTextColor">@color/mainWindowTextColor</item>
|
||||||
|
<item name="toolbarBackgroundColor">@color/toolbarBackgroundColor</item>
|
||||||
|
<item name="toolbarTextColor">@color/toolbarTextColor</item>
|
||||||
|
<item name="textViewBackgroundColor">@color/mainWindowBackgroundColor</item>
|
||||||
|
<item name="textViewTextColor">@color/mainWindowTextColor</item>
|
||||||
|
<item name="editTextBackgroundColor">@color/mainWindowBackgroundColor</item>
|
||||||
|
<item name="editTextTextColor">@color/mainWindowTextColor</item>
|
||||||
|
<item name="scrollViewBackgroundColor">@color/mainWindowBackgroundColor</item>
|
||||||
|
<item name="activityBackgroundColor">@color/mainWindowBackgroundColor</item>
|
||||||
|
<item name="activityTextColor">@color/mainWindowTextColor</item>
|
||||||
|
<item name="mainWindowBackgroundColor">@color/mainWindowBackgroundColor</item>
|
||||||
|
<item name="mainWindowTextColor">@color/mainWindowTextColor</item>
|
||||||
|
<item name="mainWindowDarkBackgroundColor">@color/mainWindowBackgroundColor</item>
|
||||||
|
<item name="mainWindowDarkTextColor">@color/mainWindowTextColor</item>
|
||||||
|
<item name="android:statusBarColor">@color/toolbarBackgroundColor</item>
|
||||||
|
|
||||||
|
<item name="aToolbar">@style/AESAToolbar</item>
|
||||||
|
<item name="aSupportToolbar">@style/AESASupportToolbar</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style name="DebugActivityTheme" parent="Theme.AppCompat.NoActionBar">
|
||||||
|
<item name="android:statusBarColor">@color/toolbarBackgroundColor</item>
|
||||||
|
<item name="colorTittle">@color/mainWindowTextColor</item>
|
||||||
|
<item name="colorTittleBackgound">@color/toolbarBackgroundColor</item>
|
||||||
|
<item name="colorText">@color/debugTextColor</item>
|
||||||
|
<item name="colorTextBackgound">@color/mainWindowBackgroundColor</item>
|
||||||
|
<item name="debugTextColor">@color/debugTextColor</item>
|
||||||
|
<item name="toolbarTextColor">@color/toolbarTextColor</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style name="AESAToolbar">
|
||||||
|
<item name="attrAToolbarTitleTextColor">@color/colorTextColor</item>
|
||||||
|
<item name="attrAToolbarStartColor">@color/colorPrimaryDark</item>
|
||||||
|
<item name="attrAToolbarCenterColor">@color/colorPrimary</item>
|
||||||
|
<item name="attrAToolbarEndColor">@color/colorAccent</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style name="AESASupportToolbar">
|
||||||
|
<item name="attrASupportToolbarTitleTextColor">@color/colorTextColor</item>
|
||||||
|
<item name="attrASupportToolbarStartColor">@color/colorPrimaryDark</item>
|
||||||
|
<item name="attrASupportToolbarCenterColor">@color/colorPrimary</item>
|
||||||
|
<item name="attrASupportToolbarEndColor">@color/colorAccent</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style name="DepthAESTheme" parent="AESTheme">
|
||||||
|
<item name="colorPrimary">#FF0065EC</item>
|
||||||
|
<item name="colorPrimaryDark">#FF004DB4</item>
|
||||||
|
<item name="colorAccent">#FF4A97FF</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style name="SkyAESTheme" parent="AESTheme">
|
||||||
|
<item name="colorPrimary">#FF00A6FF</item>
|
||||||
|
<item name="colorPrimaryDark">#FF007ABB</item>
|
||||||
|
<item name="colorAccent">#FF84D4FF</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style name="GoldenAESTheme" parent="AESTheme">
|
||||||
|
<item name="colorPrimary">#FFF0CA11</item>
|
||||||
|
<item name="colorPrimaryDark">#FFD3AF00</item>
|
||||||
|
<item name="colorAccent">#FFFFE35C</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style name="BearingAESTheme" parent="AESTheme">
|
||||||
|
<item name="colorPrimary">#FF840FFF</item>
|
||||||
|
<item name="colorPrimaryDark">#FF6900D7</item>
|
||||||
|
<item name="colorAccent">#FFBA78FF</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style name="MemorAESTheme" parent="AESTheme">
|
||||||
|
<item name="colorPrimary">#FFFF00F5</item>
|
||||||
|
<item name="colorPrimaryDark">#FFE500DC</item>
|
||||||
|
<item name="colorAccent">#FFFF76FA</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style name="TaoAESTheme" parent="AESTheme">
|
||||||
|
<item name="colorPrimary">#FFACACAC</item>
|
||||||
|
<item name="colorPrimaryDark">#FF898989</item>
|
||||||
|
<item name="colorAccent">#FFD8D8D8</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style name="NormalDialogStyle" parent="Theme.AppCompat.Dialog">
|
||||||
|
<item name="android:windowBackground">@android:color/transparent</item>
|
||||||
|
<item name="android:windowFrame">@null</item>
|
||||||
|
<item name="android:windowNoTitle">true</item>
|
||||||
|
<item name="android:windowIsFloating">true</item>
|
||||||
|
<item name="android:windowIsTranslucent">false</item>
|
||||||
|
<item name="android:windowContentOverlay">@null</item>
|
||||||
|
<item name="android:windowAnimationStyle">@style/cornerDialogAnim</item>
|
||||||
|
<item name="android:backgroundDimEnabled">true</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style name="centerDialogAnim" parent="android:Animation">
|
||||||
|
<item name="@android:windowEnterAnimation">@anim/normal_dialog_enter_center</item>
|
||||||
|
<item name="@android:windowExitAnimation">@anim/normal_dialog_exit_center</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style name="cornerDialogAnim" parent="android:Animation">
|
||||||
|
<item name="@android:windowEnterAnimation">@anim/normal_dialog_enter_corner</item>
|
||||||
|
<item name="@android:windowExitAnimation">@anim/normal_dialog_exit_corner</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
|
</resources>
|
||||||
@@ -43,6 +43,7 @@
|
|||||||
<attr name="attrASupportToolbarStartColor"/>
|
<attr name="attrASupportToolbarStartColor"/>
|
||||||
<attr name="attrASupportToolbarCenterColor"/>
|
<attr name="attrASupportToolbarCenterColor"/>
|
||||||
<attr name="attrASupportToolbarEndColor"/>
|
<attr name="attrASupportToolbarEndColor"/>
|
||||||
|
<attr name="android:background"/>
|
||||||
</declare-styleable>
|
</declare-styleable>
|
||||||
|
|
||||||
<declare-styleable name="AButton">
|
<declare-styleable name="AButton">
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
|
|
||||||
<!-- 默认方案 -->
|
<color name="colorTextColor">#FF000000</color>
|
||||||
<color name="colorPrimary">#FF03AB4E</color>
|
<color name="colorPrimary">#FF03AB4E</color>
|
||||||
<color name="colorPrimaryDark">#FF027C39</color>
|
<color name="colorPrimaryDark">#FF027C39</color>
|
||||||
<color name="colorAccent">#FF3DDC84</color>
|
<color name="colorAccent">#FF3DDC84</color>
|
||||||
<color name="colorText">#FFFFFB8D</color>
|
<color name="colorText">#FFFFFB8D</color>
|
||||||
<color name="colorToastFrame">#FFA9A9A9</color>
|
<color name="colorToastFrame">#FFA9A9A9</color>
|
||||||
<color name="colorToastShadow">#FF000000</color>
|
<color name="colorToastShadow">#FF000000</color>
|
||||||
<color name="colorToastBackgroung">#FFFFFFFF</color>
|
<color name="colorToastBackgroung">#FFFFFFFF</color>
|
||||||
@@ -24,22 +24,10 @@
|
|||||||
<color name="colorOHPCTSSecondaryProgress">@color/colorPrimary</color>
|
<color name="colorOHPCTSSecondaryProgress">@color/colorPrimary</color>
|
||||||
<color name="colorOHPCTSProgress">@color/colorPrimaryDark</color>
|
<color name="colorOHPCTSProgress">@color/colorPrimaryDark</color>
|
||||||
|
|
||||||
<!-- -->
|
<color name="toolbarBackgroundColor">#FF03AB4E</color>
|
||||||
|
<color name="toolbarTextColor">#FFFFFFFF</color>
|
||||||
|
<color name="mainWindowBackgroundColor">#FFFFFFFF</color>
|
||||||
|
<color name="mainWindowTextColor">#FF000000</color>
|
||||||
|
<color name="debugTextColor">#FFFF0000</color>
|
||||||
|
|
||||||
<!-- 调试方案
|
|
||||||
<color name="colorPrimary">#FF727272</color>
|
|
||||||
<color name="colorPrimaryDark">#FF444444</color>
|
|
||||||
<color name="colorAccent">#FF9EA19F</color>
|
|
||||||
|
|
||||||
<color name="colorAToolbarStartColor">#FF4776EB</color>
|
|
||||||
<color name="colorAToolbarCenterColor">#FF0D4BE7</color>
|
|
||||||
<color name="colorAToolbarEndColor">#FF8FA7E3</color>
|
|
||||||
|
|
||||||
<color name="colorACardShadow">#FF22A200</color>
|
|
||||||
<color name="colorACardFrame">#FF3FCC19</color>
|
|
||||||
<color name="colorACardBackgroung">#FF88F16B</color>
|
|
||||||
|
|
||||||
<color name="colorATickProgressBarBackgroung">#FF6DC4E2</color>
|
|
||||||
<color name="colorATickProgressBarProgress">#FF22B0E1</color>
|
|
||||||
-->
|
|
||||||
</resources>
|
</resources>
|
||||||
@@ -1,255 +1,112 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
|
|
||||||
<style name="AESTheme" parent="Theme.AppCompat.Light.NoActionBar">
|
<style name="AESTheme" parent="Theme.AppCompat.Light.NoActionBar">
|
||||||
<item name="colorTextColor">#FF000000</item>
|
<item name="themeDebug">@style/DebugActivityTheme</item>
|
||||||
<item name="colorPrimary">#FF18B05C</item>
|
<item name="aboutViewBackgroundColor">@color/mainWindowBackgroundColor</item>
|
||||||
<item name="colorPrimaryDark">#FF008C3F</item>
|
<item name="aboutViewTextColor">@color/mainWindowTextColor</item>
|
||||||
<item name="colorAccent">#FF24DC77</item>
|
<item name="aboutViewTitleColor">@color/mainWindowTextColor</item>
|
||||||
<item name="android:textColor">#FF000000</item>
|
<item name="aboutViewDividerColor">@color/mainWindowTextColor</item>
|
||||||
|
<item name="dialogBackgroundColor">@color/mainWindowBackgroundColor</item>
|
||||||
|
<item name="dialogTextColor">@color/mainWindowTextColor</item>
|
||||||
|
<item name="toolbarBackgroundColor">@color/toolbarBackgroundColor</item>
|
||||||
|
<item name="toolbarTextColor">@color/toolbarTextColor</item>
|
||||||
|
<item name="textViewBackgroundColor">@color/mainWindowBackgroundColor</item>
|
||||||
|
<item name="textViewTextColor">@color/mainWindowTextColor</item>
|
||||||
|
<item name="editTextBackgroundColor">@color/mainWindowBackgroundColor</item>
|
||||||
|
<item name="editTextTextColor">@color/mainWindowTextColor</item>
|
||||||
|
<item name="scrollViewBackgroundColor">@color/mainWindowBackgroundColor</item>
|
||||||
|
<item name="activityBackgroundColor">@color/mainWindowBackgroundColor</item>
|
||||||
|
<item name="activityTextColor">@color/mainWindowTextColor</item>
|
||||||
|
<item name="mainWindowBackgroundColor">@color/mainWindowBackgroundColor</item>
|
||||||
|
<item name="mainWindowTextColor">@color/mainWindowTextColor</item>
|
||||||
|
<item name="mainWindowDarkBackgroundColor">@color/mainWindowBackgroundColor</item>
|
||||||
|
<item name="mainWindowDarkTextColor">@color/mainWindowTextColor</item>
|
||||||
|
<item name="android:statusBarColor">@color/toolbarBackgroundColor</item>
|
||||||
|
|
||||||
<item name="aToolbar">@style/AESAToolbar</item>
|
<item name="aToolbar">@style/AESAToolbar</item>
|
||||||
<item name="aSupportToolbar">@style/AESASupportToolbar</item>
|
<item name="aSupportToolbar">@style/AESASupportToolbar</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
<style name="DebugActivityTheme" parent="Theme.AppCompat.Light.NoActionBar">
|
||||||
|
<item name="android:statusBarColor">@color/toolbarBackgroundColor</item>
|
||||||
|
<item name="colorTittle">@color/mainWindowTextColor</item>
|
||||||
|
<item name="colorTittleBackgound">@color/toolbarBackgroundColor</item>
|
||||||
|
<item name="colorText">@color/debugTextColor</item>
|
||||||
|
<item name="colorTextBackgound">@color/mainWindowBackgroundColor</item>
|
||||||
|
<item name="debugTextColor">@color/debugTextColor</item>
|
||||||
|
<item name="toolbarTextColor">@color/toolbarTextColor</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
<style name="AESAToolbar">
|
<style name="AESAToolbar">
|
||||||
<item name="attrAToolbarTitleTextColor">?attr/colorTextColor</item>
|
<item name="attrAToolbarTitleTextColor">@color/colorTextColor</item>
|
||||||
<item name="attrAToolbarStartColor">?attr/colorPrimaryDark</item>
|
<item name="attrAToolbarStartColor">@color/colorPrimaryDark</item>
|
||||||
<item name="attrAToolbarCenterColor">?attr/colorPrimary</item>
|
<item name="attrAToolbarCenterColor">@color/colorPrimary</item>
|
||||||
<item name="attrAToolbarEndColor">?attr/colorAccent</item>
|
<item name="attrAToolbarEndColor">@color/colorAccent</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="AESASupportToolbar">
|
<style name="AESASupportToolbar">
|
||||||
<item name="attrASupportToolbarTitleTextColor">?attr/colorTextColor</item>
|
<item name="attrASupportToolbarTitleTextColor">@color/colorTextColor</item>
|
||||||
<item name="attrASupportToolbarStartColor">?attr/colorPrimaryDark</item>
|
<item name="attrASupportToolbarStartColor">@color/colorPrimaryDark</item>
|
||||||
<item name="attrASupportToolbarCenterColor">?attr/colorPrimary</item>
|
<item name="attrASupportToolbarCenterColor">@color/colorPrimary</item>
|
||||||
<item name="attrASupportToolbarEndColor">?attr/colorAccent</item>
|
<item name="attrASupportToolbarEndColor">@color/colorAccent</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="DepthAESTheme" parent="AESTheme">
|
<style name="DepthAESTheme" parent="AESTheme">
|
||||||
<item name="colorTextColor">#FF000000</item>
|
|
||||||
<item name="colorPrimary">#FF0065EC</item>
|
<item name="colorPrimary">#FF0065EC</item>
|
||||||
<item name="colorPrimaryDark">#FF004DB4</item>
|
<item name="colorPrimaryDark">#FF004DB4</item>
|
||||||
<item name="colorAccent">#FF4A97FF</item>
|
<item name="colorAccent">#FF4A97FF</item>
|
||||||
<item name="android:textColor">#FF000000</item>
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="SkyAESTheme" parent="AESTheme">
|
<style name="SkyAESTheme" parent="AESTheme">
|
||||||
<item name="colorTextColor">#FF000000</item>
|
|
||||||
<item name="colorPrimary">#FF00A6FF</item>
|
<item name="colorPrimary">#FF00A6FF</item>
|
||||||
<item name="colorPrimaryDark">#FF007ABB</item>
|
<item name="colorPrimaryDark">#FF007ABB</item>
|
||||||
<item name="colorAccent">#FF84D4FF</item>
|
<item name="colorAccent">#FF84D4FF</item>
|
||||||
<item name="android:textColor">#FF000000</item>
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="GoldenAESTheme" parent="AESTheme">
|
<style name="GoldenAESTheme" parent="AESTheme">
|
||||||
<item name="colorTextColor">#FF000000</item>
|
|
||||||
<item name="colorPrimary">#FFF0CA11</item>
|
<item name="colorPrimary">#FFF0CA11</item>
|
||||||
<item name="colorPrimaryDark">#FFD3AF00</item>
|
<item name="colorPrimaryDark">#FFD3AF00</item>
|
||||||
<item name="colorAccent">#FFFFE35C</item>
|
<item name="colorAccent">#FFFFE35C</item>
|
||||||
<item name="android:textColor">#FF000000</item>
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="BearingAESTheme" parent="AESTheme">
|
<style name="BearingAESTheme" parent="AESTheme">
|
||||||
<item name="colorTextColor">#FF000000</item>
|
|
||||||
<item name="colorPrimary">#FF840FFF</item>
|
<item name="colorPrimary">#FF840FFF</item>
|
||||||
<item name="colorPrimaryDark">#FF6900D7</item>
|
<item name="colorPrimaryDark">#FF6900D7</item>
|
||||||
<item name="colorAccent">#FFBA78FF</item>
|
<item name="colorAccent">#FFBA78FF</item>
|
||||||
<item name="android:textColor">#FF000000</item>
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="MemorAESTheme" parent="AESTheme">
|
<style name="MemorAESTheme" parent="AESTheme">
|
||||||
<item name="colorTextColor">#FF000000</item>
|
|
||||||
<item name="colorPrimary">#FFFF00F5</item>
|
<item name="colorPrimary">#FFFF00F5</item>
|
||||||
<item name="colorPrimaryDark">#FFE500DC</item>
|
<item name="colorPrimaryDark">#FFE500DC</item>
|
||||||
<item name="colorAccent">#FFFF76FA</item>
|
<item name="colorAccent">#FFFF76FA</item>
|
||||||
<item name="android:textColor">#FF000000</item>
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="TaoAESTheme" parent="AESTheme">
|
<style name="TaoAESTheme" parent="AESTheme">
|
||||||
<item name="colorTextColor">#FF000000</item>
|
|
||||||
<item name="colorPrimary">#FFACACAC</item>
|
<item name="colorPrimary">#FFACACAC</item>
|
||||||
<item name="colorPrimaryDark">#FF898989</item>
|
<item name="colorPrimaryDark">#FF898989</item>
|
||||||
<item name="colorAccent">#FFD8D8D8</item>
|
<item name="colorAccent">#FFD8D8D8</item>
|
||||||
<item name="android:textColor">#FF000000</item>
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<!--<style name="AESTheme" parent="Theme.AppCompat.Light.NoActionBar">
|
<style name="NormalDialogStyle" parent="Theme.AppCompat.Light.Dialog">
|
||||||
<item name="colorTextColor">#FF000000</item>
|
|
||||||
<item name="colorPrimary">@color/colorPrimary</item>
|
|
||||||
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
|
|
||||||
<item name="colorAccent">@color/colorAccent</item>
|
|
||||||
<item name="android:textColor">#FF000000</item>
|
|
||||||
<item name="aToolbar">@style/AESAToolbar</item>
|
|
||||||
<item name="aSupportToolbar">@style/AESASupportToolbar</item>
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<style name="AESAToolbar">
|
|
||||||
<item name="attrAToolbarTitleTextColor">?attr/colorTextColor</item>
|
|
||||||
<item name="attrAToolbarStartColor">?attr/colorPrimaryDark</item>
|
|
||||||
<item name="attrAToolbarCenterColor">?attr/colorPrimary</item>
|
|
||||||
<item name="attrAToolbarEndColor">?attr/colorAccent</item>
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<style name="AESASupportToolbar">
|
|
||||||
<item name="attrASupportToolbarTitleTextColor">?attr/colorTextColor</item>
|
|
||||||
<item name="attrASupportToolbarStartColor">?attr/colorPrimaryDark</item>
|
|
||||||
<item name="attrASupportToolbarCenterColor">?attr/colorPrimary</item>
|
|
||||||
<item name="attrASupportToolbarEndColor">?attr/colorAccent</item>
|
|
||||||
</style>-->
|
|
||||||
|
|
||||||
<!--<style name="DepthAESTheme" parent="Theme.AppCompat.Light.NoActionBar">
|
|
||||||
<item name="colorTextColor">#FF000000</item>
|
|
||||||
<item name="colorPrimary">#FF2566FE</item>
|
|
||||||
<item name="colorPrimaryDark">#FF1359FF</item>
|
|
||||||
<item name="colorAccent">#FF8BAEFF</item>
|
|
||||||
<item name="android:textColor">#FF000000</item>
|
|
||||||
<item name="aToolbar">@style/DepthAToolbar</item>
|
|
||||||
<item name="aSupportToolbar">@style/DepthASupportToolbar</item>
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<style name="DepthAToolbar">
|
|
||||||
<item name="attrAToolbarTitleTextColor">?attr/colorTextColor</item>
|
|
||||||
<item name="attrAToolbarStartColor">?attr/colorPrimaryDark</item>
|
|
||||||
<item name="attrAToolbarCenterColor">?attr/colorPrimary</item>
|
|
||||||
<item name="attrAToolbarEndColor">?attr/colorAccent</item>
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<style name="DepthASupportToolbar">
|
|
||||||
<item name="attrASupportToolbarTitleTextColor">?attr/colorTextColor</item>
|
|
||||||
<item name="attrASupportToolbarStartColor">?attr/colorPrimaryDark</item>
|
|
||||||
<item name="attrASupportToolbarCenterColor">?attr/colorPrimary</item>
|
|
||||||
<item name="attrASupportToolbarEndColor">?attr/colorAccent</item>
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<style name="SkyAESTheme" parent="Theme.AppCompat.Light.NoActionBar">
|
|
||||||
<item name="colorTextColor">#FF000000</item>
|
|
||||||
<item name="colorPrimary">#FF1E98D4</item>
|
|
||||||
<item name="colorPrimaryDark">#FF046A9C</item>
|
|
||||||
<item name="colorAccent">#FF8CD9FF</item>
|
|
||||||
<item name="android:textColor">#FF000000</item>
|
|
||||||
<item name="aToolbar">@style/SkyAToolbar</item>
|
|
||||||
<item name="aSupportToolbar">@style/SkyASupportToolbar</item>
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<style name="SkyAToolbar">
|
|
||||||
<item name="attrAToolbarTitleTextColor">?attr/colorTextColor</item>
|
|
||||||
<item name="attrAToolbarStartColor">?attr/colorPrimaryDark</item>
|
|
||||||
<item name="attrAToolbarCenterColor">?attr/colorPrimary</item>
|
|
||||||
<item name="attrAToolbarEndColor">?attr/colorAccent</item>
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<style name="SkyASupportToolbar">
|
|
||||||
<item name="attrASupportToolbarTitleTextColor">?attr/colorTextColor</item>
|
|
||||||
<item name="attrASupportToolbarStartColor">?attr/colorPrimaryDark</item>
|
|
||||||
<item name="attrASupportToolbarCenterColor">?attr/colorPrimary</item>
|
|
||||||
<item name="attrASupportToolbarEndColor">?attr/colorAccent</item>
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<style name="GoldenAESTheme" parent="Theme.AppCompat.Light.NoActionBar">
|
|
||||||
<item name="colorTextColor">#FF000000</item>
|
|
||||||
<item name="colorPrimary">#FFFFE22A</item>
|
|
||||||
<item name="colorPrimaryDark">#FFAE9600</item>
|
|
||||||
<item name="colorAccent">#FFFFED78</item>
|
|
||||||
<item name="android:textColor">#FF000000</item>
|
|
||||||
<item name="aToolbar">@style/GoldenAToolbar</item>
|
|
||||||
<item name="aSupportToolbar">@style/GoldenASupportToolbar</item>
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<style name="GoldenAToolbar">
|
|
||||||
<item name="attrAToolbarTitleTextColor">?attr/colorTextColor</item>
|
|
||||||
<item name="attrAToolbarStartColor">?attr/colorPrimaryDark</item>
|
|
||||||
<item name="attrAToolbarCenterColor">?attr/colorPrimary</item>
|
|
||||||
<item name="attrAToolbarEndColor">?attr/colorAccent</item>
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<style name="GoldenASupportToolbar">
|
|
||||||
<item name="attrASupportToolbarTitleTextColor">?attr/colorTextColor</item>
|
|
||||||
<item name="attrASupportToolbarStartColor">?attr/colorPrimaryDark</item>
|
|
||||||
<item name="attrASupportToolbarCenterColor">?attr/colorPrimary</item>
|
|
||||||
<item name="attrASupportToolbarEndColor">?attr/colorAccent</item>
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<style name="MemorAESTheme" parent="Theme.AppCompat.Light.NoActionBar">
|
|
||||||
<item name="colorTextColor">#FF000000</item>
|
|
||||||
<item name="colorPrimary">#FFCE1ED4</item>
|
|
||||||
<item name="colorPrimaryDark">#FFB500BC</item>
|
|
||||||
<item name="colorAccent">#FFE653EB</item>
|
|
||||||
<item name="android:textColor">#FF000000</item>
|
|
||||||
<item name="aToolbar">@style/MemorAToolbar</item>
|
|
||||||
<item name="aSupportToolbar">@style/MemorASupportToolbar</item>
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<style name="MemorAToolbar">
|
|
||||||
<item name="attrAToolbarTitleTextColor">?attr/colorTextColor</item>
|
|
||||||
<item name="attrAToolbarStartColor">?attr/colorPrimaryDark</item>
|
|
||||||
<item name="attrAToolbarCenterColor">?attr/colorPrimary</item>
|
|
||||||
<item name="attrAToolbarEndColor">?attr/colorAccent</item>
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<style name="MemorASupportToolbar">
|
|
||||||
<item name="attrASupportToolbarTitleTextColor">?attr/colorTextColor</item>
|
|
||||||
<item name="attrASupportToolbarStartColor">?attr/colorPrimaryDark</item>
|
|
||||||
<item name="attrASupportToolbarCenterColor">?attr/colorPrimary</item>
|
|
||||||
<item name="attrASupportToolbarEndColor">?attr/colorAccent</item>
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<style name="TaoAESTheme" parent="Theme.AppCompat.Light.NoActionBar">
|
|
||||||
<item name="colorTextColor">#FF000000</item>
|
|
||||||
<item name="colorPrimary">#FF9F9F9F</item>
|
|
||||||
<item name="colorPrimaryDark">#FF5E5E5E</item>
|
|
||||||
<item name="colorAccent">#FFD9D9D9</item>
|
|
||||||
<item name="android:textColor">#FF000000</item>
|
|
||||||
<item name="aToolbar">@style/TaoAToolbar</item>
|
|
||||||
<item name="aSupportToolbar">@style/TaoASupportToolbar</item>
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<style name="TaoAToolbar">
|
|
||||||
<item name="attrAToolbarTitleTextColor">?attr/colorTextColor</item>
|
|
||||||
<item name="attrAToolbarStartColor">?attr/colorPrimaryDark</item>
|
|
||||||
<item name="attrAToolbarCenterColor">?attr/colorPrimary</item>
|
|
||||||
<item name="attrAToolbarEndColor">?attr/colorAccent</item>
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<style name="TaoASupportToolbar">
|
|
||||||
<item name="attrASupportToolbarTitleTextColor">?attr/colorTextColor</item>
|
|
||||||
<item name="attrASupportToolbarStartColor">?attr/colorPrimaryDark</item>
|
|
||||||
<item name="attrASupportToolbarCenterColor">?attr/colorPrimary</item>
|
|
||||||
<item name="attrASupportToolbarEndColor">?attr/colorAccent</item>
|
|
||||||
</style>-->
|
|
||||||
|
|
||||||
<!--<style name="AToolbar">
|
|
||||||
<item name="attrAToolbarTitleTextColor">#FF2DDA27</item>
|
|
||||||
<item name="attrAToolbarStartColor">#FF2DDA27</item>
|
|
||||||
<item name="attrAToolbarCenterColor">#FF2DDA27</item>
|
|
||||||
<item name="attrAToolbarEndColor">#FF2DDA27</item>
|
|
||||||
</style>-->
|
|
||||||
|
|
||||||
<!--对话框的样式-->
|
|
||||||
<style name="NormalDialogStyle">
|
|
||||||
<!--对话框背景 -->
|
|
||||||
<item name="android:windowBackground">@android:color/transparent</item>
|
<item name="android:windowBackground">@android:color/transparent</item>
|
||||||
<!--边框 -->
|
|
||||||
<item name="android:windowFrame">@null</item>
|
<item name="android:windowFrame">@null</item>
|
||||||
<!--没有标题 -->
|
|
||||||
<item name="android:windowNoTitle">true</item>
|
<item name="android:windowNoTitle">true</item>
|
||||||
<!-- 是否浮现在Activity之上 -->
|
|
||||||
<item name="android:windowIsFloating">true</item>
|
<item name="android:windowIsFloating">true</item>
|
||||||
<!--背景透明 -->
|
|
||||||
<item name="android:windowIsTranslucent">false</item>
|
<item name="android:windowIsTranslucent">false</item>
|
||||||
<!-- 是否有覆盖 -->
|
|
||||||
<item name="android:windowContentOverlay">@null</item>
|
<item name="android:windowContentOverlay">@null</item>
|
||||||
<!--进出的显示动画 -->
|
|
||||||
<item name="android:windowAnimationStyle">@style/cornerDialogAnim</item>
|
<item name="android:windowAnimationStyle">@style/cornerDialogAnim</item>
|
||||||
<!--背景变暗-->
|
|
||||||
<item name="android:backgroundDimEnabled">true</item>
|
<item name="android:backgroundDimEnabled">true</item>
|
||||||
</style>
|
</style>
|
||||||
<!--对话框动画,中间弹出-->
|
|
||||||
<style name="centerDialogAnim" parent="android:Animation">
|
<style name="centerDialogAnim" parent="android:Animation">
|
||||||
<item name="@android:windowEnterAnimation">@anim/normal_dialog_enter_center</item>
|
<item name="@android:windowEnterAnimation">@anim/normal_dialog_enter_center</item>
|
||||||
<item name="@android:windowExitAnimation">@anim/normal_dialog_exit_center</item>
|
<item name="@android:windowExitAnimation">@anim/normal_dialog_exit_center</item>
|
||||||
</style>
|
</style>
|
||||||
<!--对话框动画,角落弹出-->
|
|
||||||
<style name="cornerDialogAnim" parent="android:Animation">
|
<style name="cornerDialogAnim" parent="android:Animation">
|
||||||
<item name="@android:windowEnterAnimation">@anim/normal_dialog_enter_corner</item>
|
<item name="@android:windowEnterAnimation">@anim/normal_dialog_enter_corner</item>
|
||||||
<item name="@android:windowExitAnimation">@anim/normal_dialog_exit_corner</item>
|
<item name="@android:windowExitAnimation">@anim/normal_dialog_exit_corner</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
@@ -31,8 +31,8 @@ dependencies {
|
|||||||
api 'com.jcraft:jsch:0.1.54'
|
api 'com.jcraft:jsch:0.1.54'
|
||||||
|
|
||||||
// WinBoLL库 nexus.winboll.cc 地址
|
// WinBoLL库 nexus.winboll.cc 地址
|
||||||
api 'cc.winboll.studio:libaes:15.15.2'
|
api 'cc.winboll.studio:libaes:15.20.2'
|
||||||
api 'cc.winboll.studio:libappbase:15.15.11'
|
api 'cc.winboll.studio:libappbase:15.20.9'
|
||||||
|
|
||||||
api fileTree(dir: 'libs', include: ['*.jar'])
|
api fileTree(dir: 'libs', include: ['*.jar'])
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
#Created by .winboll/winboll_app_build.gradle
|
#Created by .winboll/winboll_app_build.gradle
|
||||||
#Sat May 09 19:01:46 GMT 2026
|
#Tue May 12 12:16:45 HKT 2026
|
||||||
stageCount=27
|
stageCount=1
|
||||||
libraryProject=libwinboll
|
libraryProject=libwinboll
|
||||||
baseVersion=15.11
|
baseVersion=15.20
|
||||||
publishVersion=15.11.26
|
publishVersion=15.20.0
|
||||||
buildCount=29
|
buildCount=0
|
||||||
baseBetaVersion=15.11.27
|
baseBetaVersion=15.20.1
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ android {
|
|||||||
// versionName 更新后需要手动设置
|
// versionName 更新后需要手动设置
|
||||||
// .winboll/winbollBuildProps.properties 文件的 stageCount=0
|
// .winboll/winbollBuildProps.properties 文件的 stageCount=0
|
||||||
// Gradle编译环境下合起来的 versionName 就是 "${versionName}.0"
|
// Gradle编译环境下合起来的 versionName 就是 "${versionName}.0"
|
||||||
versionName "15.11"
|
versionName "15.20"
|
||||||
if(true) {
|
if(true) {
|
||||||
versionName = genVersionName("${versionName}")
|
versionName = genVersionName("${versionName}")
|
||||||
}
|
}
|
||||||
@@ -109,8 +109,8 @@ dependencies {
|
|||||||
implementation 'com.termux:termux-shared:0.118.0'
|
implementation 'com.termux:termux-shared:0.118.0'
|
||||||
|
|
||||||
// WinBoLL库 nexus.winboll.cc 地址
|
// WinBoLL库 nexus.winboll.cc 地址
|
||||||
api 'cc.winboll.studio:libaes:15.15.2'
|
api 'cc.winboll.studio:libaes:15.20.2'
|
||||||
api 'cc.winboll.studio:libappbase:15.15.11'
|
api 'cc.winboll.studio:libappbase:15.20.9'
|
||||||
|
|
||||||
// WinBoLL备用库 jitpack.io 地址
|
// WinBoLL备用库 jitpack.io 地址
|
||||||
//api 'com.github.ZhanGSKen:AES:aes-v15.15.7'
|
//api 'com.github.ZhanGSKen:AES:aes-v15.15.7'
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
#Created by .winboll/winboll_app_build.gradle
|
#Created by .winboll/winboll_app_build.gradle
|
||||||
#Sat May 09 19:01:46 GMT 2026
|
#Tue May 12 12:16:45 HKT 2026
|
||||||
stageCount=27
|
stageCount=1
|
||||||
libraryProject=libwinboll
|
libraryProject=libwinboll
|
||||||
baseVersion=15.11
|
baseVersion=15.20
|
||||||
publishVersion=15.11.26
|
publishVersion=15.20.0
|
||||||
buildCount=29
|
buildCount=0
|
||||||
baseBetaVersion=15.11.27
|
baseBetaVersion=15.20.1
|
||||||
|
|||||||
@@ -4,4 +4,10 @@
|
|||||||
<color name="colorPrimaryDark">#00796B</color>
|
<color name="colorPrimaryDark">#00796B</color>
|
||||||
<color name="colorAccent">#FF9800</color>
|
<color name="colorAccent">#FF9800</color>
|
||||||
<color name="pattern_lock_black">#000000</color>
|
<color name="pattern_lock_black">#000000</color>
|
||||||
|
|
||||||
|
<color name="mainWindowBackgroundColor">#FFF5F5F5</color>
|
||||||
|
<color name="mainWindowTextColor">#FF000000</color>
|
||||||
|
<color name="toolbarTextColor">#FF000000</color>
|
||||||
|
<color name="toolbarBackgroundColor">#FF00B322</color>
|
||||||
|
<color name="debugTextColor">#FF808080</color>
|
||||||
</resources>
|
</resources>
|
||||||
@@ -1,5 +1,35 @@
|
|||||||
<resources>
|
<resources>
|
||||||
<style name="MyAppTheme" parent="AESTheme">
|
<style name="MyAppTheme" parent="Theme.AppCompat.Light.NoActionBar">
|
||||||
|
<item name="themeDebug">@style/MyDebugActivityTheme</item>
|
||||||
|
<item name="aboutViewBackgroundColor">@color/mainWindowBackgroundColor</item>
|
||||||
|
<item name="aboutViewTextColor">@color/mainWindowTextColor</item>
|
||||||
|
<item name="aboutViewTitleColor">@color/mainWindowTextColor</item>
|
||||||
|
<item name="aboutViewDividerColor">@color/mainWindowTextColor</item>
|
||||||
|
<item name="dialogBackgroundColor">@color/mainWindowBackgroundColor</item>
|
||||||
|
<item name="dialogTextColor">@color/mainWindowTextColor</item>
|
||||||
|
<item name="toolbarBackgroundColor">@color/toolbarBackgroundColor</item>
|
||||||
|
<item name="toolbarTextColor">@color/toolbarTextColor</item>
|
||||||
|
<item name="textViewBackgroundColor">@color/mainWindowBackgroundColor</item>
|
||||||
|
<item name="textViewTextColor">@color/mainWindowTextColor</item>
|
||||||
|
<item name="editTextBackgroundColor">@color/mainWindowBackgroundColor</item>
|
||||||
|
<item name="editTextTextColor">@color/mainWindowTextColor</item>
|
||||||
|
<item name="scrollViewBackgroundColor">@color/mainWindowBackgroundColor</item>
|
||||||
|
<item name="activityBackgroundColor">@color/mainWindowBackgroundColor</item>
|
||||||
|
<item name="activityTextColor">@color/mainWindowTextColor</item>
|
||||||
|
<item name="mainWindowBackgroundColor">@color/mainWindowBackgroundColor</item>
|
||||||
|
<item name="mainWindowTextColor">@color/mainWindowTextColor</item>
|
||||||
|
<item name="mainWindowDarkBackgroundColor">@color/mainWindowBackgroundColor</item>
|
||||||
|
<item name="mainWindowDarkTextColor">@color/mainWindowTextColor</item>
|
||||||
|
<item name="android:statusBarColor">@color/toolbarBackgroundColor</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
<style name="MyDebugActivityTheme" parent="Theme.AppCompat.Light.NoActionBar">
|
||||||
|
<item name="android:statusBarColor">@color/toolbarBackgroundColor</item>
|
||||||
|
<item name="colorTittle">@color/mainWindowTextColor</item>
|
||||||
|
<item name="colorTittleBackgound">@color/toolbarBackgroundColor</item>
|
||||||
|
<item name="colorText">@color/debugTextColor</item>
|
||||||
|
<item name="colorTextBackgound">@color/mainWindowBackgroundColor</item>
|
||||||
|
<item name="debugTextColor">@color/debugTextColor</item>
|
||||||
|
<item name="toolbarTextColor">@color/toolbarTextColor</item>
|
||||||
|
</style>
|
||||||
</resources>
|
</resources>
|
||||||
|
|||||||
Reference in New Issue
Block a user