Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
galaxy-iOS
Project
Project
Details
Activity
Releases
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
mobile-group
galaxy-iOS
Commits
9c7966bd
Commit
9c7966bd
authored
Jul 02, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// tabUI
parent
39fa65c2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
YHCommunityViewController.swift
...s/Modules/Community(社区)/C/YHCommunityViewController.swift
+8
-2
No files found.
galaxy/galaxy/Classes/Modules/Community(社区)/C/YHCommunityViewController.swift
View file @
9c7966bd
...
@@ -30,12 +30,12 @@ class YHCommunityViewController: YHBaseViewController {
...
@@ -30,12 +30,12 @@ class YHCommunityViewController: YHBaseViewController {
dataSource
.
titleNormalFont
=
UIFont
.
PFSC_M
(
ofSize
:
15
)
dataSource
.
titleNormalFont
=
UIFont
.
PFSC_M
(
ofSize
:
15
)
dataSource
.
titleNormalColor
=
UIColor
(
hex
:
0xFFFFFF
,
alpha
:
0.6
)
dataSource
.
titleNormalColor
=
UIColor
(
hex
:
0xFFFFFF
,
alpha
:
0.6
)
dataSource
.
titleSelectedFont
=
UIFont
.
PFSC_M
(
ofSize
:
18
)
dataSource
.
titleSelectedFont
=
UIFont
.
PFSC_M
(
ofSize
:
21
)
dataSource
.
titleSelectedColor
=
.
white
dataSource
.
titleSelectedColor
=
.
white
dataSource
.
isItemSpacingAverageEnabled
=
false
dataSource
.
isItemSpacingAverageEnabled
=
false
dataSource
.
itemWidth
=
JXSegmentedViewAutomaticDimension
dataSource
.
itemWidth
=
JXSegmentedViewAutomaticDimension
dataSource
.
itemSpacing
=
30
dataSource
.
itemSpacing
=
24
return
dataSource
return
dataSource
}()
}()
...
@@ -157,6 +157,8 @@ class YHCommunityViewController: YHBaseViewController {
...
@@ -157,6 +157,8 @@ class YHCommunityViewController: YHBaseViewController {
//配置指示器
//配置指示器
let
indicator
=
JXSegmentedIndicatorLineView
()
let
indicator
=
JXSegmentedIndicatorLineView
()
indicator
.
indicatorWidth
=
16
indicator
.
indicatorWidth
=
16
indicator
.
indicatorHeight
=
2
indicator
.
indicatorCornerRadius
=
0.0
indicator
.
indicatorColor
=
UIColor
.
white
indicator
.
indicatorColor
=
UIColor
.
white
segmentedView
.
indicators
=
[
indicator
]
segmentedView
.
indicators
=
[
indicator
]
segmentedView
.
defaultSelectedIndex
=
defaltIndex
segmentedView
.
defaultSelectedIndex
=
defaltIndex
...
@@ -231,6 +233,8 @@ extension YHCommunityViewController: JXSegmentedViewDelegate {
...
@@ -231,6 +233,8 @@ extension YHCommunityViewController: JXSegmentedViewDelegate {
segmentedDataSource
.
titleSelectedColor
=
.
white
segmentedDataSource
.
titleSelectedColor
=
.
white
let
indicator
=
JXSegmentedIndicatorLineView
()
let
indicator
=
JXSegmentedIndicatorLineView
()
indicator
.
indicatorWidth
=
16
indicator
.
indicatorWidth
=
16
indicator
.
indicatorHeight
=
2
indicator
.
indicatorCornerRadius
=
0.0
indicator
.
indicatorColor
=
UIColor
.
white
indicator
.
indicatorColor
=
UIColor
.
white
segmentedView
.
indicators
=
[
indicator
]
segmentedView
.
indicators
=
[
indicator
]
}
else
{
}
else
{
...
@@ -240,6 +244,8 @@ extension YHCommunityViewController: JXSegmentedViewDelegate {
...
@@ -240,6 +244,8 @@ extension YHCommunityViewController: JXSegmentedViewDelegate {
segmentedDataSource
.
titleSelectedColor
=
UIColor
.
mainTextColor
segmentedDataSource
.
titleSelectedColor
=
UIColor
.
mainTextColor
let
indicator
=
JXSegmentedIndicatorLineView
()
let
indicator
=
JXSegmentedIndicatorLineView
()
indicator
.
indicatorWidth
=
16
indicator
.
indicatorWidth
=
16
indicator
.
indicatorHeight
=
2
indicator
.
indicatorCornerRadius
=
0.0
indicator
.
indicatorColor
=
UIColor
.
brandMainColor
indicator
.
indicatorColor
=
UIColor
.
brandMainColor
segmentedView
.
indicators
=
[
indicator
]
segmentedView
.
indicators
=
[
indicator
]
}
}
...
...
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