Skip to content

Commit

Permalink
New themes + performance optimizations #13
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegWock committed Mar 9, 2023
1 parent 14b12a4 commit b066add
Show file tree
Hide file tree
Showing 15 changed files with 19 additions and 5 deletions.
Binary file modified src/assets/images/backgrounds/forest-lake.jpg
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/assets/images/backgrounds/greenery.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/backgrounds/highlands.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/backgrounds/maple.jpg
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/assets/images/backgrounds/mountains.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/assets/images/backgrounds/neon.jpg
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/backgrounds/previews/maple.jpg
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/assets/images/backgrounds/sakura.jpg
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/assets/images/backgrounds/sunflowers.jpg
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/assets/images/backgrounds/table.jpg
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/components/WhatsNew.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export const WhatsNew = () => {
<h2>1.2.0</h2>
<ul>
<li>Added new weather widget! Give it a try, it can display both current weather in selected city and weather forecast</li>
<li>Added two new themes</li>
<li>We got rid of a few internal libraries and adjusted compilation settings, so extension files now take less space. This should make loading extension slightly faster (around 10%)</li>
<li>Added 'Show animation on open' option to settings</li>
</ul>
Expand Down
2 changes: 0 additions & 2 deletions src/pages/newtab/components/NewWidgetWizard.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@
align-items: flex-start;
gap: 12px;
padding: 12px;
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border-radius: 16px;

.WidgetCard {
Expand Down
3 changes: 0 additions & 3 deletions src/pages/newtab/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ body {
height: 100vh;
top: 0;
left: 0;
// backdrop-filter: blur(50px);
backdrop-filter: blur(15px);
-webkit-backdrop-filter: blur(15px);
background-image: radial-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2) 1px, rgba(0, 0, 0, 0) 1px, rgba(0, 0, 0, 0) 100%);
background-size: 30px 30px;
}
Expand Down
18 changes: 18 additions & 0 deletions src/utils/user-data/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,24 @@ export const themes: Theme[] = [
background: fromHsl(25, 9.5, 24.7),
}
},
{
name: 'Maples',
background: 'maple.jpg',
colors: {
accent: fromHsl(9, 69, 46),
text: fromHsl(0, 0, 100),
background: fromHsl(2, 35, 17),
}
},
{
name: 'Highlands',
background: 'highlands.jpg',
colors: {
accent: fromHsl(40, 98, 47),
text: fromHsl(0, 0, 100),
background: fromHsl(31, 39, 25),
}
},
];

export const defaultTheme = themes[0].name;
Expand Down

0 comments on commit b066add

Please sign in to comment.