Merge pull request 'dtmm: Replace icon for mod update notification' (#165) from feat/upload-icon into master
All checks were successful
build/msvc Build for the target platform: msvc
build/linux Build for the target platform: linux
All checks were successful
build/msvc Build for the target platform: msvc
build/linux Build for the target platform: linux
Reviewed-on: #165
This commit is contained in:
commit
6edd8e92c9
3 changed files with 12 additions and 4 deletions
8
crates/dtmm/assets/tabler-icons/cloud-download.svg
Normal file
8
crates/dtmm/assets/tabler-icons/cloud-download.svg
Normal file
|
@ -0,0 +1,8 @@
|
|||
<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>
|
||||
|
||||
|
After Width: | Height: | Size: 439 B |
|
@ -4,7 +4,7 @@ use usvg::{
|
|||
};
|
||||
|
||||
pub static ALERT_CIRCLE: &str = include_str!("../../../assets/tabler-icons/alert-circle.svg");
|
||||
pub static ALERT_TRIANGLE: &str = include_str!("../../../assets/tabler-icons/alert-triangle.svg");
|
||||
pub static CLOUD_DOWNLOAD: &str = include_str!("../../../assets/tabler-icons/cloud-download.svg");
|
||||
|
||||
pub fn parse_svg(svg: &str) -> Result<Tree, Error> {
|
||||
let opt = Options::default();
|
||||
|
|
|
@ -22,7 +22,7 @@ use crate::state::{
|
|||
ACTION_START_CHECK_UPDATE, ACTION_START_DELETE_SELECTED_MOD, ACTION_START_DEPLOY,
|
||||
ACTION_START_RESET_DEPLOYMENT,
|
||||
};
|
||||
use crate::ui::theme::{self, ColorExt, COLOR_YELLOW_LIGHT};
|
||||
use crate::ui::theme::{self, ColorExt, COLOR_GREEN_LIGHT};
|
||||
use crate::ui::widget::border::Border;
|
||||
use crate::ui::widget::button::Button;
|
||||
use crate::ui::widget::controller::{
|
||||
|
@ -148,9 +148,9 @@ fn build_mod_list() -> impl Widget<State> {
|
|||
let version = {
|
||||
let icon = {
|
||||
let tree =
|
||||
theme::icons::parse_svg(theme::icons::ALERT_TRIANGLE).expect("invalid SVG");
|
||||
theme::icons::parse_svg(theme::icons::CLOUD_DOWNLOAD).expect("invalid SVG");
|
||||
|
||||
let tree = theme::icons::recolor_icon(tree, true, COLOR_YELLOW_LIGHT);
|
||||
let tree = theme::icons::recolor_icon(tree, true, COLOR_GREEN_LIGHT);
|
||||
|
||||
Svg::new(tree).fix_height(druid::theme::TEXT_SIZE_NORMAL)
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue