mirror of
https://github.com/GyulyVGC/sniffnet.git
synced 2026-10-25 00:21:12 +00:00
update slider style and fixed platform specific settings error
This commit is contained in:
parent
fd20ed0ed5
commit
700247d7f3
3 changed files with 9 additions and 13 deletions
|
|
@ -33,7 +33,7 @@ indexmap = "1.9.3"
|
|||
plotters = { version = "0.3.4", default_features = false, features = ["area_series"] }
|
||||
iced = { version = "0.9.0", features = ["tokio", "image"] }
|
||||
iced_native = "0.10.1"
|
||||
iced_lazy = "0.6.0"
|
||||
iced_lazy = "0.6.1"
|
||||
plotters-iced = "0.8.0"
|
||||
maxminddb = "0.23.0"
|
||||
confy = "0.5.1"
|
||||
|
|
|
|||
|
|
@ -21,8 +21,8 @@ impl iced::widget::slider::StyleSheet for StyleTuple {
|
|||
let colors = get_colors(self.0);
|
||||
Appearance {
|
||||
rail: Rail {
|
||||
colors: (colors.secondary, colors.primary),
|
||||
width: 0.0,
|
||||
colors: (colors.secondary, colors.buttons),
|
||||
width: 3.0,
|
||||
},
|
||||
handle: Handle {
|
||||
shape: HandleShape::Circle { radius: 7.0 },
|
||||
|
|
@ -37,8 +37,8 @@ impl iced::widget::slider::StyleSheet for StyleTuple {
|
|||
let colors = get_colors(self.0);
|
||||
Appearance {
|
||||
rail: Rail {
|
||||
colors: (colors.secondary, colors.secondary),
|
||||
width: 0.0,
|
||||
colors: (colors.secondary, colors.buttons),
|
||||
width: 3.0,
|
||||
},
|
||||
handle: Handle {
|
||||
shape: HandleShape::Circle { radius: 7.0 },
|
||||
|
|
@ -53,8 +53,8 @@ impl iced::widget::slider::StyleSheet for StyleTuple {
|
|||
let colors = get_colors(self.0);
|
||||
Appearance {
|
||||
rail: Rail {
|
||||
colors: (colors.secondary, colors.secondary),
|
||||
width: 0.0,
|
||||
colors: (colors.secondary, colors.buttons),
|
||||
width: 3.0,
|
||||
},
|
||||
handle: Handle {
|
||||
shape: HandleShape::Circle { radius: 7.0 },
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
use std::sync::{Arc, Condvar, Mutex};
|
||||
use std::{panic, process, thread};
|
||||
|
||||
use iced::window::Position;
|
||||
use iced::window::{PlatformSpecific, Position};
|
||||
use iced::{window, Application, Settings};
|
||||
|
||||
use chart::types::chart_type::ChartType;
|
||||
|
|
@ -106,11 +106,7 @@ pub fn main() -> iced::Result {
|
|||
transparent: false,
|
||||
always_on_top: false,
|
||||
icon: None,
|
||||
platform_specific: iced::window::PlatformSpecific {
|
||||
title_hidden: true,
|
||||
titlebar_transparent: true,
|
||||
fullsize_content_view: true,
|
||||
},
|
||||
platform_specific: PlatformSpecific::default(),
|
||||
},
|
||||
flags: Sniffer::new(
|
||||
current_capture_id1,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue