mirror of
https://github.com/0PandaDEV/Qopy.git
synced 2025-04-21 13:14:04 +02:00
changed monospace font to commitmono
This commit is contained in:
parent
15424eee84
commit
c682ebcdcc
4 changed files with 20 additions and 21 deletions
|
@ -9,25 +9,25 @@ $mutedtext: #78756F;
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: SFRoundedRegular;
|
font-family: SFRoundedRegular;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
src: url("~/assets/fonts/SFRoundedRegular.otf") format("woff2");
|
src: url("~/assets/fonts/SFRoundedRegular.otf") format("opentype");
|
||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: SFRoundedMedium;
|
font-family: SFRoundedMedium;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
src: url("~/assets/fonts/SFRoundedMedium.otf") format("woff2");
|
src: url("~/assets/fonts/SFRoundedMedium.otf") format("opentype");
|
||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: SFRoundedSemiBold;
|
font-family: SFRoundedSemiBold;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
src: url("~/assets/fonts/SFRoundedSemiBold.otf") format("woff2");
|
src: url("~/assets/fonts/SFRoundedSemiBold.otf") format("opentype");
|
||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: SFMonoRegular;
|
font-family: CommitMono;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
src: url("~/assets/fonts/SFMonoRegular.otf") format("woff2");
|
src: url("~/assets/fonts/CommitMono.woff2") format("woff2");
|
||||||
}
|
}
|
||||||
|
|
||||||
* {
|
* {
|
||||||
|
@ -149,7 +149,7 @@ body,
|
||||||
left: 284px;
|
left: 284px;
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
height: calc(100vh - 96px);
|
height: calc(100vh - 96px);
|
||||||
font-family: SFMonoRegular !important;
|
font-family: CommitMono !important;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
letter-spacing: 1;
|
letter-spacing: 1;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
|
@ -159,7 +159,7 @@ body,
|
||||||
|
|
||||||
div {
|
div {
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
font-family: SFMonoRegular !important;
|
font-family: CommitMono !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.full-image {
|
.full-image {
|
||||||
|
|
BIN
assets/fonts/CommitMono.woff2
Normal file
BIN
assets/fonts/CommitMono.woff2
Normal file
Binary file not shown.
Binary file not shown.
|
@ -1,7 +1,7 @@
|
||||||
use tauri::{
|
use tauri::{
|
||||||
Manager,
|
|
||||||
menu::{MenuBuilder, MenuItemBuilder},
|
menu::{MenuBuilder, MenuItemBuilder},
|
||||||
tray::{MouseButton, TrayIconBuilder, TrayIconEvent},
|
tray::{MouseButton, TrayIconBuilder, TrayIconEvent},
|
||||||
|
Manager,
|
||||||
};
|
};
|
||||||
|
|
||||||
pub fn setup(app: &mut tauri::App) -> Result<(), Box<dyn std::error::Error>> {
|
pub fn setup(app: &mut tauri::App) -> Result<(), Box<dyn std::error::Error>> {
|
||||||
|
@ -15,6 +15,9 @@ pub fn setup(app: &mut tauri::App) -> Result<(), Box<dyn std::error::Error>> {
|
||||||
let _tray = TrayIconBuilder::new()
|
let _tray = TrayIconBuilder::new()
|
||||||
.menu(
|
.menu(
|
||||||
&MenuBuilder::new(app)
|
&MenuBuilder::new(app)
|
||||||
|
.items(&[&MenuItemBuilder::with_id("app_name", "Qopy")
|
||||||
|
.enabled(false)
|
||||||
|
.build(app)?])
|
||||||
.items(&[&MenuItemBuilder::with_id("show", "Show/Hide").build(app)?])
|
.items(&[&MenuItemBuilder::with_id("show", "Show/Hide").build(app)?])
|
||||||
.items(&[&MenuItemBuilder::with_id("quit", "Quit").build(app)?])
|
.items(&[&MenuItemBuilder::with_id("quit", "Quit").build(app)?])
|
||||||
.build()?,
|
.build()?,
|
||||||
|
@ -34,18 +37,14 @@ pub fn setup(app: &mut tauri::App) -> Result<(), Box<dyn std::error::Error>> {
|
||||||
}
|
}
|
||||||
_ => (),
|
_ => (),
|
||||||
})
|
})
|
||||||
.on_tray_icon_event(move |_tray, event| {
|
// .on_tray_icon_event(move |_tray, event| {
|
||||||
if let TrayIconEvent::Click { button, .. } = event {
|
// if let TrayIconEvent::Click { button, .. } = event {
|
||||||
if button == MouseButton::Left {
|
// if button == MouseButton::Left {
|
||||||
let is_visible = window_clone_for_click.is_visible().unwrap();
|
// window_clone_for_click.show().unwrap();
|
||||||
if is_visible {
|
// window_clone_for_click.set_focus().unwrap();
|
||||||
window_clone_for_click.hide().unwrap();
|
// }
|
||||||
} else {
|
// }
|
||||||
window_clone_for_click.show().unwrap();
|
// })
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.icon(icon)
|
.icon(icon)
|
||||||
.build(app)?;
|
.build(app)?;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue