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
1f3c55c6
Commit
1f3c55c6
authored
Sep 25, 2025
by
Alex朱枝文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增颜色
parent
46eb3e82
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
UIColor+Extension.swift
...xy/galaxy/Classes/Tools/Extention/UIColor+Extension.swift
+19
-0
No files found.
galaxy/galaxy/Classes/Tools/Extention/UIColor+Extension.swift
View file @
1f3c55c6
...
...
@@ -32,6 +32,18 @@ extension UIColor {
// 品牌主色 6
static
let
brandMainColor6
:
UIColor
=
UIColor
(
hexString
:
"#0046B4"
,
transparency
:
0.06
)
!
// 品牌新主色
static
let
brandGrayColor8
:
UIColor
=
UIColor
(
hexString
:
"#121A26"
)
!
static
let
brandGrayColor7
:
UIColor
=
UIColor
(
hexString
:
"#6A7586"
)
!
static
let
brandGrayColor6
:
UIColor
=
UIColor
(
hexString
:
"#8993A2"
)
!
static
let
brandGrayColor5
:
UIColor
=
UIColor
(
hexString
:
"#B9C1CC"
)
!
static
let
brandGrayColor4
:
UIColor
=
UIColor
(
hexString
:
"#D5DAE1"
)
!
static
let
brandGrayColor3
:
UIColor
=
UIColor
(
hexString
:
"#E9ECFO"
)
!
static
let
brandGrayColor2
:
UIColor
=
UIColor
(
hexString
:
"#F5F6F8"
)
!
static
let
brandGrayColor1
:
UIColor
=
UIColor
(
hexString
:
"#F9FAFC"
)
!
static
let
brandGrayColor0
:
UIColor
=
UIColor
(
hexString
:
"#FFFFFF"
)
!
public
static
func
brandMainColor
(
alpha
:
CGFloat
)
->
UIColor
{
return
UIColor
(
hexString
:
"#0046B4"
,
transparency
:
alpha
)
!
}
...
...
@@ -62,12 +74,19 @@ extension UIColor {
// 成功 color
static
let
successColor
:
UIColor
=
UIColor
(
hexString
:
"#49D2B1"
)
!
static
let
successColor1
:
UIColor
=
UIColor
(
hexString
:
"#FOFBF7"
)
!
static
let
successColor2
:
UIColor
=
UIColor
(
hexString
:
"#3CC694"
)
!
// 失败 color
static
let
failColor
:
UIColor
=
UIColor
(
hexString
:
"#F81D22"
)
!
// 用于错误背景色
static
let
failColor1
:
UIColor
=
UIColor
(
hexString
:
"#FFF2F2"
)
!
// 警告 color
static
let
warnColor
:
UIColor
=
UIColor
(
hexString
:
"#FF9900"
)
!
static
let
warnColor2
:
UIColor
=
UIColor
(
hexString
:
"#FF8000"
)
!
// 用于警示背景色
static
let
warnColor1
:
UIColor
=
UIColor
(
hexString
:
"#FFF5EB"
)
!
// 警告 背景色 color
static
let
warnColor8
:
UIColor
=
UIColor
(
hexString
:
"#FF9900"
,
transparency
:
0.08
)
!
...
...
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