Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
陈高翔
/
DreamSleep-iOS
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit e2200162
由
cgx
编写于
2022-04-15 15:39:03 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
隐私页面、引导页黑夜模式适配
1 个父辈
fdd5728c
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
22 行增加
和
7 行删除
DreamSleep/DreamSleep/Launcher/LeadView.m
DreamSleep/DreamSleep/Launcher/LeadingController.m
DreamSleep/DreamSleep/Main/BaseNaviController.m
DreamSleep/DreamSleep/PrivacyPolicy/PrivacyView.m
DreamSleep/DreamSleep/PrivacyPolicy/PrivacyViewController.m
DreamSleep/DreamSleep/Resource/DKColorTable.txt
DreamSleep/DreamSleep/Launcher/LeadView.m
查看文件 @
e220016
...
...
@@ -20,6 +20,8 @@
-
(
instancetype
)
initWithFrame
:
(
CGRect
)
frame
{
if
(
self
=
[
super
initWithFrame
:
frame
])
{
self
.
dk_backgroundColorPicker
=
DKColorPickerWithKey
(
LeadViewBG
);
[
self
addSubview
:
self
.
mainScrollView
];
[
self
addSubview
:
self
.
pageControl
];
...
...
@@ -56,6 +58,7 @@
UIImageView
*
bgIV
=
[[
UIImageView
alloc
]
initWithFrame
:
CGRectMake
(
i
*
kScreenWidth
,
0
,
kScreenWidth
,
height
)];
bgIV
.
image
=
bgImg
;
bgIV
.
contentMode
=
UIViewContentModeScaleAspectFill
;
bgIV
.
dk_alphaPicker
=
DKAlphaPickerWithAlphas
(
1
.
f
,
0
.
5
f
,
0
.
1
f
);
[
self
.
mainScrollView
addSubview
:
bgIV
];
// 引导提示标签
[
self
richLabWithLeftStr
:
letTitle
rightStr
:
rightTitle
bgIV
:
bgIV
];
...
...
@@ -68,7 +71,8 @@
NSString
*
spaceStr
=
@" "
;
NSMutableAttributedString
*
str
=
[[
NSMutableAttributedString
alloc
]
initWithString
:[
NSString
stringWithFormat
:
@"%@%@%@"
,
leftStr
,
spaceStr
,
rightStr
]];
[
str
addAttribute
:
NSForegroundColorAttributeName
value
:
BrandColor
range
:
NSMakeRange
(
0
,
leftStr
.
length
)];
[
str
addAttribute
:
NSForegroundColorAttributeName
value
:
ColorFromHex
(
0x666666
)
range
:
NSMakeRange
(
leftStr
.
length
+
spaceStr
.
length
,
rightStr
.
length
)];
UIColor
*
rightColr
=
[
self
.
dk_manager
.
themeVersion
isEqualToString
:
DKThemeVersionNormal
]
?
ColorFromHex
(
0x666666
)
:
DSWhite
;
[
str
addAttribute
:
NSForegroundColorAttributeName
value
:
rightColr
range
:
NSMakeRange
(
leftStr
.
length
+
spaceStr
.
length
,
rightStr
.
length
)];
[
str
addAttribute
:
NSFontAttributeName
value
:[
UIFont
boldSystemFontOfSize
:
22
.
0
]
range
:
NSMakeRange
(
0
,
str
.
length
)];
UILabel
*
attrLabel
=
[[
UILabel
alloc
]
init
];
...
...
@@ -115,7 +119,7 @@
_pageControl
=
[[
UIPageControl
alloc
]
init
];
_pageControl
.
numberOfPages
=
3
;
_pageControl
.
currentPage
=
0
;
_pageControl
.
pageIndicatorTintColor
=
ColorFromHex
(
0xC8C8C8
);
_pageControl
.
dk_pageIndicatorTintColorPicker
=
DKColorPickerWithKey
(
LeadPageIndicator
);
_pageControl
.
currentPageIndicatorTintColor
=
BrandColor
;
_pageControl
.
enabled
=
NO
;
}
...
...
DreamSleep/DreamSleep/Launcher/LeadingController.m
查看文件 @
e220016
...
...
@@ -16,8 +16,7 @@
-
(
void
)
viewDidLoad
{
[
super
viewDidLoad
];
self
.
view
.
backgroundColor
=
ColorFromHex
(
0xF0F2F5
);
self
.
view
=
self
.
leadView
;
}
...
...
DreamSleep/DreamSleep/Main/BaseNaviController.m
查看文件 @
e220016
...
...
@@ -58,10 +58,12 @@
naviBar
.
scrollEdgeAppearance
=
appearance
;
// 滚动视图滚动后导航栏背景色不会被影响
naviBar
.
standardAppearance
=
appearance
;
// view的原点坐标在导航栏下面
naviBar
.
translucent
=
NO
;
}
else
{
// 导航栏title颜色
[
naviBar
setTitleTextAttributes
:
titleTextAttributes
];
// 导航栏背景色
// 导航栏背景色
&& view的原点坐标在导航栏下面
naviBar
.
barTintColor
=
barTintColor
;
naviBar
.
translucent
=
NO
;
// 隐藏分割线
...
...
DreamSleep/DreamSleep/PrivacyPolicy/PrivacyView.m
查看文件 @
e220016
...
...
@@ -74,7 +74,7 @@
make
.
right
.
equalTo
(
self
.
bigView
.
mas_right
).
offset
(
-
56
);
make
.
bottom
.
equalTo
(
self
.
bigView
.
mas_bottom
).
offset
(
-
12
);
make
.
height
.
equalTo
(
@21
);
make
.
width
.
equalTo
(
@
5
0
);
make
.
width
.
equalTo
(
@
6
0
);
}];
self
.
textView
=
[
UITextView
new
];
...
...
DreamSleep/DreamSleep/PrivacyPolicy/PrivacyViewController.m
查看文件 @
e220016
...
...
@@ -43,7 +43,9 @@
[
self
showPrivacyView
];
}
self
.
darkMaskView
.
hidden
=
!
[
self
.
dk_manager
.
themeVersion
isEqualToString
:
DKThemeVersionNight
];
if
(
self
.
isDetail
)
{
self
.
darkMaskView
.
hidden
=
!
[
self
.
dk_manager
.
themeVersion
isEqualToString
:
DKThemeVersionNight
];
}
}
-
(
void
)
dealloc
{
...
...
@@ -56,6 +58,11 @@
self
.
navigationController
.
navigationBarHidden
=
!
self
.
isDetail
;
}
#pragma mark - 关闭侧滑
-
(
BOOL
)
enableInteractivePopGestureRecognizer
{
return
NO
;
}
-
(
void
)
showPrivacyView
{
self
.
policyView
=
[[
PrivacyView
alloc
]
init
];
[
self
.
view
addSubview
:
self
.
policyView
];
...
...
DreamSleep/DreamSleep/Resource/DKColorTable.txt
查看文件 @
e220016
...
...
@@ -9,6 +9,9 @@ NORMAL NIGHT RED
#FFFFFF #131724 #FAF5F5 TabBarBG
#F5F7FA #161E38 #FAF5F5 VCViewBG
#F0F2F5 #161E38 #000000 LeadViewBG
#E5E5E5 #FFFFFF #000000 LeadPageIndicator
#FFFFFF #161E38 #FAF5F5 NaviBG
#333333 #FFFFFF #000000 TEXT
#AAAAAA #FFFFFF #000000 SubTEXT
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论