Compare commits

..

No commits in common. "6edd8e92c9b785121f8aaac268fe3070e05cacb9" and "1bc0fe28fbfb859d8321e3e7c7737017dd891407" have entirely different histories.

3 changed files with 4 additions and 12 deletions

View file

@ -1,8 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-cloud-download" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M19 18a3.5 3.5 0 0 0 0 -7h-1a5 4.5 0 0 0 -11 -2a4.6 4.4 0 0 0 -2.1 8.4" />
<path d="M12 13l0 9" />
<path d="M9 19l3 3l3 -3" />
</svg>

Before

Width:  |  Height:  |  Size: 439 B

View file

@ -4,7 +4,7 @@ use usvg::{
}; };
pub static ALERT_CIRCLE: &str = include_str!("../../../assets/tabler-icons/alert-circle.svg"); pub static ALERT_CIRCLE: &str = include_str!("../../../assets/tabler-icons/alert-circle.svg");
pub static CLOUD_DOWNLOAD: &str = include_str!("../../../assets/tabler-icons/cloud-download.svg"); pub static ALERT_TRIANGLE: &str = include_str!("../../../assets/tabler-icons/alert-triangle.svg");
pub fn parse_svg(svg: &str) -> Result<Tree, Error> { pub fn parse_svg(svg: &str) -> Result<Tree, Error> {
let opt = Options::default(); let opt = Options::default();

View file

@ -22,7 +22,7 @@ use crate::state::{
ACTION_START_CHECK_UPDATE, ACTION_START_DELETE_SELECTED_MOD, ACTION_START_DEPLOY, ACTION_START_CHECK_UPDATE, ACTION_START_DELETE_SELECTED_MOD, ACTION_START_DEPLOY,
ACTION_START_RESET_DEPLOYMENT, ACTION_START_RESET_DEPLOYMENT,
}; };
use crate::ui::theme::{self, ColorExt, COLOR_GREEN_LIGHT}; use crate::ui::theme::{self, ColorExt, COLOR_YELLOW_LIGHT};
use crate::ui::widget::border::Border; use crate::ui::widget::border::Border;
use crate::ui::widget::button::Button; use crate::ui::widget::button::Button;
use crate::ui::widget::controller::{ use crate::ui::widget::controller::{
@ -148,9 +148,9 @@ fn build_mod_list() -> impl Widget<State> {
let version = { let version = {
let icon = { let icon = {
let tree = let tree =
theme::icons::parse_svg(theme::icons::CLOUD_DOWNLOAD).expect("invalid SVG"); theme::icons::parse_svg(theme::icons::ALERT_TRIANGLE).expect("invalid SVG");
let tree = theme::icons::recolor_icon(tree, true, COLOR_GREEN_LIGHT); let tree = theme::icons::recolor_icon(tree, true, COLOR_YELLOW_LIGHT);
Svg::new(tree).fix_height(druid::theme::TEXT_SIZE_NORMAL) Svg::new(tree).fix_height(druid::theme::TEXT_SIZE_NORMAL)
}; };