Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
Sobot_module_Dev
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sobot_android
Sobot_module_Dev
Commits
605673da
Commit
605673da
authored
Mar 22, 2022
by
郑娜伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
common 添加暗黑模式颜色
parent
96334b6b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
52 additions
and
1 deletion
+52
-1
sobot-common-publish-mavencentral.gradle
sobot_common/sobot-common-publish-mavencentral.gradle
+1
-1
SobotBaseActivity.java
...main/java/com/sobot/common/ui/base/SobotBaseActivity.java
+8
-0
colors.xml
sobot_common/src/main/res/values-night/colors.xml
+43
-0
No files found.
sobot_common/sobot-common-publish-mavencentral.gradle
View file @
605673da
...
@@ -13,7 +13,7 @@ ext {
...
@@ -13,7 +13,7 @@ ext {
PUBLISH_GROUP_ID
=
"com.sobot.library"
//项目包名
PUBLISH_GROUP_ID
=
"com.sobot.library"
//项目包名
PUBLISH_ARTIFACT_ID
=
'sobotcommon'
//项目名
PUBLISH_ARTIFACT_ID
=
'sobotcommon'
//项目名
// PUBLISH_ARTIFACT_ID = 'sobotcommon_x' //项目名
// PUBLISH_ARTIFACT_ID = 'sobotcommon_x' //项目名
PUBLISH_VERSION
=
'1.1'
//版本号
PUBLISH_VERSION
=
'1.1
.1
'
//版本号
}
}
...
...
sobot_common/src/main/java/com/sobot/common/ui/base/SobotBaseActivity.java
View file @
605673da
...
@@ -191,6 +191,14 @@ public abstract class SobotBaseActivity extends FragmentActivity {
...
@@ -191,6 +191,14 @@ public abstract class SobotBaseActivity extends FragmentActivity {
return
findViewById
(
getResId
(
"sobot_tv_left"
));
return
findViewById
(
getResId
(
"sobot_tv_left"
));
}
}
protected
TextView
getRightSecondMenu
()
{
return
findViewById
(
getResId
(
"sobot_tv_right_second"
));
}
protected
TextView
getRightThirdMenu
()
{
return
findViewById
(
getResId
(
"sobot_tv_right_third"
));
}
protected
TextView
getRightMenu
()
{
protected
TextView
getRightMenu
()
{
return
findViewById
(
getResId
(
"sobot_tv_right"
));
return
findViewById
(
getResId
(
"sobot_tv_right"
));
}
}
...
...
sobot_common/src/main/res/values-night/colors.xml
0 → 100644
View file @
605673da
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!--通用 颜色-->
<!--白色-->
<color
name=
"sobot_white"
>
#FFFFFF
</color>
<!--绿色-->
<color
name=
"sobot_common_green"
>
#0DAEAF
</color>
<!--主要文本色 大部分界面里的黑色文字-->
<color
name=
"sobot_common_gray1"
>
#D1D1D6
</color>
<!--次要文本色-->
<color
name=
"sobot_common_gray2"
>
#7C7C80
</color>
<!--占位文本色-->
<color
name=
"sobot_common_gray3"
>
#7C7C80
</color>
<!--一级背景色-->
<color
name=
"sobot_common_gray6"
>
#1B1B1C
</color>
<!--二级背景色-->
<color
name=
"sobot_common_gray7"
>
#262628
</color>
<!-- 主题色 默认绿色 -->
<color
name=
"sobot_color"
>
@color/sobot_common_green
</color>
<!--文字颜色 绿色变白色-->
<color
name=
"sobot_common_wenzi_green_white"
>
@color/sobot_color
</color>
<!--线条分割线颜色-->
<color
name=
"sobot_common_line_gray"
>
#272729
</color>
<!-- 头部开始 -->
<!-- 头部背景 -->
<color
name=
"sobot_color_title_bar_bg"
>
@color/sobot_white
</color>
<!-- 状态栏的颜色设置 -->
<color
name=
"sobot_status_bar_color"
>
@color/sobot_color_title_bar_bg
</color>
<!-- 头部中间昵称颜色 -->
<color
name=
"sobot_color_title_bar_title"
>
@color/sobot_common_gray1
</color>
<!-- 头部两侧菜单字体颜色 -->
<color
name=
"sobot_color_title_bar_menu_text"
>
@color/sobot_common_gray1
</color>
<!--头部头像边框颜色-->
<color
name=
"sobot_color_title_bar_avatar_line"
>
#EDEEF0
</color>
</resources>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment