Add icons and about page
74
Cargo.lock
generated
|
|
@ -257,6 +257,12 @@ version = "0.1.7"
|
|||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "70033777eb8b5124a81a1889416543dddef2de240019b674c81285a2635a7e1e"
|
||||
|
||||
[[package]]
|
||||
name = "anyhow"
|
||||
version = "1.0.80"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "5ad32ce52e4161730f7098c077cd2ed6229b5804ccf99e5366be1ab72a98b4e1"
|
||||
|
||||
[[package]]
|
||||
name = "apply"
|
||||
version = "0.3.0"
|
||||
|
|
@ -1147,7 +1153,7 @@ dependencies = [
|
|||
[[package]]
|
||||
name = "cosmic-config"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/pop-os/libcosmic#a09e76e729895690caac6ac620c212a2e3745d32"
|
||||
source = "git+https://github.com/pop-os/libcosmic.git#a09e76e729895690caac6ac620c212a2e3745d32"
|
||||
dependencies = [
|
||||
"atomicwrites",
|
||||
"cosmic-config-derive",
|
||||
|
|
@ -1164,7 +1170,7 @@ dependencies = [
|
|||
[[package]]
|
||||
name = "cosmic-config-derive"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/pop-os/libcosmic#a09e76e729895690caac6ac620c212a2e3745d32"
|
||||
source = "git+https://github.com/pop-os/libcosmic.git#a09e76e729895690caac6ac620c212a2e3745d32"
|
||||
dependencies = [
|
||||
"quote",
|
||||
"syn 1.0.109",
|
||||
|
|
@ -1196,12 +1202,13 @@ dependencies = [
|
|||
"systemicons",
|
||||
"tokio",
|
||||
"two-face",
|
||||
"vergen",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "cosmic-files"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/pop-os/cosmic-files#8ab15027a521713850384fa87666bb9974f2666b"
|
||||
source = "git+https://github.com/pop-os/cosmic-files.git#8ab15027a521713850384fa87666bb9974f2666b"
|
||||
dependencies = [
|
||||
"chrono",
|
||||
"dirs",
|
||||
|
|
@ -1228,7 +1235,7 @@ dependencies = [
|
|||
[[package]]
|
||||
name = "cosmic-syntax-theme"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/pop-os/cosmic-syntax-theme#b1e1eb0234568911e59888f092dfc779c609b499"
|
||||
source = "git+https://github.com/pop-os/cosmic-syntax-theme.git#b1e1eb0234568911e59888f092dfc779c609b499"
|
||||
dependencies = [
|
||||
"handlebars",
|
||||
"serde",
|
||||
|
|
@ -1238,7 +1245,7 @@ dependencies = [
|
|||
[[package]]
|
||||
name = "cosmic-text"
|
||||
version = "0.11.2"
|
||||
source = "git+https://github.com/pop-os/cosmic-text#2766961af621b9235616e186046f6d14a2f5fbc0"
|
||||
source = "git+https://github.com/pop-os/cosmic-text.git#2766961af621b9235616e186046f6d14a2f5fbc0"
|
||||
dependencies = [
|
||||
"bitflags 2.4.2",
|
||||
"cosmic_undo_2",
|
||||
|
|
@ -1263,7 +1270,7 @@ dependencies = [
|
|||
[[package]]
|
||||
name = "cosmic-theme"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/pop-os/libcosmic#a09e76e729895690caac6ac620c212a2e3745d32"
|
||||
source = "git+https://github.com/pop-os/libcosmic.git#a09e76e729895690caac6ac620c212a2e3745d32"
|
||||
dependencies = [
|
||||
"almost",
|
||||
"cosmic-config",
|
||||
|
|
@ -2802,7 +2809,7 @@ dependencies = [
|
|||
[[package]]
|
||||
name = "iced"
|
||||
version = "0.12.0"
|
||||
source = "git+https://github.com/pop-os/libcosmic#a09e76e729895690caac6ac620c212a2e3745d32"
|
||||
source = "git+https://github.com/pop-os/libcosmic.git#a09e76e729895690caac6ac620c212a2e3745d32"
|
||||
dependencies = [
|
||||
"iced_accessibility",
|
||||
"iced_core",
|
||||
|
|
@ -2817,7 +2824,7 @@ dependencies = [
|
|||
[[package]]
|
||||
name = "iced_accessibility"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/pop-os/libcosmic#a09e76e729895690caac6ac620c212a2e3745d32"
|
||||
source = "git+https://github.com/pop-os/libcosmic.git#a09e76e729895690caac6ac620c212a2e3745d32"
|
||||
dependencies = [
|
||||
"accesskit",
|
||||
"accesskit_winit",
|
||||
|
|
@ -2826,7 +2833,7 @@ dependencies = [
|
|||
[[package]]
|
||||
name = "iced_core"
|
||||
version = "0.12.0"
|
||||
source = "git+https://github.com/pop-os/libcosmic#a09e76e729895690caac6ac620c212a2e3745d32"
|
||||
source = "git+https://github.com/pop-os/libcosmic.git#a09e76e729895690caac6ac620c212a2e3745d32"
|
||||
dependencies = [
|
||||
"bitflags 1.3.2",
|
||||
"log",
|
||||
|
|
@ -2843,7 +2850,7 @@ dependencies = [
|
|||
[[package]]
|
||||
name = "iced_futures"
|
||||
version = "0.12.0"
|
||||
source = "git+https://github.com/pop-os/libcosmic#a09e76e729895690caac6ac620c212a2e3745d32"
|
||||
source = "git+https://github.com/pop-os/libcosmic.git#a09e76e729895690caac6ac620c212a2e3745d32"
|
||||
dependencies = [
|
||||
"futures",
|
||||
"iced_core",
|
||||
|
|
@ -2856,7 +2863,7 @@ dependencies = [
|
|||
[[package]]
|
||||
name = "iced_graphics"
|
||||
version = "0.12.0"
|
||||
source = "git+https://github.com/pop-os/libcosmic#a09e76e729895690caac6ac620c212a2e3745d32"
|
||||
source = "git+https://github.com/pop-os/libcosmic.git#a09e76e729895690caac6ac620c212a2e3745d32"
|
||||
dependencies = [
|
||||
"bitflags 1.3.2",
|
||||
"bytemuck",
|
||||
|
|
@ -2880,7 +2887,7 @@ dependencies = [
|
|||
[[package]]
|
||||
name = "iced_renderer"
|
||||
version = "0.12.0"
|
||||
source = "git+https://github.com/pop-os/libcosmic#a09e76e729895690caac6ac620c212a2e3745d32"
|
||||
source = "git+https://github.com/pop-os/libcosmic.git#a09e76e729895690caac6ac620c212a2e3745d32"
|
||||
dependencies = [
|
||||
"iced_graphics",
|
||||
"iced_tiny_skia",
|
||||
|
|
@ -2892,7 +2899,7 @@ dependencies = [
|
|||
[[package]]
|
||||
name = "iced_runtime"
|
||||
version = "0.12.0"
|
||||
source = "git+https://github.com/pop-os/libcosmic#a09e76e729895690caac6ac620c212a2e3745d32"
|
||||
source = "git+https://github.com/pop-os/libcosmic.git#a09e76e729895690caac6ac620c212a2e3745d32"
|
||||
dependencies = [
|
||||
"iced_core",
|
||||
"iced_futures",
|
||||
|
|
@ -2902,7 +2909,7 @@ dependencies = [
|
|||
[[package]]
|
||||
name = "iced_style"
|
||||
version = "0.12.0"
|
||||
source = "git+https://github.com/pop-os/libcosmic#a09e76e729895690caac6ac620c212a2e3745d32"
|
||||
source = "git+https://github.com/pop-os/libcosmic.git#a09e76e729895690caac6ac620c212a2e3745d32"
|
||||
dependencies = [
|
||||
"iced_core",
|
||||
"once_cell",
|
||||
|
|
@ -2912,7 +2919,7 @@ dependencies = [
|
|||
[[package]]
|
||||
name = "iced_tiny_skia"
|
||||
version = "0.12.0"
|
||||
source = "git+https://github.com/pop-os/libcosmic#a09e76e729895690caac6ac620c212a2e3745d32"
|
||||
source = "git+https://github.com/pop-os/libcosmic.git#a09e76e729895690caac6ac620c212a2e3745d32"
|
||||
dependencies = [
|
||||
"bytemuck",
|
||||
"cosmic-text",
|
||||
|
|
@ -2929,7 +2936,7 @@ dependencies = [
|
|||
[[package]]
|
||||
name = "iced_wgpu"
|
||||
version = "0.12.0"
|
||||
source = "git+https://github.com/pop-os/libcosmic#a09e76e729895690caac6ac620c212a2e3745d32"
|
||||
source = "git+https://github.com/pop-os/libcosmic.git#a09e76e729895690caac6ac620c212a2e3745d32"
|
||||
dependencies = [
|
||||
"bitflags 1.3.2",
|
||||
"bytemuck",
|
||||
|
|
@ -2948,7 +2955,7 @@ dependencies = [
|
|||
[[package]]
|
||||
name = "iced_widget"
|
||||
version = "0.12.0"
|
||||
source = "git+https://github.com/pop-os/libcosmic#a09e76e729895690caac6ac620c212a2e3745d32"
|
||||
source = "git+https://github.com/pop-os/libcosmic.git#a09e76e729895690caac6ac620c212a2e3745d32"
|
||||
dependencies = [
|
||||
"iced_renderer",
|
||||
"iced_runtime",
|
||||
|
|
@ -2962,7 +2969,7 @@ dependencies = [
|
|||
[[package]]
|
||||
name = "iced_winit"
|
||||
version = "0.12.0"
|
||||
source = "git+https://github.com/pop-os/libcosmic#a09e76e729895690caac6ac620c212a2e3745d32"
|
||||
source = "git+https://github.com/pop-os/libcosmic.git#a09e76e729895690caac6ac620c212a2e3745d32"
|
||||
dependencies = [
|
||||
"iced_graphics",
|
||||
"iced_runtime",
|
||||
|
|
@ -3314,7 +3321,7 @@ checksum = "9c198f91728a82281a64e1f4f9eeb25d82cb32a5de251c6bd1b5154d63a8e7bd"
|
|||
[[package]]
|
||||
name = "libcosmic"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/pop-os/libcosmic#a09e76e729895690caac6ac620c212a2e3745d32"
|
||||
source = "git+https://github.com/pop-os/libcosmic.git#a09e76e729895690caac6ac620c212a2e3745d32"
|
||||
dependencies = [
|
||||
"apply",
|
||||
"ashpd",
|
||||
|
|
@ -4042,6 +4049,15 @@ dependencies = [
|
|||
"syn 2.0.51",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "num_threads"
|
||||
version = "0.1.7"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "5c7398b9c8b70908f6371f47ed36737907c87c52af34c268fed0bf0ceb92ead9"
|
||||
dependencies = [
|
||||
"libc",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "objc"
|
||||
version = "0.2.7"
|
||||
|
|
@ -5006,6 +5022,12 @@ dependencies = [
|
|||
"owned_ttf_parser 0.15.2",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "rustversion"
|
||||
version = "1.0.14"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "7ffc183a10b4478d04cbbbfc96d0873219d962dd5accaff2ffbd4ceb7df837f4"
|
||||
|
||||
[[package]]
|
||||
name = "rustybuzz"
|
||||
version = "0.12.1"
|
||||
|
|
@ -5587,7 +5609,9 @@ checksum = "c8248b6521bb14bc45b4067159b9b6ad792e2d6d754d6c41fb50e29fefe38749"
|
|||
dependencies = [
|
||||
"deranged",
|
||||
"itoa",
|
||||
"libc",
|
||||
"num-conv",
|
||||
"num_threads",
|
||||
"powerfmt",
|
||||
"serde",
|
||||
"time-core",
|
||||
|
|
@ -6048,6 +6072,18 @@ version = "0.2.1"
|
|||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "711b9620af191e0cdc7468a8d14e709c3dcdb115b36f838e601583af800a370a"
|
||||
|
||||
[[package]]
|
||||
name = "vergen"
|
||||
version = "8.3.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "e27d6bdd219887a9eadd19e1c34f32e47fa332301184935c6d9bca26f3cca525"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"cfg-if 1.0.0",
|
||||
"rustversion",
|
||||
"time",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "version-compare"
|
||||
version = "0.1.1"
|
||||
|
|
|
|||
11
Cargo.toml
|
|
@ -6,6 +6,9 @@ edition = "2021"
|
|||
license = "GPL-3.0-only"
|
||||
rust-version = "1.71"
|
||||
|
||||
[build-dependencies]
|
||||
vergen = { version = "8", features = ["git", "gitcl"] }
|
||||
|
||||
[dependencies]
|
||||
dirs = "5"
|
||||
env_logger = "0.10.0"
|
||||
|
|
@ -26,18 +29,18 @@ i18n-embed-fl = "0.7"
|
|||
rust-embed = "8"
|
||||
|
||||
[dependencies.cosmic-files]
|
||||
git = "https://github.com/pop-os/cosmic-files"
|
||||
git = "https://github.com/pop-os/cosmic-files.git"
|
||||
default-features = false
|
||||
|
||||
[dependencies.cosmic-syntax-theme]
|
||||
git = "https://github.com/pop-os/cosmic-syntax-theme"
|
||||
git = "https://github.com/pop-os/cosmic-syntax-theme.git"
|
||||
|
||||
[dependencies.cosmic-text]
|
||||
git = "https://github.com/pop-os/cosmic-text"
|
||||
git = "https://github.com/pop-os/cosmic-text.git"
|
||||
features = ["syntect", "vi"]
|
||||
|
||||
[dependencies.libcosmic]
|
||||
git = "https://github.com/pop-os/libcosmic"
|
||||
git = "https://github.com/pop-os/libcosmic.git"
|
||||
default-features = false
|
||||
features = ["multi-window", "tokio", "winit"]
|
||||
|
||||
|
|
|
|||
11
build.rs
|
|
@ -1,4 +1,11 @@
|
|||
fn main() {
|
||||
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
// Rebuild if i18n files change
|
||||
println!("cargo:rerun-if-changed=i18n")
|
||||
println!("cargo:rerun-if-changed=i18n");
|
||||
|
||||
vergen::EmitBuilder::builder()
|
||||
.fail_on_error()
|
||||
.git_commit_date()
|
||||
.git_sha(true)
|
||||
.emit()?;
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
|||
1
debian/control
vendored
|
|
@ -4,6 +4,7 @@ Priority: optional
|
|||
Maintainer: Jeremy Soller <jeremy@system76.com>
|
||||
Build-Depends:
|
||||
debhelper-compat (=13),
|
||||
git,
|
||||
just (>= 1.13.0),
|
||||
pkg-config,
|
||||
rust-all,
|
||||
|
|
|
|||
|
|
@ -68,4 +68,4 @@ highlight-current-line = Zvýraznění aktuálního řádku
|
|||
syntax-highlighting = Zvýraznění syntaxe...
|
||||
menu-settings = Nastavení...
|
||||
menu-keyboard-shortcuts = Klávesové zkratky...
|
||||
about-cosmic-text-editor = O textovém editoru COSMIC
|
||||
menu-about = O textovém editoru COSMIC
|
||||
|
|
|
|||
|
|
@ -68,4 +68,4 @@ highlight-current-line = Aktuelle Zeile hervorheben
|
|||
syntax-highlighting = Syntax Hervorhebung...
|
||||
menu-settings = Einstellungen...
|
||||
menu-keyboard-shortcuts = Tastenkombinationen...
|
||||
about-cosmic-text-editor = Über COSMIC Text Editor
|
||||
menu-about = Über COSMIC Text Editor
|
||||
|
|
|
|||
|
|
@ -68,4 +68,4 @@ highlight-current-line = Υπογράμμιση τρέχουσας γραμμή
|
|||
syntax-highlighting = Υπογράμμιση συντακτικού...
|
||||
menu-settings = Ρυθμίσεις...
|
||||
menu-keyboard-shortcuts = Συντομεύσεις πλήκτρων...
|
||||
about-cosmic-text-editor = Σχετικά με τον επεξεργαστή κειμένου COSMIC
|
||||
menu-about = Σχετικά με τον επεξεργαστή κειμένου COSMIC
|
||||
|
|
|
|||
|
|
@ -1,9 +1,14 @@
|
|||
cosmic-text-editor = COSMIC Text Editor
|
||||
new-document = New document
|
||||
open-project = Open project
|
||||
todo = TODO
|
||||
|
||||
# Context Pages
|
||||
|
||||
## About
|
||||
about = About
|
||||
git-description = Git commit {$hash} on {$date}
|
||||
|
||||
## Document statistics
|
||||
document-statistics = Document statistics
|
||||
word-count = Word count
|
||||
|
|
@ -102,4 +107,4 @@ highlight-current-line = Highlight current line
|
|||
syntax-highlighting = Syntax highlighting...
|
||||
menu-settings = Settings...
|
||||
menu-keyboard-shortcuts = Keyboard shortcuts...
|
||||
about-cosmic-text-editor = About COSMIC Text Editor
|
||||
menu-about = About COSMIC Text Editor...
|
||||
|
|
|
|||
|
|
@ -87,4 +87,4 @@ highlight-current-line = Resaltar línea actual
|
|||
syntax-highlighting = Resaltado de sintaxis...
|
||||
menu-settings = Ajustes...
|
||||
menu-keyboard-shortcuts = Atajos de teclado...
|
||||
about-cosmic-text-editor = Sobre el Editor de Texto COSMIC
|
||||
menu-about = Sobre el Editor de Texto COSMIC
|
||||
|
|
|
|||
|
|
@ -88,4 +88,4 @@ highlight-current-line = Korosta nykyinen rivi
|
|||
syntax-highlighting = Syntaksi korostus...
|
||||
menu-settings = Asetukset...
|
||||
menu-keyboard-shortcuts = Pikanäppäimet...
|
||||
about-cosmic-text-editor = Tietoa COSMIC-tekstieditorista
|
||||
menu-about = Tietoa COSMIC-tekstieditorista
|
||||
|
|
|
|||
|
|
@ -68,4 +68,4 @@ highlight-current-line = Surbriller la ligne actuelle
|
|||
syntax-highlighting = Surbrillance de la syntaxe...
|
||||
menu-settings = Paramètre...
|
||||
menu-keyboard-shortcuts = Raccourci clavier...
|
||||
about-cosmic-text-editor = À propos de COSMIC Text Editor
|
||||
menu-about = À propos de COSMIC Text Editor
|
||||
|
|
|
|||
|
|
@ -68,4 +68,4 @@ highlight-current-line = הדגשת שורה נוכחית
|
|||
syntax-highlighting = הדגשה תחבירית...
|
||||
menu-settings = הגדרות...
|
||||
menu-keyboard-shortcuts = קיצורי מקשים...
|
||||
about-cosmic-text-editor = אודות עורך טקסט COSMIC
|
||||
menu-about = אודות עורך טקסט COSMIC
|
||||
|
|
|
|||
|
|
@ -88,4 +88,4 @@ highlight-current-line = Aktuális sor kiemelése
|
|||
syntax-highlighting = Szintaxis kiemelés...
|
||||
menu-settings = Beállítások...
|
||||
menu-keyboard-shortcuts = Billentyűparancsok...
|
||||
about-cosmic-text-editor = Információ a COSMIC Szövegszerkesztőről
|
||||
menu-about = Információ a COSMIC Szövegszerkesztőről
|
||||
|
|
|
|||
|
|
@ -88,4 +88,4 @@ highlight-current-line = Evidenzia linea corrente
|
|||
syntax-highlighting = Evidenziazione sintassi...
|
||||
menu-settings = Impostazioni...
|
||||
menu-keyboard-shortcuts = Scorciatoie da tastiera...
|
||||
about-cosmic-text-editor = Informazioni su COSMIC Text Editor
|
||||
menu-about = Informazioni su COSMIC Text Editor
|
||||
|
|
|
|||
|
|
@ -90,4 +90,4 @@ highlight-current-line = 現在の行をハイライト
|
|||
syntax-highlighting = シンタックスハイライト...
|
||||
menu-settings = 設定...
|
||||
menu-keyboard-shortcuts = キーボードショートカット...
|
||||
about-cosmic-text-editor = COSMICテキストデータについて...
|
||||
menu-about = COSMICテキストデータについて...
|
||||
|
|
|
|||
|
|
@ -68,4 +68,4 @@ highlight-current-line = 현재 줄 강조 표시
|
|||
syntax-highlighting = 구문 강조...
|
||||
menu-settings = 설정...
|
||||
menu-keyboard-shortcuts = 단축키...
|
||||
about-cosmic-text-editor = COSMIC Text Editor 대해
|
||||
menu-about = COSMIC Text Editor 대해
|
||||
|
|
|
|||
|
|
@ -68,4 +68,4 @@ highlight-current-line = Paryškinti dabartinę eilutę
|
|||
syntax-highlighting = Sintaksės tikrinimas...
|
||||
menu-settings = Nustatymai...
|
||||
menu-keyboard-shortcuts = Spartieji klavišai...
|
||||
about-cosmic-text-editor = Apie COSMIC Text Editor
|
||||
menu-about = Apie COSMIC Text Editor
|
||||
|
|
|
|||
|
|
@ -68,4 +68,4 @@ highlight-current-line = Markeer huidige regel
|
|||
syntax-highlighting = Syntax markering...
|
||||
menu-settings = Instellingen...
|
||||
menu-keyboard-shortcuts = Toetsenbord snelkoppelingen...
|
||||
about-cosmic-text-editor = Over COSMIC Tekstbewerker
|
||||
menu-about = Over COSMIC Tekstbewerker
|
||||
|
|
|
|||
|
|
@ -95,4 +95,4 @@ highlight-current-line = Podświetl aktualną linię
|
|||
syntax-highlighting = Podświetlanie składni...
|
||||
menu-settings = Ustawienia...
|
||||
menu-keyboard-shortcuts = Skróty klawiszowe...
|
||||
about-cosmic-text-editor = O Edytorze Tekstu COSMIC
|
||||
menu-about = O Edytorze Tekstu COSMIC
|
||||
|
|
|
|||
|
|
@ -68,4 +68,4 @@ highlight-current-line = Destacar linha atual
|
|||
syntax-highlighting = Destaque de sintaxe...
|
||||
menu-settings = Configurações...
|
||||
menu-keyboard-shortcuts = Atalhos do teclado...
|
||||
about-cosmic-text-editor = Sobre o Editor de Texto COSMIC
|
||||
menu-about = Sobre o Editor de Texto COSMIC
|
||||
|
|
|
|||
|
|
@ -95,4 +95,4 @@ highlight-current-line = Подсветка текущей строки
|
|||
syntax-highlighting = Подсветка синтаксиса...
|
||||
menu-settings = Параметры...
|
||||
menu-keyboard-shortcuts = Сочетания клавиш...
|
||||
about-cosmic-text-editor = О Текстовом редакторе COSMIC
|
||||
menu-about = О Текстовом редакторе COSMIC
|
||||
|
|
|
|||
|
|
@ -95,4 +95,4 @@ highlight-current-line = Zvýrazniť aktuálny riadok
|
|||
syntax-highlighting = Zvýraznenie syntaxe...
|
||||
menu-settings = Nastavenia...
|
||||
menu-keyboard-shortcuts = Klávesové skratky...
|
||||
about-cosmic-text-editor = O textovom editore COSMIC
|
||||
menu-about = O textovom editore COSMIC
|
||||
|
|
|
|||
|
|
@ -95,4 +95,4 @@ highlight-current-line = Истакни тренутни ред
|
|||
syntax-highlighting = Истицање синтаксе...
|
||||
menu-settings = Подешавања...
|
||||
menu-keyboard-shortcuts = Пречице на тастатури...
|
||||
about-cosmic-text-editor = О COSMIC уређивачу текста
|
||||
menu-about = О COSMIC уређивачу текста
|
||||
|
|
|
|||
|
|
@ -95,4 +95,4 @@ highlight-current-line = Istakni trenutni red
|
|||
syntax-highlighting = Isticanje sintakse...
|
||||
menu-settings = Podešavanja...
|
||||
menu-keyboard-shortcuts = Prečice na tastaturi...
|
||||
about-cosmic-text-editor = O COSMIC uređivaču teksta
|
||||
menu-about = O COSMIC uređivaču teksta
|
||||
|
|
|
|||
|
|
@ -93,4 +93,4 @@ highlight-current-line = Markera aktuell rad
|
|||
syntax-highlighting = Syntax markering...
|
||||
menu-settings = Inställningar...
|
||||
menu-keyboard-shortcuts = Tangentbordsgenvägar...
|
||||
about-cosmic-text-editor = Om COSMIC Textredigerare
|
||||
menu-about = Om COSMIC Textredigerare
|
||||
|
|
|
|||
|
|
@ -95,4 +95,4 @@ highlight-current-line = Mevcut satırı vurgula
|
|||
syntax-highlighting = Sentaks vurgulama...
|
||||
menu-settings = Ayarlar...
|
||||
menu-keyboard-shortcuts = Klavye kısayolları...
|
||||
about-cosmic-text-editor = COSMIC Metin Düzenleyicisi Hakkında
|
||||
menu-about = COSMIC Metin Düzenleyicisi Hakkında
|
||||
|
|
|
|||
|
|
@ -95,4 +95,4 @@ highlight-current-line = Підсвічувати поточний рядок
|
|||
syntax-highlighting = Підсвічування синтаксису...
|
||||
menu-settings = Налаштування...
|
||||
menu-keyboard-shortcuts = Гарячі клавіші...
|
||||
about-cosmic-text-editor = Про текстовий редактор COSMIC
|
||||
menu-about = Про текстовий редактор COSMIC
|
||||
|
|
|
|||
15
justfile
|
|
@ -15,6 +15,9 @@ desktop := APPID + '.desktop'
|
|||
desktop-src := 'res' / desktop
|
||||
desktop-dst := clean(rootdir / prefix) / 'share' / 'applications' / desktop
|
||||
|
||||
icons-src := 'res' / 'icons' / 'hicolor'
|
||||
icons-dst := clean(rootdir / prefix) / 'share' / 'icons' / 'hicolor'
|
||||
|
||||
# Default recipe which runs `just build-release`
|
||||
default: build-release
|
||||
|
||||
|
|
@ -22,10 +25,13 @@ default: build-release
|
|||
clean:
|
||||
cargo clean
|
||||
|
||||
# `cargo clean` and removes vendored dependencies
|
||||
clean-dist: clean
|
||||
# Removes vendored dependencies
|
||||
clean-vendor:
|
||||
rm -rf .cargo vendor vendor.tar
|
||||
|
||||
# `cargo clean` and removes vendored dependencies
|
||||
clean-dist: clean clean-vendor
|
||||
|
||||
# Compiles with debug profile
|
||||
build-debug *args:
|
||||
cargo build {{args}}
|
||||
|
|
@ -54,7 +60,10 @@ run *args:
|
|||
# Installs files
|
||||
install:
|
||||
install -Dm0755 {{bin-src}} {{bin-dst}}
|
||||
install -Dm0755 {{desktop-src}} {{desktop-dst}}
|
||||
install -Dm0644 {{desktop-src}} {{desktop-dst}}
|
||||
for size in `ls {{icons-src}}`; do \
|
||||
install -Dm0644 "{{icons-src}}/$size/apps/{{APPID}}.svg" "{{icons-dst}}/$size/apps/{{APPID}}.svg"; \
|
||||
done
|
||||
|
||||
# Uninstalls installed files
|
||||
uninstall:
|
||||
|
|
|
|||
|
|
@ -6,6 +6,6 @@ Terminal=false
|
|||
Type=Application
|
||||
StartupNotify=true
|
||||
MimeType=text/plain;
|
||||
Icon=accessories-text-editor
|
||||
Icon=com.system76.CosmicEdit
|
||||
Categories=COSMIC;Utility;TextEditor;
|
||||
Keywords=Text;Editor;
|
||||
|
|
|
|||
23
res/icons/hicolor/128x128/apps/com.system76.CosmicEdit.svg
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
<svg width="128" height="128" viewBox="0 0 128 128" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M12 20C12 15.5817 15.5817 12 20 12H108C112.418 12 116 15.5817 116 20V108C116 112.418 112.418 116 108 116H20C15.5817 116 12 112.418 12 108V20Z" fill="url(#paint0_linear_1928_409)"/>
|
||||
<path d="M20 58C20 56.8954 20.8954 56 22 56H106C107.105 56 108 56.8954 108 58C108 59.1046 107.105 60 106 60H22C20.8954 60 20 59.1046 20 58Z" fill="#485F84"/>
|
||||
<path d="M20 24C20 21.7909 21.7909 20 24 20H104C106.209 20 108 21.7909 108 24V36C108 38.2091 106.209 40 104 40H24C21.7909 40 20 38.2091 20 36V24Z" fill="#485F84"/>
|
||||
<path d="M20 47C20 45.3431 21.3431 44 23 44H105C106.657 44 108 45.3431 108 47V49C108 50.6569 106.657 52 105 52H23C21.3431 52 20 50.6569 20 49V47Z" fill="#485F84"/>
|
||||
<path d="M20 66C20 64.8954 20.8954 64 22 64H50C51.1046 64 52 64.8954 52 66C52 67.1046 51.1046 68 50 68H22C20.8954 68 20 67.1046 20 66Z" fill="#485F84"/>
|
||||
<path d="M20 74C20 72.8954 20.8954 72 22 72H42C43.1046 72 44 72.8954 44 74C44 75.1046 43.1046 76 42 76H22C20.8954 76 20 75.1046 20 74Z" fill="#485F84"/>
|
||||
<path d="M37.0074 106.144L51.6241 112.652L39.7206 123.407C39.7206 123.407 38.7215 124.421 37.808 124.015C36.8944 123.608 36.98 122.186 36.98 122.186L37.0074 106.144Z" fill="#48B9C7"/>
|
||||
<path d="M81.1388 7.02484C81.1388 7.02484 83.3759 2.00034 90.6842 5.25423C97.9926 8.50812 95.7556 13.5326 95.7556 13.5326L51.6246 112.652L39.7212 123.407C39.7212 123.407 38.7221 124.422 37.8085 124.015C36.895 123.609 36.9805 122.187 36.9805 122.187L37.008 106.145L81.1388 7.02484Z" fill="#69D6E4"/>
|
||||
<path d="M69.2739 61.947C82.3912 32.4851 90.6841 5.25391 90.6841 5.25391C97.9925 8.5078 95.7554 13.5323 95.7554 13.5323L51.6245 112.652L39.7211 123.407C39.7211 123.407 38.722 124.422 37.8084 124.015C36.8949 123.608 36.9804 122.187 36.9804 122.187C36.9804 122.187 47.2085 111.507 69.2739 61.947Z" fill="url(#paint1_linear_1928_409)"/>
|
||||
<path d="M84.5893 9.10842C85.4878 7.09027 87.8522 6.18265 89.8704 7.08119C91.8885 7.97973 92.7962 10.3442 91.8976 12.3623L51.224 103.717C50.3254 105.735 47.961 106.643 45.9428 105.744C43.9247 104.846 43.0171 102.481 43.9156 100.463L84.5893 9.10842Z" fill="#48B9C7"/>
|
||||
<path d="M86.2632 11.4952C86.6002 10.7384 87.4869 10.3981 88.2437 10.735C89.0005 11.072 89.3408 11.9587 89.0039 12.7155L85.3432 20.9374C85.0063 21.6942 84.1196 22.0345 83.3628 21.6976C82.606 21.3606 82.2657 20.474 82.6026 19.7172L86.2632 11.4952Z" fill="white"/>
|
||||
<defs>
|
||||
<linearGradient id="paint0_linear_1928_409" x1="12" y1="116" x2="116" y2="12" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#9E9E9E"/>
|
||||
<stop offset="1" stop-color="#BEBEBE"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="paint1_linear_1928_409" x1="93.6533" y1="6.57602" x2="40.7775" y2="125.337" gradientUnits="userSpaceOnUse">
|
||||
<stop offset="0.619792" stop-color="#229FAD"/>
|
||||
<stop offset="1" stop-color="#48B9C7"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.8 KiB |
22
res/icons/hicolor/16x16/apps/com.system76.CosmicEdit.svg
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M2 3.53646C2 2.66667 2.66667 2 3.46615 2H12.4479C13.3776 2 14 2.66667 14 3.50781V12.513C14 13.3333 13.3333 14 12.487 14H3.50521C2.66667 14 2 13.3333 2 12.5391V3.53646Z" fill="url(#paint0_linear_1928_404)"/>
|
||||
<path d="M3 6.5C3 6.22386 3.22386 6 3.5 6H12.5C12.7761 6 13 6.22386 13 6.5C13 6.77614 12.7761 7 12.5 7H3.5C3.22386 7 3 6.77614 3 6.5Z" fill="#485F84"/>
|
||||
<path d="M3 8.5C3 8.22386 3.22386 8 3.5 8H5.5C5.77614 8 6 8.22386 6 8.5C6 8.77614 5.77614 9 5.5 9H3.5C3.22386 9 3 8.77614 3 8.5Z" fill="#485F84"/>
|
||||
<path d="M3 10.5C3 10.2239 3.22386 10 3.5 10H4.5C4.77614 10 5 10.2239 5 10.5C5 10.7761 4.77614 11 4.5 11H3.5C3.22386 11 3 10.7761 3 10.5Z" fill="#485F84"/>
|
||||
<path d="M3 3.5C3 3.22386 3.22386 3 3.5 3H12.5C12.7761 3 13 3.22386 13 3.5V4.5C13 4.77614 12.7761 5 12.5 5H3.5C3.22386 5 3 4.77614 3 4.5V3.5Z" fill="#485F84"/>
|
||||
<path d="M5.00347 12.8926L6.70688 13.651L5.31967 14.9043C5.31967 14.9043 5.20324 15.0226 5.09677 14.9752C4.99031 14.9278 5.00028 14.7621 5.00028 14.7621L5.00347 12.8926Z" fill="#48B9C7"/>
|
||||
<path d="M10.1501 1.33434C10.1501 1.33434 10.411 0.748427 11.2632 1.12787C12.1154 1.5073 11.8546 2.09321 11.8546 2.09321L6.70842 13.6516L5.32035 14.9058C5.32035 14.9058 5.20385 15.0241 5.09732 14.9767C4.99079 14.9292 5.00077 14.7635 5.00077 14.7635L5.00397 12.8927L10.1501 1.33434Z" fill="#69D6E4"/>
|
||||
<path d="M8.76653 7.73894C10.2961 4.30338 11.2632 1.12793 11.2632 1.12793C12.1154 1.50737 11.8546 2.09328 11.8546 2.09328L6.70842 13.6517L5.32035 14.9058C5.32035 14.9058 5.20385 15.0241 5.09732 14.9767C4.99079 14.9293 5.00077 14.7635 5.00077 14.7635C5.00077 14.7635 6.19346 13.5181 8.76653 7.73894Z" fill="url(#paint1_linear_1928_404)"/>
|
||||
<path d="M10.552 1.57664C10.6568 1.34131 10.9325 1.23547 11.1678 1.34025C11.4032 1.44503 11.509 1.72074 11.4042 1.95608L6.66126 12.609C6.55648 12.8443 6.28076 12.9502 6.04542 12.8454C5.81009 12.7406 5.70425 12.4649 5.80903 12.2295L10.552 1.57664Z" fill="#48B9C7"/>
|
||||
<path d="M10.7475 1.8557C10.7867 1.76751 10.8901 1.72784 10.9783 1.76711C11.0664 1.80638 11.1061 1.90971 11.0668 1.9979L10.6402 2.95607C10.601 3.04427 10.4976 3.08393 10.4094 3.04467C10.3212 3.0054 10.2816 2.90207 10.3209 2.81387L10.7475 1.8557Z" fill="white"/>
|
||||
<defs>
|
||||
<linearGradient id="paint0_linear_1928_404" x1="2" y1="14" x2="14" y2="2" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#9E9E9E"/>
|
||||
<stop offset="1" stop-color="#BEBEBE"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="paint1_linear_1928_404" x1="11.6094" y1="1.2821" x2="5.44355" y2="15.1309" gradientUnits="userSpaceOnUse">
|
||||
<stop offset="0.619792" stop-color="#229FAD"/>
|
||||
<stop offset="1" stop-color="#48B9C7"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.7 KiB |
23
res/icons/hicolor/24x24/apps/com.system76.CosmicEdit.svg
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M3 5.30469C3 4 4 3 5.19922 3H18.6719C20.0664 3 21 4 21 5.26172V18.7695C21 20 20 21 18.7305 21H5.25781C4 21 3 20 3 18.8086V5.30469Z" fill="url(#paint0_linear_1928_405)"/>
|
||||
<path d="M5 5.6C5 5.26863 5.28491 5 5.63636 5H18.3636C18.7151 5 19 5.26863 19 5.6V7.4C19 7.73137 18.7151 8 18.3636 8H5.63636C5.28491 8 5 7.73137 5 7.4V5.6Z" fill="#485F84"/>
|
||||
<path d="M5 14.5C5 14.2239 5.22386 14 5.5 14H7.5C7.77614 14 8 14.2239 8 14.5C8 14.7761 7.77614 15 7.5 15H5.5C5.22386 15 5 14.7761 5 14.5Z" fill="#485F84"/>
|
||||
<path d="M5 12.5C5 12.2239 5.22386 12 5.5 12H18.5C18.7761 12 19 12.2239 19 12.5C19 12.7761 18.7761 13 18.5 13H5.5C5.22386 13 5 12.7761 5 12.5Z" fill="#485F84"/>
|
||||
<path d="M5 9.5C5 9.22386 5.22386 9 5.5 9H18.5C18.7761 9 19 9.22386 19 9.5V10.5C19 10.7761 18.7761 11 18.5 11H5.5C5.22386 11 5 10.7761 5 10.5V9.5Z" fill="#485F84"/>
|
||||
<path d="M5 16.5C5 16.2239 5.22386 16 5.5 16H6.5C6.77614 16 7 16.2239 7 16.5C7 16.7761 6.77614 17 6.5 17H5.5C5.22386 17 5 16.7761 5 16.5Z" fill="#485F84"/>
|
||||
<path d="M7.00497 19.0015L9.44141 20.0862L7.45723 21.8789C7.45723 21.8789 7.2907 22.0481 7.13842 21.9803C6.98614 21.9125 7.0004 21.6756 7.0004 21.6756L7.00497 19.0015Z" fill="#48B9C7"/>
|
||||
<path d="M14.3616 2.4784C14.3616 2.4784 14.7344 1.64088 15.9527 2.18326C17.1709 2.72565 16.798 3.56318 16.798 3.56318L9.44189 20.0853L7.45772 21.878C7.45772 21.878 7.29118 22.0471 7.13891 21.9793C6.98663 21.9115 7.00089 21.6746 7.00089 21.6746L7.00546 19.0005L14.3616 2.4784Z" fill="#69D6E4"/>
|
||||
<path d="M12.3838 11.6341C14.5703 6.72321 15.9527 2.18408 15.9527 2.18408C17.1709 2.72647 16.798 3.56399 16.798 3.56399L9.44189 20.0861L7.45772 21.8788C7.45772 21.8788 7.29118 22.0479 7.13891 21.9802C6.98663 21.9124 7.00089 21.6754 7.00089 21.6754C7.00089 21.6754 8.70578 19.8952 12.3838 11.6341Z" fill="url(#paint1_linear_1928_405)"/>
|
||||
<path d="M14.9363 2.8259C15.0861 2.4895 15.4802 2.33821 15.8166 2.48799C16.153 2.63776 16.3043 3.03189 16.1545 3.36829L9.37471 18.596C9.22493 18.9324 8.83081 19.0837 8.4944 18.9339C8.158 18.7842 8.00671 18.39 8.15649 18.0536L14.9363 2.8259Z" fill="#48B9C7"/>
|
||||
<path d="M15.2154 3.22408C15.2716 3.09793 15.4194 3.0412 15.5455 3.09736C15.6717 3.15353 15.7284 3.30132 15.6722 3.42748L15.0621 4.79797C15.0059 4.92412 14.8581 4.98086 14.7319 4.92469C14.6058 4.86852 14.5491 4.72073 14.6052 4.59458L15.2154 3.22408Z" fill="white"/>
|
||||
<defs>
|
||||
<linearGradient id="paint0_linear_1928_405" x1="3" y1="21" x2="21" y2="3" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#9E9E9E"/>
|
||||
<stop offset="1" stop-color="#BEBEBE"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="paint1_linear_1928_405" x1="16.4476" y1="2.40446" x2="7.63382" y2="22.2005" gradientUnits="userSpaceOnUse">
|
||||
<stop offset="0.619792" stop-color="#229FAD"/>
|
||||
<stop offset="1" stop-color="#48B9C7"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.8 KiB |
23
res/icons/hicolor/256x256/apps/com.system76.CosmicEdit.svg
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
<svg width="256" height="256" viewBox="0 0 256 256" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M24 40C24 31.1634 31.1634 24 40 24H216C224.837 24 232 31.1634 232 40V216C232 224.837 224.837 232 216 232H40C31.1634 232 24 224.837 24 216V40Z" fill="url(#paint0_linear_1928_410)"/>
|
||||
<path d="M40 116C40 113.791 41.7909 112 44 112H212C214.209 112 216 113.791 216 116C216 118.209 214.209 120 212 120H44C41.7909 120 40 118.209 40 116Z" fill="#485F84"/>
|
||||
<path d="M40 48C40 43.5817 43.5817 40 48 40H208C212.418 40 216 43.5817 216 48V72C216 76.4183 212.418 80 208 80H48C43.5817 80 40 76.4183 40 72V48Z" fill="#485F84"/>
|
||||
<path d="M40 94C40 90.6863 42.6863 88 46 88H210C213.314 88 216 90.6863 216 94V98C216 101.314 213.314 104 210 104H46C42.6863 104 40 101.314 40 98V94Z" fill="#485F84"/>
|
||||
<path d="M40 132C40 129.791 41.7909 128 44 128H100C102.209 128 104 129.791 104 132C104 134.209 102.209 136 100 136H44C41.7909 136 40 134.209 40 132Z" fill="#485F84"/>
|
||||
<path d="M40 148C40 145.791 41.7909 144 44 144H84C86.2091 144 88 145.791 88 148C88 150.209 86.2091 152 84 152H44C41.7909 152 40 150.209 40 148Z" fill="#485F84"/>
|
||||
<path d="M74.0148 212.289L103.248 225.304L79.4412 246.814C79.4412 246.814 77.443 248.843 75.616 248.03C73.7889 247.216 73.9599 244.373 73.9599 244.373L74.0148 212.289Z" fill="#48B9C7"/>
|
||||
<path d="M162.278 14.0497C162.278 14.0497 166.752 4.00068 181.368 10.5085C195.985 17.0162 191.511 27.0652 191.511 27.0652L103.249 225.305L79.4423 246.815C79.4423 246.815 77.4441 248.844 75.6171 248.03C73.79 247.217 73.961 244.374 73.961 244.374L74.0159 212.289L162.278 14.0497Z" fill="#69D6E4"/>
|
||||
<path d="M138.548 123.894C164.782 64.9702 181.368 10.5078 181.368 10.5078C195.985 17.0156 191.511 27.0646 191.511 27.0646L103.249 225.304L79.4421 246.814C79.4421 246.814 77.4439 248.843 75.6168 248.03C73.7897 247.216 73.9608 244.374 73.9608 244.374C73.9608 244.374 94.4169 223.014 138.548 123.894Z" fill="url(#paint1_linear_1928_410)"/>
|
||||
<path d="M169.179 18.2164C170.976 14.1801 175.704 12.3648 179.741 14.1619C183.777 15.959 185.592 20.6879 183.795 24.7241L102.448 207.433C100.651 211.47 95.9219 213.285 91.8856 211.488C87.8493 209.691 86.0341 204.962 87.8312 200.925L169.179 18.2164Z" fill="#48B9C7"/>
|
||||
<path d="M172.526 22.991C173.2 21.4774 174.974 20.7967 176.487 21.4706C178.001 22.1445 178.682 23.9178 178.008 25.4314L170.686 41.8752C170.013 43.3888 168.239 44.0696 166.726 43.3957C165.212 42.7217 164.531 40.9484 165.205 39.4348L172.526 22.991Z" fill="white"/>
|
||||
<defs>
|
||||
<linearGradient id="paint0_linear_1928_410" x1="24" y1="232" x2="232" y2="24" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#9E9E9E"/>
|
||||
<stop offset="1" stop-color="#BEBEBE"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="paint1_linear_1928_410" x1="187.307" y1="13.152" x2="81.555" y2="250.674" gradientUnits="userSpaceOnUse">
|
||||
<stop offset="0.619792" stop-color="#229FAD"/>
|
||||
<stop offset="1" stop-color="#48B9C7"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.8 KiB |
23
res/icons/hicolor/32x32/apps/com.system76.CosmicEdit.svg
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M4 7C4 5.5 5 4 7 4H25C27 4 28 5.5 28 7V25C28 26.5 27 28 25 28H7C5.5 28 4 27 4 25V7Z" fill="url(#paint0_linear_1928_406)"/>
|
||||
<path d="M6 15.5C6 15.2239 6.20351 15 6.45455 15H25.5455C25.7965 15 26 15.2239 26 15.5C26 15.7761 25.7965 16 25.5455 16H6.45455C6.20351 16 6 15.7761 6 15.5Z" fill="#485F84"/>
|
||||
<path d="M6 7C6 6.44772 6.40701 6 6.90909 6H25.0909C25.593 6 26 6.44772 26 7V10C26 10.5523 25.593 11 25.0909 11H6.90909C6.40701 11 6 10.5523 6 10V7Z" fill="#485F84"/>
|
||||
<path d="M6 12.75C6 12.3358 6.30526 12 6.68182 12H25.3182C25.6947 12 26 12.3358 26 12.75V13.25C26 13.6642 25.6947 14 25.3182 14H6.68182C6.30526 14 6 13.6642 6 13.25V12.75Z" fill="#485F84"/>
|
||||
<path d="M9.00677 25.8008L12.4184 27.3197L9.64006 29.83C9.64006 29.83 9.40686 30.0669 9.19363 29.9719C8.9804 29.877 9.00037 29.5452 9.00037 29.5452L9.00677 25.8008Z" fill="#48B9C7"/>
|
||||
<path d="M19.3052 2.66908C19.3052 2.66908 19.8273 1.49655 21.5327 2.25588C23.2382 3.01522 22.7162 4.18774 22.7162 4.18774L12.4177 27.3184L9.63993 29.8282C9.63993 29.8282 9.40678 30.065 9.1936 29.9701C8.98041 29.8752 9.00037 29.5435 9.00037 29.5435L9.00677 25.7998L19.3052 2.66908Z" fill="#69D6E4"/>
|
||||
<path d="M16.5364 15.4848C19.5975 8.6096 21.5327 2.25488 21.5327 2.25488C23.2382 3.01422 22.7162 4.18674 22.7162 4.18674L12.4177 27.3174L9.63993 29.8272C9.63993 29.8272 9.40678 30.064 9.1936 29.9691C8.98041 29.8742 9.00037 29.5425 9.00037 29.5425C9.00037 29.5425 11.3872 27.0502 16.5364 15.4848Z" fill="url(#paint1_linear_1928_406)"/>
|
||||
<path d="M20.111 3.15557C20.3207 2.68462 20.8725 2.47281 21.3435 2.6825C21.8144 2.89218 22.0262 3.44395 21.8165 3.91491L12.3249 25.2335C12.1152 25.7045 11.5634 25.9163 11.0925 25.7066C10.6215 25.4969 10.4097 24.9451 10.6194 24.4742L20.111 3.15557Z" fill="#48B9C7"/>
|
||||
<path d="M20.5009 3.71268C20.5795 3.53603 20.7865 3.45659 20.9631 3.53524C21.1398 3.61389 21.2192 3.82084 21.1405 3.99749L20.2861 5.91654C20.2075 6.09319 20.0005 6.17263 19.8239 6.09398C19.6472 6.01534 19.5678 5.80838 19.6464 5.63174L20.5009 3.71268Z" fill="white"/>
|
||||
<path d="M6 17.5C6 17.2239 6.22386 17 6.5 17H11.5C11.7761 17 12 17.2239 12 17.5C12 17.7761 11.7761 18 11.5 18H6.5C6.22386 18 6 17.7761 6 17.5Z" fill="#485F84"/>
|
||||
<path d="M6 19.5C6 19.2239 6.22386 19 6.5 19H9.5C9.77614 19 10 19.2239 10 19.5C10 19.7761 9.77614 20 9.5 20H6.5C6.22386 20 6 19.7761 6 19.5Z" fill="#485F84"/>
|
||||
<defs>
|
||||
<linearGradient id="paint0_linear_1928_406" x1="4" y1="28" x2="28" y2="4" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#9E9E9E"/>
|
||||
<stop offset="1" stop-color="#BEBEBE"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="paint1_linear_1928_406" x1="22.2256" y1="2.56341" x2="9.88646" y2="30.2776" gradientUnits="userSpaceOnUse">
|
||||
<stop offset="0.619792" stop-color="#229FAD"/>
|
||||
<stop offset="1" stop-color="#48B9C7"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.8 KiB |
23
res/icons/hicolor/48x48/apps/com.system76.CosmicEdit.svg
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M5 8.5C5 6.5 6.5 5 8.5 5H39.5C41.5 5 43 6.5 43 8.5V39.5C43 41.5 41.5 43 39.5 43H8.5C6.5 43 5 41.5 5 39.5V8.5Z" fill="url(#paint0_linear_1928_407)"/>
|
||||
<path d="M8 9.4C8 8.6268 8.65122 8 9.45455 8H38.5455C39.3488 8 40 8.6268 40 9.4V13.6C40 14.3732 39.3488 15 38.5455 15H9.45455C8.65122 15 8 14.3732 8 13.6V9.4Z" fill="#485F84"/>
|
||||
<path d="M8 18.125C8 17.5037 8.48842 17 9.09091 17H38.9091C39.5116 17 40 17.5037 40 18.125V18.875C40 19.4963 39.5116 20 38.9091 20H9.09091C8.48842 20 8 19.4963 8 18.875V18.125Z" fill="#485F84"/>
|
||||
<path d="M8 23C8 22.4477 8.44772 22 9 22H39C39.5523 22 40 22.4477 40 23C40 23.5523 39.5523 24 39 24H9C8.44772 24 8 23.5523 8 23Z" fill="#485F84"/>
|
||||
<path d="M8 27C8 26.4477 8.44772 26 9 26H16C16.5523 26 17 26.4477 17 27C17 27.5523 16.5523 28 16 28H9C8.44772 28 8 27.5523 8 27Z" fill="#485F84"/>
|
||||
<path d="M8 31C8 30.4477 8.44772 30 9 30H13C13.5523 30 14 30.4477 14 31C14 31.5523 13.5523 32 13 32H9C8.44772 32 8 31.5523 8 31Z" fill="#485F84"/>
|
||||
<path d="M13.0108 39.415L18.373 41.8024L14.0061 45.7479C14.0061 45.7479 13.6396 46.1201 13.3045 45.9709C12.9693 45.8217 13.0007 45.3003 13.0007 45.3003L13.0108 39.415Z" fill="#48B9C7"/>
|
||||
<path d="M29.2003 3.05181C29.2003 3.05181 30.021 1.20856 32.7021 2.40226C35.3832 3.59596 34.5625 5.43921 34.5625 5.43921L18.3729 41.8016L14.0061 45.7471C14.0061 45.7471 13.6396 46.1193 13.3045 45.9701C12.9693 45.8209 13.0007 45.2994 13.0007 45.2994L13.0108 39.4142L29.2003 3.05181Z" fill="#69D6E4"/>
|
||||
<path d="M24.8477 23.2004C29.6598 12.3922 32.7021 2.40234 32.7021 2.40234C35.3832 3.59604 34.5625 5.4393 34.5625 5.4393L18.3729 41.8016L14.0061 45.7471C14.0061 45.7471 13.6396 46.1194 13.3045 45.9702C12.9693 45.821 13.0007 45.2995 13.0007 45.2995C13.0007 45.2995 16.7529 41.3815 24.8477 23.2004Z" fill="url(#paint1_linear_1928_407)"/>
|
||||
<path d="M30.4669 3.81722C30.7965 3.07685 31.6639 2.74389 32.4043 3.07352C33.1446 3.40315 33.4776 4.27055 33.148 5.01092L18.2267 38.5246C17.8971 39.265 17.0297 39.5979 16.2893 39.2683C15.5489 38.9387 15.216 38.0713 15.5456 37.3309L30.4669 3.81722Z" fill="#48B9C7"/>
|
||||
<path d="M31.0805 4.69281C31.2041 4.41517 31.5294 4.29031 31.807 4.41392C32.0846 4.53753 32.2095 4.86281 32.0859 5.14045L30.743 8.15668C30.6194 8.43431 30.2941 8.55918 30.0165 8.43556C29.7388 8.31195 29.614 7.98668 29.7376 7.70904L31.0805 4.69281Z" fill="white"/>
|
||||
<defs>
|
||||
<linearGradient id="paint0_linear_1928_407" x1="5" y1="43" x2="43" y2="5" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#9E9E9E"/>
|
||||
<stop offset="1" stop-color="#BEBEBE"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="paint1_linear_1928_407" x1="33.7913" y1="2.88737" x2="14.3937" y2="46.4552" gradientUnits="userSpaceOnUse">
|
||||
<stop offset="0.619792" stop-color="#229FAD"/>
|
||||
<stop offset="1" stop-color="#48B9C7"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.8 KiB |
23
res/icons/hicolor/64x64/apps/com.system76.CosmicEdit.svg
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
<svg width="64" height="64" viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M6 10C6 7.79086 7.79086 6 10 6H54C56.2091 6 58 7.79086 58 10V54C58 56.2091 56.2091 58 54 58H10C7.5 58 6 56 6 54V10Z" fill="url(#paint0_linear_1928_408)"/>
|
||||
<path d="M10 29C10 28.4477 10.4477 28 11 28H53C53.5523 28 54 28.4477 54 29C54 29.5523 53.5523 30 53 30H11C10.4477 30 10 29.5523 10 29Z" fill="#485F84"/>
|
||||
<path d="M10 12C10 10.8954 10.8954 10 12 10H52C53.1046 10 54 10.8954 54 12V18C54 19.1046 53.1046 20 52 20H12C10.8954 20 10 19.1046 10 18V12Z" fill="#485F84"/>
|
||||
<path d="M10 23.5C10 22.6716 10.6716 22 11.5 22H52.5C53.3284 22 54 22.6716 54 23.5V24.5C54 25.3284 53.3284 26 52.5 26H11.5C10.6716 26 10 25.3284 10 24.5V23.5Z" fill="#485F84"/>
|
||||
<path d="M17.0148 52.9941L24.3231 56.248L18.3714 61.6255C18.3714 61.6255 17.8718 62.1328 17.415 61.9295C16.9583 61.7261 17.001 61.0154 17.001 61.0154L17.0148 52.9941Z" fill="#48B9C7"/>
|
||||
<path d="M39.0802 3.43356C39.0802 3.43356 40.1987 0.921312 43.8529 2.54826C47.5071 4.1752 46.3886 6.68745 46.3886 6.68745L24.3231 56.2473L18.3714 61.6248C18.3714 61.6248 17.8718 62.1321 17.415 61.9288C16.9583 61.7254 17.001 61.0147 17.001 61.0147L17.0148 52.9935L39.0802 3.43356Z" fill="#69D6E4"/>
|
||||
<path d="M33.1478 30.8954C39.7064 16.1644 43.8529 2.54883 43.8529 2.54883C47.5071 4.17577 46.3886 6.68802 46.3886 6.68802L24.3231 56.2479L18.3714 61.6254C18.3714 61.6254 17.8718 62.1327 17.415 61.9293C16.9583 61.726 17.001 61.0153 17.001 61.0153C17.001 61.0153 22.1151 55.6753 33.1478 30.8954Z" fill="url(#paint1_linear_1928_408)"/>
|
||||
<path d="M40.8056 4.47609C41.2549 3.46701 42.4371 3.0132 43.4462 3.46247C44.4553 3.91174 44.9091 5.09396 44.4598 6.10303L24.123 51.7803C23.6737 52.7894 22.4915 53.2432 21.4824 52.7939C20.4733 52.3447 20.0195 51.1624 20.4688 50.1534L40.8056 4.47609Z" fill="#48B9C7"/>
|
||||
<path d="M41.6424 5.66974C41.8109 5.29134 42.2542 5.12116 42.6326 5.28964C43.011 5.45811 43.1812 5.90145 43.0127 6.27985L41.1824 10.3908C41.0139 10.7692 40.5706 10.9394 40.1922 10.7709C39.8138 10.6024 39.6436 10.1591 39.8121 9.7807L41.6424 5.66974Z" fill="white"/>
|
||||
<rect x="10" y="32" width="14" height="2" rx="1" fill="#485F84"/>
|
||||
<rect x="10" y="36" width="11" height="2" rx="1" fill="#485F84"/>
|
||||
<defs>
|
||||
<linearGradient id="paint0_linear_1928_408" x1="6" y1="58" x2="58" y2="6" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#9E9E9E"/>
|
||||
<stop offset="1" stop-color="#BEBEBE"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="paint1_linear_1928_408" x1="45.3375" y1="3.20989" x2="18.8996" y2="62.5904" gradientUnits="userSpaceOnUse">
|
||||
<stop offset="0.619792" stop-color="#229FAD"/>
|
||||
<stop offset="1" stop-color="#48B9C7"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.6 KiB |
31
src/main.rs
|
|
@ -182,6 +182,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||
#[derive(Clone, Copy, Debug, Deserialize, Eq, Hash, Ord, PartialEq, PartialOrd, Serialize)]
|
||||
pub enum Action {
|
||||
Todo,
|
||||
About,
|
||||
CloseFile,
|
||||
CloseProject(usize),
|
||||
Copy,
|
||||
|
|
@ -227,6 +228,7 @@ impl Action {
|
|||
pub fn message(&self) -> Message {
|
||||
match self {
|
||||
Self::Todo => Message::Todo,
|
||||
Self::About => Message::ToggleContextPage(ContextPage::About),
|
||||
Self::CloseFile => Message::CloseFile,
|
||||
Self::CloseProject(project_i) => Message::CloseProject(*project_i),
|
||||
Self::Copy => Message::Copy,
|
||||
|
|
@ -370,6 +372,7 @@ pub enum Message {
|
|||
|
||||
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
|
||||
pub enum ContextPage {
|
||||
About,
|
||||
DocumentStatistics,
|
||||
GitManagement,
|
||||
//TODO: Move search to pop-up
|
||||
|
|
@ -381,6 +384,7 @@ pub enum ContextPage {
|
|||
impl ContextPage {
|
||||
fn title(&self) -> String {
|
||||
match self {
|
||||
Self::About => fl!("about"),
|
||||
Self::DocumentStatistics => fl!("document-statistics"),
|
||||
Self::GitManagement => fl!("git-management"),
|
||||
Self::ProjectSearch => fl!("project-search"),
|
||||
|
|
@ -708,13 +712,37 @@ impl App {
|
|||
None => "No Open File".to_string(),
|
||||
};
|
||||
|
||||
let window_title = format!("{title} - COSMIC Text Editor");
|
||||
let window_title = format!("{title} - {}", fl!("cosmic-text-editor"));
|
||||
Command::batch([
|
||||
self.set_window_title(window_title, self.main_window_id()),
|
||||
self.update_focus(),
|
||||
])
|
||||
}
|
||||
|
||||
fn about(&self) -> Element<Message> {
|
||||
let cosmic_theme::Spacing { space_xxs, .. } = self.core().system_theme().cosmic().spacing;
|
||||
widget::column::with_children(vec![
|
||||
widget::svg(widget::svg::Handle::from_memory(
|
||||
&include_bytes!(
|
||||
"../res/icons/hicolor/256x256/apps/com.system76.CosmicEdit.svg"
|
||||
)[..],
|
||||
))
|
||||
.into(),
|
||||
widget::text::heading(fl!("cosmic-text-editor")).into(),
|
||||
widget::button::link("https://github.com/pop-os/cosmic-edit")
|
||||
.padding(0)
|
||||
.into(),
|
||||
widget::text(fl!(
|
||||
"git-description",
|
||||
hash = env!("VERGEN_GIT_SHA"),
|
||||
date = env!("VERGEN_GIT_COMMIT_DATE")
|
||||
))
|
||||
.into(),
|
||||
])
|
||||
.spacing(space_xxs)
|
||||
.into()
|
||||
}
|
||||
|
||||
fn document_statistics(&self) -> Element<Message> {
|
||||
//TODO: calculate in the background
|
||||
let mut character_count = 0;
|
||||
|
|
@ -2220,6 +2248,7 @@ impl Application for App {
|
|||
}
|
||||
|
||||
Some(match self.context_page {
|
||||
ContextPage::About => self.about(),
|
||||
ContextPage::DocumentStatistics => self.document_statistics(),
|
||||
ContextPage::GitManagement => self.git_management(),
|
||||
ContextPage::ProjectSearch => self.project_search(),
|
||||
|
|
|
|||
|
|
@ -270,7 +270,7 @@ pub fn menu_bar<'a>(
|
|||
//TODO MenuTree::new(horizontal_rule(1)),
|
||||
//TODO menu_item(fl!("menu-keyboard-shortcuts"), Action::Todo),
|
||||
MenuTree::new(horizontal_rule(1)),
|
||||
menu_item(fl!("about-cosmic-text-editor"), Action::Todo),
|
||||
menu_item(fl!("menu-about"), Action::About),
|
||||
],
|
||||
),
|
||||
])
|
||||
|
|
|
|||