Compare commits
7 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
46d9f0c344 | ||
|
|
0d69cd9183 | ||
|
|
52116d2f36 | ||
|
|
0e72508dcc | ||
|
|
1d7113a244 | ||
|
|
e287a789c1 | ||
|
|
6caccaba33 |
12 changed files with 95 additions and 19 deletions
|
|
@ -170,12 +170,12 @@ cosmic-config = { path = "cosmic-config", features = ["dbus"] }
|
||||||
cosmic-settings-daemon = { git = "https://github.com/pop-os/dbus-settings-bindings" }
|
cosmic-settings-daemon = { git = "https://github.com/pop-os/dbus-settings-bindings" }
|
||||||
zbus = { version = "5.14.0", default-features = false }
|
zbus = { version = "5.14.0", default-features = false }
|
||||||
|
|
||||||
[target.'cfg(unix)'.dependencies]
|
[target.'cfg(all(unix, not(target_os = "macos")))'.dependencies]
|
||||||
freedesktop-icons = { package = "cosmic-freedesktop-icons", git = "https://github.com/pop-os/freedesktop-icons" }
|
freedesktop-icons = { package = "cosmic-freedesktop-icons", git = "https://github.com/pop-os/freedesktop-icons" }
|
||||||
freedesktop-desktop-entry = { version = "0.8.1", optional = true }
|
freedesktop-desktop-entry = { version = "0.8.1", optional = true }
|
||||||
shlex = { version = "1.3.0", optional = true }
|
shlex = { version = "1.3.0", optional = true }
|
||||||
|
|
||||||
[target.'cfg(not(unix))'.dependencies]
|
[target.'cfg(any(not(unix), target_os = "macos"))'.dependencies]
|
||||||
# Used to embed bundled icons for non-unix platforms.
|
# Used to embed bundled icons for non-unix platforms.
|
||||||
phf = { version = "0.13.1", features = ["macros"] }
|
phf = { version = "0.13.1", features = ["macros"] }
|
||||||
|
|
||||||
|
|
|
||||||
4
build.rs
4
build.rs
|
|
@ -3,7 +3,9 @@ use std::env;
|
||||||
fn main() {
|
fn main() {
|
||||||
println!("cargo::rerun-if-changed=build.rs");
|
println!("cargo::rerun-if-changed=build.rs");
|
||||||
|
|
||||||
if env::var_os("CARGO_CFG_UNIX").is_none() {
|
if env::var_os("CARGO_CFG_UNIX").is_none()
|
||||||
|
|| env::var("CARGO_CFG_TARGET_OS").as_deref() == Ok("macos")
|
||||||
|
{
|
||||||
generate_bundled_icons();
|
generate_bundled_icons();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ links = Links
|
||||||
developers = Entwickler(innen)
|
developers = Entwickler(innen)
|
||||||
designers = Designer(innen)
|
designers = Designer(innen)
|
||||||
artists = Künstler(innen)
|
artists = Künstler(innen)
|
||||||
translators = Übersetzer*innen
|
translators = Übersetzer(innen)
|
||||||
documenters = Dokumentierer(innen)
|
documenters = Dokumentierer(innen)
|
||||||
# Calendar
|
# Calendar
|
||||||
january = Januar { $year }
|
january = Januar { $year }
|
||||||
|
|
|
||||||
0
i18n/eu/libcosmic.ftl
Normal file
0
i18n/eu/libcosmic.ftl
Normal file
|
|
@ -0,0 +1,33 @@
|
||||||
|
close = Mdel
|
||||||
|
license = Turagt
|
||||||
|
links = Iseɣwan
|
||||||
|
developers = Ineflayen
|
||||||
|
artists = Inaẓuren
|
||||||
|
translators = Imsuqlen
|
||||||
|
january = Yennayer { $year }
|
||||||
|
february = Fuṛar { $year }
|
||||||
|
march = Meɣres { $year }
|
||||||
|
april = Yebrir { $year }
|
||||||
|
may = Mayyu { $year }
|
||||||
|
june = Yunyu { $year }
|
||||||
|
july = Yulyu { $year }
|
||||||
|
august = Ɣuct { $year }
|
||||||
|
september = Ctembeṛ { $year }
|
||||||
|
october = Tubeṛ { $year }
|
||||||
|
november = Wambeṛ { $year }
|
||||||
|
december = Dujembeṛ { $year }
|
||||||
|
documenters = Imeskaren
|
||||||
|
monday = Arim
|
||||||
|
mon = Ari
|
||||||
|
tuesday = Aram
|
||||||
|
tue = Ara
|
||||||
|
wednesday = Ahad
|
||||||
|
wed = Aha
|
||||||
|
thursday = Amhad
|
||||||
|
thu = Amh
|
||||||
|
friday = Sem
|
||||||
|
fri = Sm
|
||||||
|
saturday = Sed
|
||||||
|
sat = Sd
|
||||||
|
sunday = Acer
|
||||||
|
sun = Ace
|
||||||
|
|
@ -2,26 +2,33 @@ february = { $year }년 2월
|
||||||
close = 닫기
|
close = 닫기
|
||||||
documenters = 문서 작성자
|
documenters = 문서 작성자
|
||||||
november = { $year }년 11월
|
november = { $year }년 11월
|
||||||
friday = 금
|
friday = 금요일
|
||||||
tuesday = 화
|
tuesday = 화요일
|
||||||
may = { $year }년 5월
|
may = { $year }년 5월
|
||||||
wednesday = 수
|
wednesday = 수요일
|
||||||
april = { $year }년 4월
|
april = { $year }년 4월
|
||||||
monday = 월
|
monday = 월요일
|
||||||
translators = 번역가
|
translators = 번역가
|
||||||
artists = 아티스트
|
artists = 아티스트
|
||||||
license = 라이선스
|
license = 라이선스
|
||||||
december = { $year }년 12월
|
december = { $year }년 12월
|
||||||
sunday = 일
|
sunday = 일요일
|
||||||
links = 링크
|
links = 링크
|
||||||
march = { $year }년 3월
|
march = { $year }년 3월
|
||||||
june = { $year }년 6월
|
june = { $year }년 6월
|
||||||
saturday = 토
|
saturday = 토요일
|
||||||
august = { $year }년 8월
|
august = { $year }년 8월
|
||||||
developers = 개발자
|
developers = 개발자
|
||||||
july = { $year }년 7월
|
july = { $year }년 7월
|
||||||
thursday = 목
|
thursday = 목요일
|
||||||
september = { $year }년 9월
|
september = { $year }년 9월
|
||||||
designers = 디자이너
|
designers = 디자이너
|
||||||
october = { $year }년 10월
|
october = { $year }년 10월
|
||||||
january = { $year }년 1월
|
january = { $year }년 1월
|
||||||
|
mon = 월
|
||||||
|
tue = 화
|
||||||
|
wed = 수
|
||||||
|
thu = 목
|
||||||
|
fri = 금
|
||||||
|
sat = 토
|
||||||
|
sun = 일
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,34 @@
|
||||||
|
close = 關閉
|
||||||
|
developers = 開發人員
|
||||||
|
designers = 設計人員
|
||||||
|
artists = 美編設計
|
||||||
|
translators = 翻譯人員
|
||||||
|
documenters = 文件編輯人員
|
||||||
|
january = { $year } 年 1 月
|
||||||
|
monday = 星期一
|
||||||
|
tuesday = 星期二
|
||||||
|
wednesday = 星期三
|
||||||
|
thursday = 星期四
|
||||||
|
friday = 星期五
|
||||||
|
saturday = 星期六
|
||||||
|
sunday = 星期日
|
||||||
|
mon = 週一
|
||||||
|
tue = 週二
|
||||||
|
wed = 週三
|
||||||
|
thu = 週四
|
||||||
|
fri = 週五
|
||||||
|
sat = 週六
|
||||||
|
sun = 週日
|
||||||
|
license = 授權
|
||||||
|
links = 連結
|
||||||
|
february = { $year } 年 2 月
|
||||||
|
march = { $year } 年 3 月
|
||||||
|
april = { $year } 年 4 月
|
||||||
|
may = { $year } 年 5 月
|
||||||
|
june = { $year } 年 6 月
|
||||||
|
july = { $year } 年 7 月
|
||||||
|
august = { $year } 年 8 月
|
||||||
|
september = { $year } 年 9 月
|
||||||
|
october = { $year } 年 10 月
|
||||||
|
november = { $year } 年 11 月
|
||||||
|
december = { $year } 年 12 月
|
||||||
2
iced
2
iced
|
|
@ -1 +1 @@
|
||||||
Subproject commit 7fd263d99e6ae1b07e51f25bda3367f7463806b1
|
Subproject commit 78caabba7ef91cd1030da6f70b41d266704ffece
|
||||||
|
|
@ -307,7 +307,7 @@ impl DefaultStyle for Theme {
|
||||||
fn default_style(&self) -> Appearance {
|
fn default_style(&self) -> Appearance {
|
||||||
let cosmic = self.cosmic();
|
let cosmic = self.cosmic();
|
||||||
Appearance {
|
Appearance {
|
||||||
icon_color: cosmic.bg_color().into(),
|
icon_color: cosmic.on_bg_color().into(),
|
||||||
background_color: cosmic.bg_color().into(),
|
background_color: cosmic.bg_color().into(),
|
||||||
text_color: cosmic.on_bg_color().into(),
|
text_color: cosmic.on_bg_color().into(),
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ pub mod application {
|
||||||
iced::theme::Style {
|
iced::theme::Style {
|
||||||
background_color: cosmic.bg_color().into(),
|
background_color: cosmic.bg_color().into(),
|
||||||
text_color: cosmic.on_bg_color().into(),
|
text_color: cosmic.on_bg_color().into(),
|
||||||
icon_color: cosmic.bg_color().into(),
|
icon_color: cosmic.on_bg_color().into(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,12 +4,12 @@
|
||||||
//! Embedded icons for platforms which do not support icon themes yet.
|
//! Embedded icons for platforms which do not support icon themes yet.
|
||||||
|
|
||||||
/// Icon bundling is not enabled on unix platforms.
|
/// Icon bundling is not enabled on unix platforms.
|
||||||
#[cfg(unix)]
|
#[cfg(all(unix, not(target_os = "macos")))]
|
||||||
pub fn get(icon_name: &str) -> Option<super::Data> {
|
pub fn get(icon_name: &str) -> Option<super::Data> {
|
||||||
None
|
None
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(not(unix))]
|
#[cfg(any(not(unix), target_os = "macos"))]
|
||||||
/// Get a bundled icon on non-unix platforms.
|
/// Get a bundled icon on non-unix platforms.
|
||||||
pub fn get(icon_name: &str) -> Option<super::Data> {
|
pub fn get(icon_name: &str) -> Option<super::Data> {
|
||||||
ICONS
|
ICONS
|
||||||
|
|
@ -17,5 +17,5 @@ pub fn get(icon_name: &str) -> Option<super::Data> {
|
||||||
.map(|bytes| super::Data::Svg(crate::iced::widget::svg::Handle::from_memory(*bytes)))
|
.map(|bytes| super::Data::Svg(crate::iced::widget::svg::Handle::from_memory(*bytes)))
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(not(unix))]
|
#[cfg(any(not(unix), target_os = "macos"))]
|
||||||
include!(concat!(env!("OUT_DIR"), "/bundled_icons.rs"));
|
include!(concat!(env!("OUT_DIR"), "/bundled_icons.rs"));
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,7 @@ impl Named {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(not(windows))]
|
#[cfg(all(unix, not(target_os = "macos")))]
|
||||||
#[must_use]
|
#[must_use]
|
||||||
pub fn path(self) -> Option<PathBuf> {
|
pub fn path(self) -> Option<PathBuf> {
|
||||||
let name = &*self.name;
|
let name = &*self.name;
|
||||||
|
|
@ -107,7 +107,7 @@ impl Named {
|
||||||
result
|
result
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(windows)]
|
#[cfg(any(not(unix), target_os = "macos"))]
|
||||||
#[must_use]
|
#[must_use]
|
||||||
pub fn path(self) -> Option<PathBuf> {
|
pub fn path(self) -> Option<PathBuf> {
|
||||||
//TODO: implement icon lookup for Windows
|
//TODO: implement icon lookup for Windows
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue