Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kayak UI
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Microhacks
Bevy Forks
Kayak UI
Commits
ab788222
Commit
ab788222
authored
3 years ago
by
IceSentry
Browse files
Options
Downloads
Patches
Plain Diff
remove colors
parent
05ac1ccf
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
examples/text_box.rs
+1
-1
1 addition, 1 deletion
examples/text_box.rs
kayak_core/src/color.rs
+0
-32
0 additions, 32 deletions
kayak_core/src/color.rs
with
1 addition
and
33 deletions
examples/text_box.rs
+
1
−
1
View file @
ab788222
...
...
@@ -28,7 +28,7 @@ fn TextBoxExample(context: &mut KayakContext) {
};
let
red_text_styles
=
Style
{
color
:
StyleProp
::
Value
(
Color
::
RED
),
color
:
StyleProp
::
Value
(
Color
::
new
(
1.
,
0.
,
0.
,
1.
)
),
..
input_styles
.clone
()
};
...
...
This diff is collapsed.
Click to expand it.
kayak_core/src/color.rs
+
0
−
32
View file @
ab788222
...
...
@@ -34,38 +34,6 @@ impl Color {
a
:
1.0
,
};
/// The white color.
pub
const
GRAY
:
Color
=
Color
{
r
:
0.5
,
g
:
0.5
,
b
:
0.5
,
a
:
1.0
,
};
/// The red color.
pub
const
RED
:
Color
=
Color
{
r
:
1.0
,
g
:
0.0
,
b
:
0.0
,
a
:
1.0
,
};
/// The green color.
pub
const
GREEN
:
Color
=
Color
{
r
:
0.0
,
g
:
1.0
,
b
:
0.0
,
a
:
1.0
,
};
/// The blue color.
pub
const
BLUE
:
Color
=
Color
{
r
:
0.0
,
g
:
0.0
,
b
:
1.0
,
a
:
1.0
,
};
/// A color with no opacity.
pub
const
TRANSPARENT
:
Color
=
Color
{
r
:
0.0
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment