Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Icon #1841

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified src/images/icon-128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/images/icon-16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/images/icon-19.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/images/icon-38.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/images/icon-48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions src/scripts/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,22 @@ window.TogglButton = {
ctx.closePath();
ctx.fill();
ctx.lineWidth = 2.5;
// Fill 360 arc with the same background color
ctx.beginPath();
ctx.strokeStyle = '#e57cd8';
ctx.arc(
this.naturalWidth * 0.5,
this.naturalHeight * 0.5,
this.naturalWidth * 0.5 - 1,
quart * -1,
circ - quart,
false
);
ctx.stroke();
// Then progressively add the white arc
ctx.closePath();
ctx.beginPath();
ctx.strokeStyle = '#ffffff';
ctx.arc(
this.naturalWidth * 0.5,
this.naturalHeight * 0.5,
Expand Down
4 changes: 2 additions & 2 deletions src/scripts/components/Pomodoro.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@ const Clock = styled.svg`
`;

const ActiveRing = styled.circle`
stroke: #e20505;
stroke: #e57cd8;
stroke-dasharray: 892 892;
animation-iteration-count: 1;
`;

const Stop = styled.rect`
fill: #f41d1d;
fill: #ff897a;
opacity: 0;
transition: 0.2s opacity ease-in;
cursor: pointer;
Expand Down
26 changes: 19 additions & 7 deletions src/scripts/icons/toggl-button.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/styles/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
height: 19px;
display: inline-block;
vertical-align: middle;
margin-right: 3px;
}

.toggl-button span {
Expand Down