Skip to content

Commit

Permalink
Refactor styles and configuration, update dependencies and add vibran…
Browse files Browse the repository at this point in the history
…cy effect to main window
  • Loading branch information
rEl1cx committed Mar 25, 2023
1 parent e0293d4 commit 74ee0c5
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 61 deletions.
Binary file removed public/screenshot.png
Binary file not shown.
2 changes: 1 addition & 1 deletion src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ fn main() {
&main_window,
NSVisualEffectMaterial::Sidebar,
None,
Some(8f64),
Some(16f64),
)
.expect("unable to apply vibrancy");
app.set_activation_policy(ActivationPolicy::Accessory);
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"package": {
"productName": "SensiMouse",
"version": "0.0.3"
"version": "0.0.1"
},
"tauri": {
"allowlist": {
Expand Down
2 changes: 1 addition & 1 deletion src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const AppShellScreen = styled('main', {
const MainContent = styled('div', {
width: '100%',
height: '100%',
borderRadius: '8px',
borderRadius: '16px',
overflow: 'hidden'
})

Expand Down
6 changes: 4 additions & 2 deletions src/pages/Main/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,11 @@ const Main = () => {
/>
</Input.Wrapper>
</SC.Content>
<SC.xDivider color="#7f828c" />
<SC.xDivider color="#cccccc" />
<SC.Footer>
<Text size={14}>More Settings...</Text>
<Text size={14} color="#252525">
More Settings...
</Text>
</SC.Footer>
</SC.Container>
)
Expand Down
8 changes: 4 additions & 4 deletions src/pages/Main/styles.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Divider, Slider, Switch, Text } from '@mantine/core'
import { Divider, Slider, Switch, Title } from '@mantine/core'
import type {} from '@mantine/utils'

import { styled } from '@/theme'
Expand All @@ -12,12 +12,12 @@ export const Container = styled('div', {
justifyContent: 'space-between'
})

export const Header = styled(Text, {
color: 'rgb(16, 17, 19)',
export const Header = styled(Title, {
color: 'rgb(18, 18, 18)',
fontSize: '15px',
margin: '0',
padding: '0',
fontWeight: 'normal'
fontWeight: '500'
})

export const Content = styled('div', {
Expand Down
4 changes: 2 additions & 2 deletions src/styles/global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ body,
padding: 0;
background: transparent !important;

font-family: 'SF Pro Text', 'SF Pro Icons', BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, 'Meiryo UI', Meiryo,
Arial, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol' sans-serif;
font-family: ui-sans-serif, system-ui, -apple-system, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
'Noto Color Emoji';

-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
Expand Down
24 changes: 0 additions & 24 deletions src/types/enum.ts

This file was deleted.

24 changes: 0 additions & 24 deletions src/types/helper.ts

This file was deleted.

2 changes: 0 additions & 2 deletions src/types/index.ts

This file was deleted.

0 comments on commit 74ee0c5

Please sign in to comment.