Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
boytacean
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container 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
João Magalhães
boytacean
Commits
33e8e59c
Verified
Commit
33e8e59c
authored
2 years ago
by
João Magalhães
Browse files
Options
Downloads
Patches
Plain Diff
feat: new palette icon
parent
d073c507
No related branches found
No related tags found
No related merge requests found
Pipeline
#1535
passed
2 years ago
Stage: build
Stage: deploy
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
examples/web/react/app.tsx
+10
-0
10 additions, 0 deletions
examples/web/react/app.tsx
examples/web/res/brightness.svg
+1
-0
1 addition, 0 deletions
examples/web/res/brightness.svg
examples/web/res/colours.svg
+1
-0
1 addition, 0 deletions
examples/web/res/colours.svg
with
12 additions
and
0 deletions
examples/web/react/app.tsx
+
10
−
0
View file @
33e8e59c
...
...
@@ -482,6 +482,9 @@ export const App: FC<AppProps> = ({
const
onThemeClick
=
()
=>
{
setBackgroundIndex
((
backgroundIndex
+
1
)
%
backgrounds
.
length
);
};
const
onPaletteClick
=
()
=>
{
console
.
info
(
"
palette
"
);
};
const
onUploadFile
=
async
(
file
:
File
)
=>
{
const
arrayBuffer
=
await
file
.
arrayBuffer
();
const
romData
=
new
Uint8Array
(
arrayBuffer
);
...
...
@@ -774,6 +777,13 @@ export const App: FC<AppProps> = ({
style
=
{
[
"
simple
"
,
"
border
"
,
"
padded
"
]
}
onClick
=
{
onThemeClick
}
/>
<
Button
text
=
{
"
Palette
"
}
image
=
{
require
(
"
../res/brightness.svg
"
)
}
imageAlt
=
"palette"
style
=
{
[
"
simple
"
,
"
border
"
,
"
padded
"
]
}
onClick
=
{
onPaletteClick
}
/>
<
Button
text
=
{
"
Load ROM
"
}
image
=
{
require
(
"
../res/upload.svg
"
)
}
...
...
This diff is collapsed.
Click to expand it.
examples/web/res/brightness.svg
0 → 100644
+
1
−
0
View file @
33e8e59c
<svg
width=
"48px"
height=
"48px"
viewBox=
"0 0 24 24"
xmlns=
"http://www.w3.org/2000/svg"
aria-labelledby=
"brightnessIconTitle"
stroke=
"#ffffff"
stroke-width=
"2"
stroke-linecap=
"square"
stroke-linejoin=
"miter"
fill=
"none"
color=
"#ffffff"
>
<title
id=
"brightnessIconTitle"
>
Brightness control
</title>
<path
d=
"M15 6L12 3L9.00001 6H6.00001V9L3 12L6.00001 15V18H8.99999L12 21L15 18H18V15L21 12L18 9V6H15Z"
/>
<path
d=
"M16 12C16 9.79086 14.2091 8 12 8V16C14.2091 16 16 14.2091 16 12Z"
/>
</svg>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
examples/web/res/colours.svg
0 → 100644
+
1
−
0
View file @
33e8e59c
<svg
role=
"img"
xmlns=
"http://www.w3.org/2000/svg"
width=
"48px"
height=
"48px"
viewBox=
"0 0 24 24"
aria-labelledby=
"coloursIconTitle"
stroke=
"#ffffff"
stroke-width=
"2"
stroke-linecap=
"square"
stroke-linejoin=
"miter"
fill=
"none"
color=
"#ffffff"
>
<title
id=
"coloursIconTitle"
>
Colours
</title>
<circle
cx=
"12"
cy=
"9"
r=
"5"
/>
<circle
cx=
"9"
cy=
"14"
r=
"5"
/>
<circle
cx=
"15"
cy=
"14"
r=
"5"
/>
</svg>
\ No newline at end of file
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