feat(debugger): add Flutter DevTools tool windows (#4422)

Flutter projects get four tool windows on the right, as in the Flutter plugin: Flutter Inspector (one tab per app started with Debug, selecting a widget jumps to its source), Flutter DevTools, Flutter Deep Links and Flutter DevTools Extensions. They embed one dart devtools --machine server per trusted project (stopped on close, trust revoke or quit); the VM Service URI comes from the Dart debug adapter's dart.debuggerUris. Links in embedded pages that open a new window go to the system browser. Icons from flutter-intellij (BSD-3-Clause, THIRD_PARTY_LICENSES.md). Refs #4096

Co-authored-by: wildcatDownstairs <26499420+wildcatDownstairs@users.noreply.github.com>
This commit is contained in:
LU XIANGRUI
2026-11-19 17:23:30 +08:00
committed by GitHub
co-authored by wildcatDownstairs
parent a4de18796b
commit 2129efd196
44 changed files with 1331 additions and 16 deletions
+34
View File
@@ -60,6 +60,40 @@ Their original copyright headers and Apache-2.0 licensing are retained.
At render time `src/ui/icons.tsx` may recolour monochrome icons to `currentColor`.
## Flutter plugin icons
`src/ui/expui/flutter/*.svg` are the DevTools tool window icons of
[flutter-intellij](https://github.com/flutter/flutter-intellij), copied unmodified from
`resources/icons/expui/` (commit `d02813ad5890`) under the BSD 3-Clause License:
```text
Copyright 2016 The Chromium Authors. All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials provided
with the distribution.
* Neither the name of Google Inc. nor the names of its
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
```
## JetBrains IntelliJ Platform VCS log graph algorithms
`crates/ide-vcs/src/bek.rs` and `src/features/vcs/graph.ts` adapt the Bek ordering,
+12
View File
@@ -370,6 +370,18 @@ pub enum DebugEvent {
/// `flutter debug_adapter`'s `flutter.appStarted` event (launch and attach): the session is
/// a Flutter app that can take a hot reload now. The plain Dart adapter never sends it.
FlutterAppStarted,
/// The VM Service of a Flutter session's app, which DevTools connects to.
FlutterVmService {
uri: String,
/// The Flutter device the app runs on.
device: Option<String>,
},
/// Flutter's inspector selected a widget: its source, 0-based.
FlutterNavigate {
path: crate::IpcPath,
line: u32,
column: u32,
},
/// The session's capabilities changed after it started: fetch them again.
Capabilities,
/// The adapter's `invalidated` event: what it shows for `areas` (`all`, `stacks`, `threads`,
+16
View File
@@ -420,6 +420,22 @@ fn add_flutter_device(arguments: &mut Value, device: Value) {
}
}
/// The source a `navigate` tool event points at (1-based there). A `package:` location comes
/// with the file the adapter resolved it to.
fn flutter_navigation(body: &Value) -> Option<ide_core::event::DebugEvent> {
if body.get("kind")?.as_str()? != "navigate" {
return None;
}
let data = body.get("data")?;
let uri = data.get("resolvedFileUri").or_else(|| data.get("fileUri"))?.as_str()?;
let position = |key| data.get(key)?.as_u64().map(|n| n.saturating_sub(1) as u32);
Some(ide_core::event::DebugEvent::FlutterNavigate {
path: kotlin_lsp::source_path(uri)?.into(),
line: position("line")?,
column: position("column").unwrap_or(0),
})
}
fn no_session(s: DebugSessionId) -> IdeError {
IdeError::not_found(format!("no debug session {}", s.0))
}
+18
View File
@@ -99,6 +99,9 @@ pub(crate) struct Session {
pub js_overrides: tokio::sync::Mutex<Option<tokio::sync::watch::Sender<Vec<crate::JsResponseRule>>>>,
/// The file js-debug records the page's CPU profile into, while one is being recorded.
pub js_profile: parking_lot::Mutex<Option<std::path::PathBuf>>,
/// The device of the app `flutter debug_adapter` announced, once it did: the Dart adapter
/// sends the same `dart.*` events.
pub flutter_app: std::sync::OnceLock<Option<String>>,
pub jvm_inspector: parking_lot::Mutex<Option<Arc<dyn ide_jvm_inspect::JvmInspector>>>,
/// One inspector request per session at a time.
pub inspect_lock: tokio::sync::Mutex<()>,
@@ -274,6 +277,7 @@ impl Session {
launch_type: std::sync::OnceLock::new(),
js_overrides: tokio::sync::Mutex::new(None),
js_profile: parking_lot::Mutex::new(None),
flutter_app: std::sync::OnceLock::new(),
jvm_inspector: parking_lot::Mutex::new(None),
inspect_lock: tokio::sync::Mutex::default(),
ended: ide_core::CancellationToken::new(),
@@ -898,6 +902,20 @@ async fn on_event(mgr: &Arc<DebugManager>, s: &Arc<Session>, event: &str, mut bo
"profileStarted" => {
*s.js_profile.lock() = str_("file").map(std::path::PathBuf::from);
}
// Sent before `dart.debuggerUris`, for `launch` and `attach` alike.
"flutter.appStart" => {
let _ = s.flutter_app.set(str_("deviceId"));
}
"dart.debuggerUris" => {
if let (Some(device), Some(uri)) = (s.flutter_app.get(), str_("vmServiceUri")) {
s.emit(DebugEvent::FlutterVmService { uri, device: device.clone() });
}
}
"dart.toolEvent" if s.flutter_app.get().is_some() => {
if let Some(event) = crate::flutter_navigation(&body) {
s.emit(event);
}
}
_ => tracing::trace!("dap: ignored event {event}"),
}
}
+35
View File
@@ -572,6 +572,20 @@ async fn fake_adapter<S: AsyncRead + AsyncWrite + Unpin + Send + 'static>(stream
json!({"type": "event", "event": "hotcodereplace", "body": {"changeType": 3, "message": "Build completed"}})
);
}
"hotRestart" => {
ok!(msg, Value::Null);
let uris = json!({"vmServiceUri": "ws://127.0.0.1:1/t=/ws"});
let navigate =
|file: &str| json!({"kind": "navigate", "data": {"fileUri": file, "line": 3, "column": 5}});
// Not Flutter's yet: a plain Dart session sends these too.
send!(json!({"type": "event", "event": "dart.debuggerUris", "body": uris}));
send!(json!({"type": "event", "event": "dart.toolEvent", "body": navigate("file:///early.dart")}));
send!(json!({"type": "event", "event": "flutter.appStart", "body": {"deviceId": "d1"}}));
send!(json!({"type": "event", "event": "dart.debuggerUris", "body": uris}));
send!(json!({"type": "event", "event": "dart.toolEvent", "body": {"kind": "other", "data": {}}}));
send!(json!({"type": "event", "event": "dart.toolEvent", "body": navigate("package:a/a.dart")}));
send!(json!({"type": "event", "event": "dart.toolEvent", "body": navigate("file:///a%20b/main.dart")}));
}
"terminate" => {
ok!(msg, Value::Null);
send!(json!({"type": "event", "event": "terminated"}));
@@ -1906,6 +1920,27 @@ async fn hot_reload_sends_its_reason_and_reports_the_flutter_app() {
h.wait_event(|e| matches!(e, DebugEvent::FlutterAppStarted)).await;
}
#[tokio::test]
async fn flutter_events_need_a_flutter_app() {
let h = harness(Script::default());
let id = h.start(config()).await.unwrap();
h.manager.hot_restart(id).await.unwrap();
let navigate = h.wait_event(|e| matches!(e, DebugEvent::FlutterNavigate { .. })).await;
let DebugEvent::FlutterNavigate { path, line, column } = navigate else { unreachable!() };
assert_eq!((path.as_ref(), line, column), (Path::new("/a b/main.dart"), 2, 4));
let events = h.events.lock();
let count = |want: fn(&DebugEvent) -> bool| {
events.iter().filter(|e| matches!(e, IdeEvent::Debug { event, .. } if want(event))).count()
};
assert_eq!(
count(
|e| matches!(e, DebugEvent::FlutterVmService { uri, device } if uri == "ws://127.0.0.1:1/t=/ws" && device.as_deref() == Some("d1"))
),
1
);
assert_eq!(count(|e| matches!(e, DebugEvent::FlutterNavigate { .. })), 1);
}
#[tokio::test]
async fn hot_swap_only_for_java_debug() {
let h = harness(Script::default());
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "ide-flutter"
description = "Flutter devices, kept current by the `flutter daemon` protocol"
description = "Flutter devices from the `flutter daemon` protocol, and the project's DevTools server"
version.workspace = true
edition.workspace = true
license.workspace = true
+299
View File
@@ -0,0 +1,299 @@
//! One `dart devtools` server per project window, started when first asked for. In `--machine`
//! mode it reports its port as a `server.started` line on stdout. A server that fails or exits
//! is not restarted on its own: the next request starts a new one.
use crate::{KILL_GRACE, OUTPUT_TAIL, keep_output, read_lines, spawn_watched};
use ide_core::process::{kill_tree, terminate_tree};
use ide_core::tool_path::{find_command, search_path_in};
use parking_lot::{Condvar, Mutex};
use serde_json::Value;
use std::collections::VecDeque;
use std::path::{Path, PathBuf};
use std::process::Child;
use std::sync::Arc;
use std::time::{Duration, Instant};
const START_TIMEOUT: Duration = Duration::from_secs(60);
/// The address embedded pages are allowed to come from, so never `localhost`.
const HOST: &str = "127.0.0.1";
const ARGS: [&str; 7] = ["devtools", "--machine", "--allow-embedding", "--host", HOST, "--port", "0"];
fn started_port(line: &str) -> Option<u16> {
let message: Value = serde_json::from_str(line.trim()).ok()?;
if message.get("event")?.as_str()? != "server.started" {
return None;
}
u16::try_from(message.get("params")?.get("port")?.as_u64()?).ok()
}
/// The `dart` of the SDK `flutter` belongs to, so that DevTools matches the debugged app.
fn dart_executable(root: &Path) -> Option<PathBuf> {
let path = search_path_in(root);
find_command("flutter", &path, root)
.and_then(|flutter| {
// On the search path `flutter` is often a link into the SDK.
let flutter = if cfg!(unix) { std::fs::canonicalize(&flutter).unwrap_or(flutter) } else { flutter };
let dart = flutter.with_file_name(if cfg!(windows) { "dart.bat" } else { "dart" });
dart.is_file().then_some(dart)
})
.or_else(|| find_command("dart", &path, root))
}
#[derive(Default)]
enum Status {
#[default]
Stopped,
Starting,
Ready(String),
Failed(String),
}
#[derive(Default)]
struct State {
/// Bumped by every start and stop: a reader of an older process no longer has a say.
generation: u64,
child: Option<Child>,
status: Status,
}
impl State {
fn shut_down(&mut self) {
self.generation += 1;
if let Some(mut child) = self.child.take() {
std::thread::spawn(move || terminate_tree(&mut child, KILL_GRACE));
}
}
}
struct Shared {
root: PathBuf,
/// Replaces the lookup on the search path (tests).
executable: Option<PathBuf>,
timeout: Duration,
state: Mutex<State>,
changed: Condvar,
}
impl Shared {
/// Applies `status` unless this process was replaced or stopped; false if it was.
fn set(&self, generation: u64, status: Status) -> bool {
let mut state = self.state.lock();
if state.generation != generation {
return false;
}
state.status = status;
self.changed.notify_all();
true
}
}
pub struct DevToolsServer(Arc<Shared>);
impl DevToolsServer {
pub fn new(root: PathBuf) -> Self {
Self::with_executable(root, None, START_TIMEOUT)
}
fn with_executable(root: PathBuf, executable: Option<PathBuf>, timeout: Duration) -> Self {
Self(Arc::new(Shared { root, executable, timeout, state: Mutex::default(), changed: Condvar::new() }))
}
/// The server's address, starting it if none runs. Blocks until it is known.
pub fn url(&self) -> Result<String, String> {
let shared = &self.0;
let deadline = Instant::now() + shared.timeout;
let mut state = shared.state.lock();
if matches!(state.status, Status::Stopped | Status::Failed(_)) {
state.generation += 1;
state.status = Status::Starting;
let (shared, generation) = (shared.clone(), state.generation);
std::thread::spawn(move || run(&shared, generation));
}
loop {
match &state.status {
Status::Ready(url) => return Ok(url.clone()),
Status::Failed(message) => return Err(message.clone()),
Status::Stopped => return Err("Flutter DevTools was stopped".into()),
Status::Starting => {}
}
if shared.changed.wait_until(&mut state, deadline).timed_out() {
state.shut_down();
let message = "Flutter DevTools did not start in time".to_owned();
state.status = Status::Failed(message.clone());
shared.changed.notify_all();
return Err(message);
}
}
}
/// Ends the server (project closed, or no longer trusted).
pub fn stop(&self) {
let mut state = self.0.state.lock();
state.shut_down();
state.status = Status::Stopped;
self.0.changed.notify_all();
}
/// Ends the server before returning, for a process about to exit.
pub fn kill(&self) {
let mut state = self.0.state.lock();
state.generation += 1;
state.status = Status::Stopped;
if let Some(mut child) = state.child.take() {
kill_tree(&mut child);
}
self.0.changed.notify_all();
}
}
/// One server's whole life, on its own thread.
fn run(shared: &Arc<Shared>, generation: u64) {
let fail = |message: String| {
shared.set(generation, Status::Failed(message));
};
let Some(executable) = shared.executable.clone().or_else(|| dart_executable(&shared.root)) else {
return fail("Dart SDK not found: install Flutter or add it to PATH".into());
};
let mut child = match spawn_watched(&executable, &ARGS, &shared.root) {
Ok(child) => child,
Err(e) => return fail(format!("could not run {}: {e}", executable.display())),
};
let (Some(stdout), Some(stderr)) = (child.stdout.take(), child.stderr.take()) else {
terminate_tree(&mut child, Duration::ZERO);
return fail("no output pipe".into());
};
{
let mut state = shared.state.lock();
if state.generation != generation {
drop(state);
terminate_tree(&mut child, KILL_GRACE);
return;
}
state.child = Some(child);
}
let tail = Arc::new(Mutex::new(VecDeque::with_capacity(OUTPUT_TAIL)));
let errors = {
let tail = tail.clone();
std::thread::spawn(move || {
read_lines(stderr, |line| {
keep_output(&tail, line);
true
});
})
};
read_lines(stdout, |line| match started_port(line) {
Some(port) => shared.set(generation, Status::Ready(format!("http://{HOST}:{port}"))),
None => {
keep_output(&tail, line);
true
}
});
let _ = errors.join();
let mut state = shared.state.lock();
if state.generation != generation {
return;
}
let child = state.child.take();
state.status = if matches!(state.status, Status::Ready(_)) {
Status::Stopped
} else {
let message = Vec::from(std::mem::take(&mut *tail.lock())).join("\n");
Status::Failed(if message.is_empty() { "dart devtools exited".into() } else { message })
};
shared.changed.notify_all();
drop(state);
if let Some(mut child) = child {
std::thread::spawn(move || terminate_tree(&mut child, Duration::ZERO));
}
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn only_server_started_gives_a_port() {
let line =
r#"{"event":"server.started","method":"server.started","params":{"host":"127.0.0.1","port":9100,"pid":1}}"#;
assert_eq!(started_port(line), Some(9100));
assert_eq!(started_port(r#"{"event":"server.dtdStarted","params":{"uri":"ws://x"}}"#), None);
assert_eq!(started_port("Serving DevTools"), None);
}
#[cfg(unix)]
mod process {
use super::*;
use std::os::unix::fs::PermissionsExt;
const STARTED: &str = r#"echo '{"event":"server.started","params":{"port":4242}}'"#;
fn server(dir: &Path, script: &str, timeout: Duration) -> DevToolsServer {
let path = dir.join("dart");
std::fs::write(&path, format!("#!/bin/sh\necho run >> runs\n{script}")).unwrap();
std::fs::set_permissions(&path, std::fs::Permissions::from_mode(0o755)).unwrap();
DevToolsServer::with_executable(dir.to_owned(), Some(path), timeout)
}
fn runs(dir: &Path) -> usize {
std::fs::read_to_string(dir.join("runs")).map_or(0, |s| s.lines().count())
}
fn wait_for(what: &str, done: impl Fn() -> bool) {
let deadline = Instant::now() + Duration::from_secs(10);
while !done() {
assert!(Instant::now() < deadline, "timed out waiting for {what}");
std::thread::sleep(Duration::from_millis(10));
}
}
#[test]
fn a_running_server_is_shared_and_stop_ends_it() {
let dir = tempfile::tempdir().unwrap();
let script = format!("echo \"$*\" > args\necho $$ > pid\n{STARTED}\nexec sleep 30");
let devtools = server(dir.path(), &script, Duration::from_secs(10));
assert_eq!(devtools.url().unwrap(), "http://127.0.0.1:4242");
assert_eq!(devtools.url().unwrap(), "http://127.0.0.1:4242");
assert_eq!(runs(dir.path()), 1);
let args = std::fs::read_to_string(dir.path().join("args")).unwrap();
assert_eq!(args.trim(), ARGS.join(" "));
let pid = std::fs::read_to_string(dir.path().join("pid")).unwrap();
devtools.stop();
let alive = || {
let mut probe = std::process::Command::new("kill");
probe.args(["-0", pid.trim()]).stderr(std::process::Stdio::null()).status().unwrap().success()
};
wait_for("the server to end", || !alive());
}
#[test]
fn a_failure_is_reported_and_only_a_new_request_retries() {
let dir = tempfile::tempdir().unwrap();
let devtools = server(dir.path(), "echo boom >&2\nexit 3", Duration::from_secs(10));
assert_eq!(devtools.url().unwrap_err(), "boom");
std::thread::sleep(Duration::from_millis(100));
assert_eq!(runs(dir.path()), 1);
assert_eq!(devtools.url().unwrap_err(), "boom");
assert_eq!(runs(dir.path()), 2);
}
#[test]
fn a_server_that_exits_is_not_restarted_until_asked() {
let dir = tempfile::tempdir().unwrap();
let devtools = server(dir.path(), STARTED, Duration::from_secs(10));
devtools.url().unwrap();
wait_for("the exit to be noticed", || matches!(devtools.0.state.lock().status, Status::Stopped));
assert_eq!(runs(dir.path()), 1);
devtools.url().unwrap();
assert_eq!(runs(dir.path()), 2);
}
#[test]
fn a_server_that_never_reports_times_out() {
let dir = tempfile::tempdir().unwrap();
let devtools = server(dir.path(), "exec sleep 30", Duration::from_millis(200));
assert_eq!(devtools.url().unwrap_err(), "Flutter DevTools did not start in time");
}
}
}
+17 -11
View File
@@ -8,6 +8,10 @@
//! a watcher in its process group ends the group once the IDE is gone, even after a crash. A
//! daemon that fails stays failed until the user restarts it.
mod devtools;
pub use devtools::DevToolsServer;
use ide_android::AndroidDevice;
use ide_core::event::{FlutterDaemonStatus, FlutterDevice, FlutterDeviceList};
use ide_core::process::{kill_tree, own_group, prepare, terminate_tree};
@@ -227,26 +231,28 @@ fn refresh_adb(shared: &Arc<Shared>, generation: u64) {
});
}
/// `flutter daemon`, ended with its whole process group when process `parent` is gone.
/// A tool that does not end with its stdin, ended with its whole process group when process
/// `parent` is gone.
#[cfg(unix)]
fn daemon_command(executable: &Path, parent: u32) -> Command {
fn watched_command(executable: &Path, args: &[&str], parent: u32) -> Command {
const WATCHED: &str = r#"(while kill -0 "$1" 2>/dev/null; do sleep 5; done; kill -KILL 0) </dev/null >/dev/null 2>&1 &
exec "$2" daemon"#;
shift
exec "$@""#;
let mut cmd = Command::new("/bin/sh");
cmd.args(["-c", WATCHED, "sh"]).arg(parent.to_string()).arg(executable);
cmd.args(["-c", WATCHED, "sh"]).arg(parent.to_string()).arg(executable).args(args);
cmd
}
// No watcher on Windows, so a crashed IDE leaves the daemon; a Job Object would cover it.
// No watcher on Windows, so a crashed IDE leaves the tool; a Job Object would cover it.
#[cfg(not(unix))]
fn daemon_command(executable: &Path, _parent: u32) -> Command {
fn watched_command(executable: &Path, args: &[&str], _parent: u32) -> Command {
let mut cmd = Command::new(executable);
cmd.arg("daemon");
cmd.args(args);
cmd
}
fn spawn_daemon(executable: &Path, root: &Path) -> std::io::Result<Child> {
let mut cmd = daemon_command(executable, std::process::id());
fn spawn_watched(executable: &Path, args: &[&str], root: &Path) -> std::io::Result<Child> {
let mut cmd = watched_command(executable, args, std::process::id());
cmd.current_dir(root).stdin(Stdio::piped()).stdout(Stdio::piped()).stderr(Stdio::piped());
prepare(own_group(&mut cmd));
cmd.spawn()
@@ -299,7 +305,7 @@ fn run(shared: &Arc<Shared>, generation: u64) {
let Some(executable) = executable else {
return finish(shared, generation, FlutterDaemonStatus::NotInstalled);
};
let mut child = match spawn_daemon(&executable, &shared.root) {
let mut child = match spawn_watched(&executable, &["daemon"], &shared.root) {
Ok(child) => child,
Err(e) => {
let message = format!("could not run {}: {e}", executable.display());
@@ -530,7 +536,7 @@ cat > /dev/null
std::fs::write(&flutter, "#!/bin/sh\necho $$ > pid\nexec sleep 60\n").unwrap();
std::fs::set_permissions(&flutter, std::fs::Permissions::from_mode(0o755)).unwrap();
let mut ide = Command::new("sleep").arg("60").spawn().unwrap();
let mut cmd = daemon_command(&flutter, ide.id());
let mut cmd = watched_command(&flutter, &["daemon"], ide.id());
cmd.current_dir(dir.path()).stdin(Stdio::piped());
let mut daemon = own_group(&mut cmd).spawn().unwrap();
wait_for("the daemon", || dir.path().join("pid").is_file());
+3
View File
@@ -344,6 +344,7 @@ impl Host {
project.documents.clear_workspace_edit_history();
project.agents.shutdown();
project.flutter.stop();
project.devtools.stop();
project.notebooks.stop_admission();
// What the closing window started goes with it — the builds and searches it
// asked for, its runs, its shells and its debug sessions — and its language
@@ -464,6 +465,7 @@ impl Host {
self.terminals.kill_all();
for project in self.projects() {
project.flutter.kill();
project.devtools.kill();
}
}
@@ -487,6 +489,7 @@ impl Host {
for project in &projects {
project.files_events_active.store(false, std::sync::atomic::Ordering::Release);
project.flutter.kill();
project.devtools.kill();
}
for project in &projects {
project.plugin_diagnostics.close();
+13 -2
View File
@@ -2,8 +2,8 @@
//! adapter run too, so a remote project lists the devices of its remote machine.
use crate::Host;
use ide_command::command;
use ide_core::IdeResult;
use ide_core::event::FlutterDeviceList;
use ide_core::{IdeError, IdeResult};
/// The project's Flutter devices, starting its `flutter daemon` on first use. Changes arrive as
/// `IdeEvent::FlutterDevices`.
@@ -25,4 +25,15 @@ pub fn flutter_daemon_restart(host: &Host, window: &str) -> IdeResult<FlutterDev
Ok(host.project(window)?.flutter.restart())
}
ide_command::domain!(flutter: flutter_devices, flutter_devices_refresh, flutter_daemon_restart);
/// The address of the project's DevTools server, started on first use. A server that failed or
/// exited is only started again by the next request.
#[command(trust = trusted)]
pub async fn flutter_devtools_url(host: &Host, window: &str) -> IdeResult<String> {
let project = host.project(window)?;
tokio::task::spawn_blocking(move || project.devtools.url())
.await
.map_err(|e| IdeError::internal(e.to_string()))?
.map_err(IdeError::unavailable)
}
ide_command::domain!(flutter: flutter_devices, flutter_devices_refresh, flutter_daemon_restart, flutter_devtools_url);
+4
View File
@@ -63,6 +63,8 @@ pub struct Project {
pub notebooks: Arc<crate::notebook::NotebookService>,
/// Flutter's devices; its daemon starts when the UI first asks for them.
pub(crate) flutter: ide_flutter::FlutterDaemon,
/// Flutter DevTools; its server starts when the UI first asks for it.
pub(crate) devtools: ide_flutter::DevToolsServer,
pub(crate) kotlin_bridge: Option<Arc<crate::kotlin_bridge::KotlinBridge>>,
pub(crate) phpstan: Option<Arc<crate::phpstan::Phpstan>>,
pub(crate) watcher: Arc<Watcher>,
@@ -605,6 +607,7 @@ impl Host {
plugin_diagnostics,
trusted,
flutter: ide_flutter::FlutterDaemon::new(root.clone(), sink.clone()),
devtools: ide_flutter::DevToolsServer::new(root.clone()),
root,
sink,
languages,
@@ -818,6 +821,7 @@ impl Host {
plugin_diagnostics,
trusted: Arc::new(AtomicBool::new(false)),
flutter: ide_flutter::FlutterDaemon::new(dir.clone(), sink.clone()),
devtools: ide_flutter::DevToolsServer::new(dir.clone()),
sink,
languages,
settings,
+1
View File
@@ -283,6 +283,7 @@ impl crate::Host {
self.environment.direnv_closed(&project.root);
project.agents.shutdown();
project.flutter.stop();
project.devtools.stop();
self.processes.kill_project(&project.root);
project.notebooks.restrict().await;
let windows: Vec<_> = self
+15 -1
View File
@@ -749,7 +749,7 @@ fn build_project_window(app: &AppHandle, mut config: WindowConfig) -> IdeResult<
#[cfg(target_os = "linux")]
let show_after_build = crate::linux_window_state::prepare(app, &mut config);
let window = WebviewWindowBuilder::from_config(app, &config)
.and_then(|b| dev_font_preferences(b).build())
.and_then(|b| dev_font_preferences(b).on_new_window(open_popup_in_browser).build())
.map_err(|e| IdeError::internal(format!("cannot create window: {e}")))?;
#[cfg(target_os = "linux")]
decorate_csd(&window);
@@ -2080,6 +2080,20 @@ fn centered(px: f64, py: f64, pw: f64, ph: f64, w: f64, h: f64) -> (f64, f64) {
(px + (pw - w) / 2.0, py + ((ph - h) / 2.0).max(0.0))
}
/// A link in an embedded page that asks for a new window (Flutter DevTools' documentation links)
/// opens in the system browser; the IDE itself never needs such a window.
fn open_popup_in_browser<R: tauri::Runtime>(
url: tauri::Url,
_features: tauri::webview::NewWindowFeatures,
) -> tauri::webview::NewWindowResponse<R> {
if matches!(url.scheme(), "http" | "https")
&& let Err(e) = tauri_plugin_opener::open_url(url.as_str(), None::<&str>)
{
tracing::warn!("cannot open {url}: {e}");
}
tauri::webview::NewWindowResponse::Deny
}
/// Reproduce WKWebView's user-font restriction before WKWebView creation. The
/// private selector and environment override are absent from release builds.
#[cfg(all(debug_assertions, target_os = "macos"))]
+1
View File
@@ -251,6 +251,7 @@ find_symbols_named always project_host bin
flutter_daemon_restart trusted project_host bindings sync
flutter_devices trusted project_host bindings sync
flutter_devices_refresh trusted project_host bindings sync
flutter_devtools_url trusted project_host bindings async
fs_compare_directories always project_host bindings async
fs_copy always project_host bindings async
fs_copy_merge always project_host bindings async
+11
View File
@@ -616,6 +616,11 @@ export const commands = {
flutterDevices: () => typedError<FlutterDeviceList, IdeError>(__TAURI_INVOKE("flutter_devices")),
/** Looks at adb again, for Android devices Flutter doesn't report (awaiting authorization, offline). */
flutterDevicesRefresh: () => typedError<null, IdeError>(__TAURI_INVOKE("flutter_devices_refresh")),
/**
* The address of the project's DevTools server, started on first use. A server that failed or
* exited is only started again by the next request.
*/
flutterDevtoolsUrl: () => typedError<string, IdeError>(__TAURI_INVOKE("flutter_devtools_url")),
fsCompareDirectories: (left: string, right: string, request: RequestId, onProgress: Channel<DirectoryCompareProgress>) => typedError<DirectoryCompareEntry[], IdeError>(__TAURI_INVOKE("fs_compare_directories", { left, right, request, onProgress })),
fsCopy: (from: string, to: string) => typedError<null, IdeError>(__TAURI_INVOKE("fs_copy", { from, to })),
fsCopyMerge: (sourceRoot: string, destinationRoot: string, path: string, overwrite: boolean) => typedError<null, IdeError>(__TAURI_INVOKE("fs_copy_merge", { sourceRoot, destinationRoot, path, overwrite })),
@@ -4784,6 +4789,12 @@ export type DebugEvent =
* a Flutter app that can take a hot reload now. The plain Dart adapter never sends it.
*/
{ kind: "flutterAppStarted" } |
/** The VM Service of a Flutter session's app, which DevTools connects to. */
{ kind: "flutterVmService"; uri: string;
/** The Flutter device the app runs on. */
device: string | null } |
/** Flutter's inspector selected a widget: its source, 0-based. */
{ kind: "flutterNavigate"; path: IpcPath; line: number; column: number } |
/** The session's capabilities changed after it started: fetch them again. */
{ kind: "capabilities" } |
/**
@@ -0,0 +1,93 @@
import { beforeEach, describe, expect, it, vi } from "vitest";
const openUrl = vi.hoisted(() => vi.fn(async (_url: string) => {}));
vi.mock("@/platform/openUrl", () => ({ openExternalUrl: openUrl }));
const remote = vi.hoisted(() => ({ on: false }));
vi.mock("@/platform/remote", async (importOriginal) => ({
...(await importOriginal<typeof import("@/platform/remote")>()),
isRemoteWindow: () => remote.on,
}));
const devtoolsUrl = vi.hoisted(() => vi.fn());
vi.mock("@/platform/ipc", async (importOriginal) => {
const real = await importOriginal<typeof import("@/platform/ipc")>();
return { ...real, commands: { ...real.commands, flutterDevtoolsUrl: devtoolsUrl } };
});
const openFile = vi.hoisted(() => vi.fn(async () => {}));
const notes = vi.hoisted(() => [] as Array<{ title: string; body?: unknown }>);
vi.mock("@/workbench/contributions", async (importOriginal) => ({
...(await importOriginal<typeof import("@/workbench/contributions")>()),
maybeEditorService: () => ({ openFile }),
notifications: () => ({ notify: (n: (typeof notes)[number]) => void notes.push(n) }),
}));
import { executeAction } from "@/platform/actions";
import { getContext } from "@/platform/context";
import type { DebugSessionId } from "@/platform/ipc";
import { registerDebugActions } from "../actions";
import { handleDebugEvent, publishContext, useDebug, type DebugSession } from "../state";
const id = 7 as DebugSessionId;
const uri = "ws://127.0.0.1:5/a=/ws";
describe("Flutter DevTools", () => {
let dispose = () => {};
beforeEach(() => {
dispose();
dispose = registerDebugActions();
vi.clearAllMocks();
notes.length = 0;
remote.on = false;
devtoolsUrl.mockResolvedValue({ status: "ok", data: "http://127.0.0.1:9100" });
const session = { id, name: "app", adapter: "dart", parent: null, status: "running" } as unknown as DebugSession;
useDebug.setState({ sessions: { [id]: session }, active: id });
publishContext();
});
it("offers DevTools once the session reports its VM Service", () => {
expect(getContext().debugHasVmService).toBe(false);
handleDebugEvent(id, { kind: "flutterVmService", uri, device: null });
publishContext();
expect(useDebug.getState().sessions[id]?.vmServiceUri).toBe(uri);
expect(getContext().debugHasVmService).toBe(true);
});
it("opens the inspector of the session's app in the browser", async () => {
handleDebugEvent(id, { kind: "flutterVmService", uri, device: null });
publishContext();
await executeAction("debug.openDevTools");
await vi.waitFor(() => expect(openUrl).toHaveBeenCalledOnce());
const url = new URL(openUrl.mock.calls[0]![0]);
expect(url.origin + url.pathname).toBe("http://127.0.0.1:9100/inspector");
expect(url.searchParams.get("uri")).toBe(uri);
});
it("reports a server that could not start", async () => {
devtoolsUrl.mockResolvedValue({ status: "error", error: { kind: "unavailable", message: "boom" } });
handleDebugEvent(id, { kind: "flutterVmService", uri, device: null });
publishContext();
await executeAction("debug.openDevTools");
await vi.waitFor(() => expect(notes).toHaveLength(1));
expect(notes[0]).toMatchObject({ title: "Couldn't open Flutter DevTools", body: "boom" });
expect(openUrl).not.toHaveBeenCalled();
});
it("explains that a remote project has no DevTools", async () => {
remote.on = true;
handleDebugEvent(id, { kind: "flutterVmService", uri, device: null });
publishContext();
await executeAction("debug.openDevTools");
await vi.waitFor(() => expect(notes).toHaveLength(1));
expect(devtoolsUrl).not.toHaveBeenCalled();
expect(openUrl).not.toHaveBeenCalled();
});
it("shows the widget's source without taking the focus", () => {
handleDebugEvent(id, { kind: "flutterNavigate", path: "/app/lib/main.dart", line: 2, column: 4 });
expect(openFile).toHaveBeenCalledWith("/app/lib/main.dart", {
selection: { line: 2, col: 4 },
preview: true,
focus: false,
});
});
});
@@ -0,0 +1,153 @@
import { act, cleanup, render, screen, waitFor } from "@testing-library/react";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
const devtoolsUrl = vi.hoisted(() => vi.fn());
const readText = vi.hoisted(() => vi.fn());
const remote = vi.hoisted(() => ({ on: false }));
vi.mock("@/platform/ipc", async (importOriginal) => {
const real = await importOriginal<typeof import("@/platform/ipc")>();
return { ...real, commands: { ...real.commands, flutterDevtoolsUrl: devtoolsUrl, fsReadText: readText } };
});
vi.mock("@/platform/remote", async (importOriginal) => ({
...(await importOriginal<typeof import("@/platform/remote")>()),
isRemoteWindow: () => remote.on,
}));
import { emitLocalIdeEvent } from "@/platform/ipc";
import { getContext } from "@/platform/context";
import { useProject } from "@/platform/project";
import { useContributions } from "@/workbench/contributions";
import { useFlutterDevices } from "@/workbench/flutterDevices";
import { DEVTOOLS_WINDOWS, devToolsUrl, refreshDevTools, registerDevToolsWindows } from "../flutter/devTools";
import { useDebug, type DebugSession } from "../state";
import { FlutterDevToolsTabs, FlutterDevToolsView } from "../ui/FlutterDevTools";
const server = "http://127.0.0.1:9100";
const look = { theme: "dark" as const, background: "1e1f22" };
const windowOf = (id: string) => DEVTOOLS_WINDOWS.find((w) => w.id === id)!;
function session(id: number, extra: Partial<DebugSession>): DebugSession {
return { id, name: `s${id}`, adapter: "dart", parent: null, status: "running", ...extra } as unknown as DebugSession;
}
function setSessions(...list: DebugSession[]) {
act(() =>
useDebug.setState({ sessions: Object.fromEntries(list.map((s) => [s.id, s])) as Record<number, DebugSession> }),
);
}
const frames = () => [...document.querySelectorAll("iframe")];
const uriOf = (f: HTMLIFrameElement) => new URL(f.src).searchParams.get("uri");
describe("Flutter DevTools windows", () => {
beforeEach(() => {
devtoolsUrl.mockReset();
devtoolsUrl.mockResolvedValue({ status: "ok", data: server });
useDebug.setState({ sessions: {}, active: null });
remote.on = false;
});
afterEach(cleanup);
it("asks for the pages Android Studio shows", () => {
const query = (id: string) => {
const url = new URL(devToolsUrl(server, windowOf(id), { uri: "ws://a", embedded: look }));
return [url.pathname, url.searchParams.get("embedMode"), url.searchParams.get("hide")];
};
expect(query("flutter-inspector")).toEqual(["/inspector", "one", null]);
expect(query("flutter-deep-links")).toEqual(["/deep-links", "one", null]);
expect(query("flutter-devtools")).toEqual(["/", "many", "home,inspector,deep-links,extensions,debugger"]);
expect(query("flutter-devtools-extensions")).toEqual(["/", "many", "all-except-extensions"]);
const url = new URL(devToolsUrl(server, windowOf("flutter-inspector"), { embedded: look }));
expect(url.searchParams.get("theme")).toBe("dark");
expect(url.searchParams.get("backgroundColor")).toBe("1e1f22");
expect(url.searchParams.has("uri")).toBe(false);
});
it("exists in Flutter projects, run configurations or not", async () => {
const ids = () => [...useContributions.getState().toolWindows.keys()];
const pubspecs: Record<string, string> = {
"/app/pubspec.yaml": "name: app\ndependencies:\n flutter:\n sdk: flutter\n",
"/tool/pubspec.yaml": "name: tool\ndependencies:\n args: ^2.0.0\n",
};
readText.mockImplementation(async (path: string) =>
path in pubspecs ? { status: "ok", data: pubspecs[path] } : { status: "error", error: { kind: "notFound" } },
);
useProject.setState({ project: { root: "/app" } as never });
const dispose = registerDevToolsWindows();
await waitFor(() => expect(ids()).toEqual(expect.arrayContaining(DEVTOOLS_WINDOWS.map((w) => w.id))));
expect(getContext().flutterDevTools).toBe(true);
useProject.setState({ project: { root: "/tool" } as never });
await waitFor(() => expect(ids()).not.toContain("flutter-inspector"));
expect(getContext().flutterDevTools).toBe(false);
// Adding the SDK dependency later brings the windows.
pubspecs["/tool/pubspec.yaml"] += " flutter:\n sdk: flutter\n";
act(() => emitLocalIdeEvent({ type: "fsChanged", created: [], modified: ["/tool/pubspec.yaml"], removed: [] }));
await waitFor(() => expect(ids()).toContain("flutter-inspector"));
useProject.setState({ project: { root: "/empty" } as never });
await waitFor(() => expect(ids()).not.toContain("flutter-inspector"));
dispose();
useProject.setState({ project: null });
});
it("starts no server for a remote window", async () => {
remote.on = true;
render(<FlutterDevToolsView id="flutter-inspector" />);
await screen.findByText("Flutter DevTools isn't available in a remote project yet");
expect(devtoolsUrl).not.toHaveBeenCalled();
});
it("gives the Inspector one page per running app", async () => {
render(
<>
<FlutterDevToolsTabs />
<FlutterDevToolsView id="flutter-inspector" />
</>,
);
await screen.findByText("No running applications");
expect(frames()).toHaveLength(0);
useFlutterDevices.setState({
list: { status: { kind: "ready" }, devices: [{ id: "d1", name: "Pixel" }] } as never,
});
const first = session(1, { vmServiceUri: "ws://one", flutterDevice: "d1" });
const second = session(2, { vmServiceUri: "ws://two", flutterDevice: "macos" });
setSessions(first, second, session(3, {}));
await waitFor(() => expect(frames()).toHaveLength(2));
expect(frames().map(uriOf)).toEqual(["ws://one", "ws://two"]);
expect(frames().map((f) => f.hidden)).toEqual([true, false]);
expect(screen.getByText("Pixel")).toBeTruthy();
expect(screen.getByText("macos")).toBeTruthy();
setSessions(
{ ...first, status: "terminated" } as DebugSession,
{ ...second, status: "terminated" } as DebugSession,
);
await screen.findByText("No running applications");
});
it("keeps the other pages on the latest app and loads them without one", async () => {
render(<FlutterDevToolsView id="flutter-devtools" />);
await waitFor(() => expect(frames()).toHaveLength(1));
expect(uriOf(frames()[0]!)).toBeNull();
setSessions(
session(1, { vmServiceUri: "ws://one" }),
session(2, { vmServiceUri: "ws://two", status: "terminated" } as never),
);
await waitFor(() => expect(uriOf(frames()[0]!)).toBe("ws://two"));
});
it("shows why the server is missing and asks again only on Refresh", async () => {
devtoolsUrl.mockResolvedValue({ status: "error", error: { kind: "unavailable", message: "boom" } });
render(<FlutterDevToolsView id="flutter-deep-links" />);
await screen.findByText(/boom/);
expect(devtoolsUrl).toHaveBeenCalledTimes(1);
devtoolsUrl.mockResolvedValue({ status: "ok", data: server });
act(() => refreshDevTools("flutter-deep-links"));
await waitFor(() => expect(frames()).toHaveLength(1));
expect(devtoolsUrl).toHaveBeenCalledTimes(2);
expect(new URL(frames()[0]!.src).pathname).toBe("/deep-links");
});
});
+41
View File
@@ -15,6 +15,7 @@ import {
import { downloadJdkActions } from "@/platform/jdk";
import { useProject } from "@/platform/project";
import { isRemoteWindow } from "@/platform/remote";
import { openExternalUrl } from "@/platform/openUrl";
import { activeEditor } from "@/editor/api";
import type { EditorView } from "@codemirror/view";
import { maybeEditorService, notifications, showStatusInfo, toolWindowService } from "@/workbench/contributions";
@@ -49,6 +50,7 @@ import { startPageProfile, stopPageProfile } from "./js/profile";
import { activeCapturedSnapshot, openHeapDump, saveHeapDump } from "./heap/heapDumpFiles";
import { browserLaunch, browserLaunchConfig, browserUrl, installedDebugBrowser, isBrowserConfig } from "./browser";
import { warnPinnedFlutterDevice } from "@/workbench/flutterDevices";
import { DEVTOOLS_WINDOWS, devToolsUrl, refreshDevTools } from "./flutter/devTools";
import { debugUnsupportedReason, launchConfigFor, withEnvFiles } from "./launch";
import { attachConfig } from "./attach";
import {
@@ -284,6 +286,20 @@ function browserUnavailable(name: string): boolean {
return true;
}
/** The browser opens on this desktop, which can't reach a server on a remote project's machine. */
async function openDevTools(vmServiceUri: string) {
if (isRemoteWindow()) {
notifications().notify({
group: "run",
level: "warning",
title: "Flutter DevTools isn't available in a remote project yet",
});
return;
}
const server = await call(commands.flutterDevtoolsUrl());
await openExternalUrl(devToolsUrl(server, { page: "inspector" }, { uri: vmServiceUri }));
}
async function startBrowser(config: RunConfig, root: string, show?: boolean) {
if (browserUnavailable(config.name)) return;
const launch = browserLaunchConfig(config, root);
@@ -773,6 +789,31 @@ export function registerDebugActions(): () => void {
if (s) void report("Hot Restart failed", call(commands.debugHotRestart(s.id)));
},
},
{
id: "debug.openDevTools",
title: "Open Flutter DevTools in Browser",
category: "Debug",
icon: "external-link",
description: "Flutter: inspect the running app in the browser",
when: "debugHasVmService",
run: () => {
const s = activeSession();
const uri = s && rootOf(s).vmServiceUri;
if (uri) void report("Couldn't open Flutter DevTools", openDevTools(uri));
},
},
{
id: "debug.refreshDevTools",
title: "Refresh Flutter DevTools",
category: "Debug",
icon: "refresh",
description: "Flutter: load the DevTools page again",
when: "flutterDevTools",
run: (c) => {
const id = c.arg;
for (const w of DEVTOOLS_WINDOWS) if (!id || id === w.id) refreshDevTools(w.id);
},
},
step("debug.stepOver", "Step Over", "over", "step-over"),
step("debug.stepInto", "Step Into", "into", "step-into"),
step("debug.stepOut", "Step Out", "out", "step-out"),
+148
View File
@@ -0,0 +1,148 @@
/**
* Flutter DevTools as tool windows, one per Android Studio window: the same pages, with the same
* parameters, of the project's DevTools server.
*/
import { create } from "zustand";
import { setContext } from "@/platform/context";
import { call, commands, onIdeEvent } from "@/platform/ipc";
import { useProject } from "@/platform/project";
import { lazyComponent } from "@/ui";
import { registerToolWindow } from "@/workbench/contributions";
export interface DevToolsWindow {
id: string;
title: string;
icon: string;
/** Path of the page; empty for DevTools' own navigation. */
page: string;
/** Screens left out of that navigation. */
hide?: string;
/** Which app the page connects to: one page per app, the latest app, or none. */
app: "each" | "latest" | "none";
}
// In Android Studio's stripe order.
export const DEVTOOLS_WINDOWS: readonly DevToolsWindow[] = [
{
id: "flutter-deep-links",
title: "Flutter Deep Links",
icon: "toolwindow-flutter-deep-links",
page: "deep-links",
app: "none",
},
{
id: "flutter-devtools",
title: "Flutter DevTools",
icon: "toolwindow-flutter-devtools",
page: "",
hide: "home,inspector,deep-links,extensions,debugger",
app: "latest",
},
{
id: "flutter-devtools-extensions",
title: "Flutter DevTools Extensions",
icon: "toolwindow-flutter-extensions",
page: "",
hide: "all-except-extensions",
app: "latest",
},
{
id: "flutter-inspector",
title: "Flutter Inspector",
icon: "toolwindow-flutter-inspector",
page: "inspector",
app: "each",
},
];
export interface DevToolsLook {
theme: "light" | "dark";
/** Hex digits, without `#`. */
background?: string;
}
/** The IDE's look, for a page about to load. Like Android Studio, a loaded page keeps its own. */
export function currentDevToolsLook(root = document.documentElement): DevToolsLook {
const background = /^#([0-9a-f]{6})$/i.exec(getComputedStyle(root).getPropertyValue("--bg-editor").trim())?.[1];
return { theme: root.dataset.theme === "light" ? "light" : "dark", ...(background ? { background } : {}) };
}
/** A DevTools page; with `embedded`, the form for a tool window. */
export function devToolsUrl(
server: string,
window: Pick<DevToolsWindow, "page" | "hide">,
{ uri, embedded }: { uri?: string; embedded?: DevToolsLook },
): string {
const query = new URLSearchParams({ ide: "OpenIDEA" });
if (embedded) {
query.set("embedMode", window.hide ? "many" : "one");
if (window.hide) query.set("hide", window.hide);
query.set("theme", embedded.theme);
if (embedded.background) query.set("backgroundColor", embedded.background);
}
if (uri) query.set("uri", uri);
return `${server}/${window.page}?${query}`;
}
/** Bumped by Refresh, per window: the page loads again, on a server started anew if it is gone. */
export const useDevToolsRefresh = create<Record<string, number>>(() => ({}));
export function refreshDevTools(id: string) {
useDevToolsRefresh.setState((s) => ({ [id]: (s[id] ?? 0) + 1 }));
}
const view = (name: "FlutterDevToolsView" | "FlutterDevToolsTabs" | "FlutterDevToolsRefresh") =>
lazyComponent(() => import("../ui/FlutterDevTools").then((m) => m[name]));
/** A Flutter project's `pubspec.yaml`, by the rule the run and debug backends use. */
export const isFlutterPubspec = (text: string) => text.includes("sdk: flutter");
/** Keeps the tool windows registered while the project's root `pubspec.yaml` depends on Flutter. */
export function registerDevToolsWindows(): () => void {
let dispose: (() => void)[] | null = null;
const sync = (flutter: boolean) => {
setContext("flutterDevTools", flutter);
if (!flutter) {
dispose?.forEach((d) => d());
dispose = null;
return;
}
dispose ??= DEVTOOLS_WINDOWS.map((w, i) =>
registerToolWindow({
id: w.id,
title: w.title,
icon: w.icon,
anchor: "right",
order: 40 + i,
component: view("FlutterDevToolsView"),
headerActions: view("FlutterDevToolsRefresh"),
...(w.app === "each" ? { headerContent: view("FlutterDevToolsTabs") } : {}),
}),
);
};
let pubspec: string | null = null;
let check = 0;
const load = () => {
const root = useProject.getState().project?.root;
const seq = ++check;
pubspec = root ? `${root}/pubspec.yaml` : null;
if (!pubspec) return sync(false);
call(commands.fsReadText(pubspec)).then(
(text) => seq === check && sync(isFlutterPubspec(text)),
() => seq === check && sync(false),
);
};
load();
const offProject = useProject.subscribe((s, prev) => {
if (s.project?.root !== prev.project?.root) load();
});
const offFs = onIdeEvent("fsChanged", (e) => {
if (pubspec && [...e.created, ...e.modified, ...e.removed].includes(pubspec)) load();
});
return () => {
offProject();
offFs();
check++;
sync(false);
};
}
+2
View File
@@ -18,6 +18,7 @@ import {
useDebugRunSessions,
} from "@/workbench/contributions";
import { registerDebugActions } from "./actions";
import { registerDevToolsWindows } from "./flutter/devTools";
import { registerDebugTabActions } from "./tabActions";
import { loadBreakpoints } from "./breakpoints/store";
import { loadExceptionBreakpoints } from "./breakpoints/exceptions";
@@ -90,6 +91,7 @@ export function activate(): () => void {
() => useDebugRunSessions.setState({ sessions: [], serviceSessions: [], Console: null }),
registerDebugActions(),
registerDebugTabActions(),
registerDevToolsWindows(),
// Remote JVM Debug, Go Remote, …: Run/Debug Configurations › Add New Configuration.
...REMOTE_TYPES.map(registerRunConfigType),
registerRunConfigType(jsBrowserType),
+16
View File
@@ -94,6 +94,10 @@ export interface DebugSession {
caps: DebugCapabilities | null;
/** State of the backend that reads a JVM's objects; absent until the backend reports one. */
jvmBackend?: JvmBackendState;
/** Flutter: the app's VM Service, which DevTools connects to. */
vmServiceUri?: string;
/** Flutter: the device the app runs on. */
flutterDevice?: string | null;
/** A cancelled JDT build may have lost class-file deltas needed by this session. */
hotSwapNeedsRestart?: boolean;
/** `flutter debug_adapter` reported the app as started: it can take a hot reload. */
@@ -410,6 +414,7 @@ export function publishContext() {
"debugCanHotSwap",
Object.values(useDebug.getState().sessions).some((x) => isLive(x) && !!x.caps?.hotCodeReplace),
);
setContext("debugHasVmService", !!s && isLive(s) && !!rootOf(s).vmServiceUri);
// Refresh Memory View acts on the selected session only.
setContext("debugHasJvmMemory", !!s && isLive(s) && sessionSupports("jvmMemory", s));
setContext("debugHasJsPage", !!s && isLive(s) && sessionSupports("jsPage", s));
@@ -1397,6 +1402,17 @@ export function handleDebugEvent(id: DebugSessionId, event: DebugEvent) {
case "jsNetwork":
queueNetworkEvent(id, event.event);
break;
case "flutterVmService":
patch(id, { vmServiceUri: event.uri, flutterDevice: event.device });
break;
case "flutterNavigate":
// Focus stays in the inspector, where the next widget gets picked.
void maybeEditorService()?.openFile(event.path, {
selection: { line: event.line, col: event.column },
preview: true,
focus: false,
});
break;
case "jsNetworkUnavailable":
setRefused(id, "network", "");
break;
@@ -233,6 +233,7 @@ export function DebugToolWindow() {
<>
<ToolButton action="debug.hotReload" icon="hot-reload" />
<ToolButton action="debug.hotRestart" icon="refresh" />
{rootOf(active).vmServiceUri && <ToolButton action="debug.openDevTools" icon="external-link" />}
<span className={styles.sep} aria-hidden />
</>
)}
@@ -0,0 +1,30 @@
.pane {
position: relative;
width: 100%;
height: 100%;
min-height: 0;
background: var(--bg-editor, var(--bg-app));
}
.frame {
display: block;
width: 100%;
height: 100%;
border: 0;
background: var(--bg-editor, var(--bg-app));
}
.frame[hidden] {
display: none;
}
.message {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
padding: 16px;
color: var(--fg-muted);
font-family: var(--font-ui);
text-align: center;
}
@@ -0,0 +1,159 @@
/** The content of the Flutter DevTools tool windows: a page of the project's DevTools server. */
import { useEffect, useMemo, useState } from "react";
import { create } from "zustand";
import { useTx } from "@/platform/i18n";
import { call, commands, type DebugSessionId } from "@/platform/ipc";
import { useProject } from "@/platform/project";
import { isRemoteWindow } from "@/platform/remote";
import { IconButton, Tabs, type TabItem } from "@/ui";
import { useFlutterDevices } from "@/workbench/flutterDevices";
import {
currentDevToolsLook,
DEVTOOLS_WINDOWS,
devToolsUrl,
useDevToolsRefresh,
type DevToolsWindow,
} from "../flutter/devTools";
import { isLive, useDebug, type DebugSession } from "../state";
import styles from "./FlutterDevTools.module.css";
const SANDBOX = "allow-scripts allow-same-origin allow-forms allow-popups allow-downloads";
/** The Inspector tab chosen by hand; a new or remaining app is shown otherwise. */
const useInspectorTab = create<{ session: DebugSessionId | null }>(() => ({ session: null }));
const hasApp = (s: DebugSession) => !!s.vmServiceUri;
function useRunningApps(): DebugSession[] {
const sessions = useDebug((s) => s.sessions);
return useMemo(() => Object.values(sessions).filter((s) => hasApp(s) && isLive(s)), [sessions]);
}
function shownApp(apps: DebugSession[], chosen: DebugSessionId | null) {
return apps.find((s) => s.id === chosen) ?? apps.at(-1);
}
type Server = { url: string } | { error: string };
/** The server's address; asks again on Refresh and when the project's trust changes. */
function useDevToolsServer(refresh: number): Server | null {
const trusted = useProject((s) => s.project?.trusted);
const request = `${refresh}/${trusted}`;
const [answer, setAnswer] = useState<{ request: string; server: Server } | null>(null);
useEffect(() => {
let live = true;
call(commands.flutterDevtoolsUrl()).then(
(url) => live && setAnswer({ request, server: { url } }),
(e: unknown) => live && setAnswer({ request, server: { error: e instanceof Error ? e.message : String(e) } }),
);
return () => {
live = false;
};
}, [request]);
return answer?.request === request ? answer.server : null;
}
function Frame({
server,
window,
uri,
hidden,
}: {
server: string;
window: DevToolsWindow;
uri?: string;
hidden?: boolean;
}) {
const tx = useTx();
const [look] = useState(() => currentDevToolsLook());
return (
<iframe
className={styles.frame}
title={tx(window.title)}
src={devToolsUrl(server, window, { uri, embedded: look })}
sandbox={SANDBOX}
hidden={hidden}
/>
);
}
function Inspector({ server, window }: { server: string; window: DevToolsWindow }) {
const tx = useTx();
const apps = useRunningApps();
const chosen = useInspectorTab((s) => s.session);
const shown = shownApp(apps, chosen);
if (!shown) return <div className={styles.message}>{tx("No running applications")}</div>;
// One page per app, kept while another is shown: each holds its own selection.
return apps.map((app) => (
<Frame key={app.id} server={server} window={window} uri={app.vmServiceUri} hidden={app !== shown} />
));
}
function LatestApp({ server, window }: { server: string; window: DevToolsWindow }) {
// Ended sessions count: the page stays on the last app until another one starts.
const uri = useDebug((s) => Object.values(s.sessions).findLast(hasApp)?.vmServiceUri);
return <Frame server={server} window={window} uri={uri} />;
}
export function FlutterDevToolsView({ id }: { id: string }) {
const tx = useTx();
// No request in a remote window: the server would start on the remote machine, out of reach.
const content = isRemoteWindow() ? (
<div className={styles.message}>{tx("Flutter DevTools isn't available in a remote project yet")}</div>
) : (
<LocalView id={id} />
);
return <div className={styles.pane}>{content}</div>;
}
function LocalView({ id }: { id: string }) {
const tx = useTx();
const window = DEVTOOLS_WINDOWS.find((w) => w.id === id)!;
const refresh = useDevToolsRefresh((s) => s[id] ?? 0);
const server = useDevToolsServer(refresh);
if (!server) return <div className={styles.message}>{tx("Loading Flutter DevTools…")}</div>;
if ("error" in server)
return (
<div className={styles.message}>
{tx("Flutter DevTools start-up failed")}: {server.error}
</div>
);
if (window.app === "each") return <Inspector key={refresh} server={server.url} window={window} />;
if (window.app === "latest") return <LatestApp key={refresh} server={server.url} window={window} />;
return <Frame key={refresh} server={server.url} window={window} />;
}
/** One tab per running app, named after its device. */
export function FlutterDevToolsTabs() {
const tx = useTx();
const apps = useRunningApps();
const chosen = useInspectorTab((s) => s.session);
const devices = useFlutterDevices((s) => s.list?.devices);
if (!apps.length) return null;
const items: TabItem[] = apps.map((app) => {
const device = devices?.find((d) => d.id === app.flutterDevice)?.name ?? app.flutterDevice ?? app.name;
return { id: String(app.id), label: device, text: device };
});
return (
<Tabs
variant="compact"
aria-label={tx("Running applications")}
items={items}
activeId={String(shownApp(apps, chosen)?.id)}
onSelect={(id) => useInspectorTab.setState({ session: +id as DebugSessionId })}
/>
);
}
export function FlutterDevToolsRefresh({ id }: { id: string }) {
return (
<IconButton
icon="refresh"
size="small"
iconSize={16}
action="debug.refreshDevTools"
actionArg={id}
title="Refresh Flutter DevTools"
/>
);
}
+1
View File
@@ -255,6 +255,7 @@ describe("catalogs", () => {
const OWN_SCRIPT = new Set(["zh", "ko"]);
/** Product names intentionally kept as written in every locale. */
const SAME_AS_ENGLISH = new Set([
"Flutter DevTools",
"4096 MB",
"6144 MB",
"8192 MB",
+14
View File
@@ -2596,6 +2596,20 @@
"Pinned by “{name}”": "Pinned by “{name}”",
"Flutter device, pinned by “{name}”": "Flutter device, pinned by “{name}”",
"Flutter device “{device}” is not connected": "Flutter device “{device}” is not connected",
"Flutter: inspect the running app in the browser": "Flutter: inspect the running app in the browser",
"Couldn't open Flutter DevTools": "Couldn't open Flutter DevTools",
"Flutter DevTools isn't available in a remote project yet": "Flutter DevTools isn't available in a remote project yet",
"Open Flutter DevTools in Browser": "Open Flutter DevTools in Browser",
"Refresh Flutter DevTools": "Refresh Flutter DevTools",
"Flutter: load the DevTools page again": "Flutter: load the DevTools page again",
"Flutter Inspector": "Flutter Inspector",
"Flutter DevTools": "Flutter DevTools",
"Flutter Deep Links": "Flutter Deep Links",
"Flutter DevTools Extensions": "Flutter DevTools Extensions",
"No running applications": "No running applications",
"Running applications": "Running applications",
"Loading Flutter DevTools…": "Loading Flutter DevTools…",
"Flutter DevTools start-up failed": "Flutter DevTools start-up failed",
"“{name}” is pinned to this device, so the launch may fail. Connect it, or change the device in the run configuration.": "“{name}” is pinned to this device, so the launch may fail. Connect it, or change the device in the run configuration.",
"Run a Flutter app on a device": "Run a Flutter app on a device",
"Entry point": "Entry point",
+14
View File
@@ -8976,6 +8976,20 @@
"Pinned by “{name}”": "已由“{name}”固定",
"Flutter device, pinned by “{name}”": "Flutter 设备,已由“{name}”固定",
"Flutter device “{device}” is not connected": "Flutter 设备“{device}”未连接",
"Flutter: inspect the running app in the browser": "Flutter:在浏览器中检查正在运行的应用",
"Couldn't open Flutter DevTools": "无法打开 Flutter DevTools",
"Flutter DevTools isn't available in a remote project yet": "远程项目暂不支持 Flutter DevTools",
"Open Flutter DevTools in Browser": "在浏览器中打开 Flutter DevTools",
"Refresh Flutter DevTools": "刷新 Flutter DevTools",
"Flutter: load the DevTools page again": "Flutter:重新加载 DevTools 页面",
"Flutter Inspector": "Flutter 检查器",
"Flutter DevTools": "Flutter DevTools",
"Flutter Deep Links": "Flutter 深层链接",
"Flutter DevTools Extensions": "Flutter DevTools 扩展",
"No running applications": "没有正在运行的应用",
"Running applications": "正在运行的应用",
"Loading Flutter DevTools…": "正在加载 Flutter DevTools…",
"Flutter DevTools start-up failed": "Flutter DevTools 启动失败",
"“{name}” is pinned to this device, so the launch may fail. Connect it, or change the device in the run configuration.": "“{name}”固定使用此设备,启动可能会失败。请连接该设备,或在运行配置中更改设备。",
"Run a Flutter app on a device": "在设备上运行 Flutter 应用",
"Entry point": "入口文件",
+8
View File
@@ -0,0 +1,8 @@
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M7.09995 11.5H4.39995C3.49995 11.5 2.69995 11.2 2.09995 10.6C1.49995 9.99998 1.19995 9.19998 1.19995 8.29998C1.19995 7.39998 1.49995 6.69998 2.09995 5.99998C2.69995 5.39998 3.49995 5.09998 4.39995 5.09998H7.09995C7.39995 5.09998 7.59995 5.29998 7.59995 5.59998C7.59995 5.89998 7.39995 6.09998 7.09995 6.09998H4.39995C3.79995 6.09998 3.29995 6.29998 2.79995 6.69998C2.39995 7.09998 2.19995 7.59998 2.19995 8.29998C2.19995 8.99998 2.39995 9.39998 2.79995 9.89998C3.19995 10.4 3.69995 10.5 4.39995 10.5H7.09995C7.39995 10.5 7.59995 10.7 7.59995 11C7.59995 11.3 7.39995 11.5 7.09995 11.5Z" fill="#6C707E"/>
<path d="M10.7 8.79993H5.30005C5.00005 8.79993 4.80005 8.59993 4.80005 8.29993C4.80005 7.99993 5.00005 7.79993 5.30005 7.79993H10.7C11 7.79993 11.2 7.99993 11.2 8.29993C11.2 8.59993 11 8.79993 10.7 8.79993Z" fill="#6C707E"/>
<path d="M11.7 12.7L15.4 9H14L11 12L11.7 12.7Z" fill="#3574F0"/>
<path d="M15.4 12H14L12.5 13.5L14 15H15.4L13.9 13.5L15.4 12Z" fill="#3574F0"/>
<path d="M10.2999 11.3L11.0999 10.5H8.8999C8.5999 10.5 8.3999 10.7 8.3999 11C8.3999 11.3 8.5999 11.5 8.8999 11.5H10.0999L10.2999 11.3Z" fill="#6C707E"/>
<path d="M8.8999 6.09998H11.5999C12.1999 6.09998 12.6999 6.29998 13.1999 6.69998C13.6999 7.09998 13.7999 7.49998 13.7999 7.99998H14.7999C14.7999 7.19998 14.4999 6.49998 13.8999 5.99998C13.2999 5.39998 12.4999 5.09998 11.5999 5.09998H8.8999C8.5999 5.09998 8.3999 5.29998 8.3999 5.59998C8.3999 5.89998 8.5999 6.09998 8.8999 6.09998Z" fill="#6C707E"/>
</svg>

After

Width:  |  Height:  |  Size: 1.6 KiB

+8
View File
@@ -0,0 +1,8 @@
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M8.87588 14.5752H5.38788C4.19488 14.5752 3.21188 14.1722 2.38288 13.3432C1.55388 12.5142 1.15088 11.5312 1.15088 10.3382C1.15088 9.1442 1.55388 8.1612 2.38288 7.3322C3.21188 6.50319 4.19488 6.10019 5.38788 6.10019H8.87588C9.28988 6.10019 9.62588 6.4362 9.62588 6.8502C9.62588 7.2642 9.28988 7.6002 8.87588 7.6002H5.38788C4.59188 7.6002 3.99188 7.8452 3.44388 8.3932C2.89588 8.9412 2.65088 9.5412 2.65088 10.3382C2.65088 11.1352 2.89588 11.7342 3.44388 12.2822C3.99188 12.8312 4.59188 13.0752 5.38788 13.0752H8.87588C9.28988 13.0752 9.62588 13.4112 9.62588 13.8252C9.62588 14.2392 9.28988 14.5752 8.87588 14.5752Z" fill="#6C707E"/>
<path d="M11.125 7.6H14.612C15.409 7.6 16.009 7.845 16.558 8.393C17.105 8.941 17.35 9.54 17.35 10.338C17.35 10.576 17.32 10.793 17.275 11H17.419H18.791C18.821 10.785 18.85 10.568 18.85 10.338C18.85 9.144 18.447 8.161 17.618 7.332C16.788 6.503 15.805 6.1 14.612 6.1H11.125C10.711 6.1 10.375 6.436 10.375 6.85C10.375 7.264 10.711 7.6 11.125 7.6Z" fill="#6C707E"/>
<path d="M14.9585 13.0463C14.8445 13.0583 14.7345 13.0753 14.6125 13.0753H11.1245C10.7105 13.0753 10.3745 13.4113 10.3745 13.8253C10.3745 14.2393 10.7105 14.5753 11.1245 14.5753H13.4295L14.9585 13.0463Z" fill="#6C707E"/>
<path d="M13.4882 11.0879H6.51318C6.09918 11.0879 5.76318 10.7519 5.76318 10.3379C5.76318 9.92289 6.09918 9.58789 6.51318 9.58789H13.4882C13.9022 9.58789 14.2382 9.92289 14.2382 10.3379C14.2382 10.7519 13.9022 11.0879 13.4882 11.0879Z" fill="#6C707E"/>
<path d="M14.8372 16.1608L14.0452 15.3738L17.4192 11.9998H18.9992L14.8372 16.1608Z" fill="#3574F0"/>
<path d="M18.9988 18.7498H17.4198L15.7048 17.0358L17.4198 15.3218H18.9988L17.2848 17.0358L18.9988 18.7498Z" fill="#3574F0"/>
</svg>

After

Width:  |  Height:  |  Size: 1.8 KiB

@@ -0,0 +1,8 @@
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M8.87588 14.5752H5.38788C4.19488 14.5752 3.21188 14.1722 2.38288 13.3432C1.55388 12.5142 1.15088 11.5312 1.15088 10.3382C1.15088 9.1442 1.55388 8.1612 2.38288 7.3322C3.21188 6.50319 4.19488 6.10019 5.38788 6.10019H8.87588C9.28988 6.10019 9.62588 6.4362 9.62588 6.8502C9.62588 7.2642 9.28988 7.6002 8.87588 7.6002H5.38788C4.59188 7.6002 3.99188 7.8452 3.44388 8.3932C2.89588 8.9412 2.65088 9.5412 2.65088 10.3382C2.65088 11.1352 2.89588 11.7342 3.44388 12.2822C3.99188 12.8312 4.59188 13.0752 5.38788 13.0752H8.87588C9.28988 13.0752 9.62588 13.4112 9.62588 13.8252C9.62588 14.2392 9.28988 14.5752 8.87588 14.5752Z" fill="#CED0D6"/>
<path d="M11.125 7.6H14.612C15.409 7.6 16.009 7.845 16.558 8.393C17.105 8.941 17.35 9.54 17.35 10.338C17.35 10.576 17.32 10.793 17.275 11H17.419H18.791C18.821 10.785 18.85 10.568 18.85 10.338C18.85 9.144 18.447 8.161 17.618 7.332C16.788 6.503 15.805 6.1 14.612 6.1H11.125C10.711 6.1 10.375 6.436 10.375 6.85C10.375 7.264 10.711 7.6 11.125 7.6Z" fill="#CED0D6"/>
<path d="M14.9585 13.0463C14.8445 13.0583 14.7345 13.0753 14.6125 13.0753H11.1245C10.7105 13.0753 10.3745 13.4113 10.3745 13.8253C10.3745 14.2393 10.7105 14.5753 11.1245 14.5753H13.4295L14.9585 13.0463Z" fill="#CED0D6"/>
<path d="M13.4882 11.0879H6.51318C6.09918 11.0879 5.76318 10.7519 5.76318 10.3379C5.76318 9.92289 6.09918 9.58789 6.51318 9.58789H13.4882C13.9022 9.58789 14.2382 9.92289 14.2382 10.3379C14.2382 10.7519 13.9022 11.0879 13.4882 11.0879Z" fill="#CED0D6"/>
<path d="M14.8372 16.1608L14.0452 15.3738L17.4192 11.9998H18.9992L14.8372 16.1608Z" fill="#548AF7"/>
<path d="M18.9988 18.7498H17.4198L15.7048 17.0358L17.4198 15.3218H18.9988L17.2848 17.0358L18.9988 18.7498Z" fill="#548AF7"/>
</svg>

After

Width:  |  Height:  |  Size: 1.8 KiB

+8
View File
@@ -0,0 +1,8 @@
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M7.09995 11.5H4.39995C3.49995 11.5 2.69995 11.2 2.09995 10.6C1.49995 9.99998 1.19995 9.19998 1.19995 8.29998C1.19995 7.39998 1.49995 6.69998 2.09995 5.99998C2.69995 5.39998 3.49995 5.09998 4.39995 5.09998H7.09995C7.39995 5.09998 7.59995 5.29998 7.59995 5.59998C7.59995 5.89998 7.39995 6.09998 7.09995 6.09998H4.39995C3.79995 6.09998 3.29995 6.29998 2.79995 6.69998C2.39995 7.09998 2.19995 7.59998 2.19995 8.29998C2.19995 8.99998 2.39995 9.39998 2.79995 9.89998C3.19995 10.4 3.69995 10.5 4.39995 10.5H7.09995C7.39995 10.5 7.59995 10.7 7.59995 11C7.59995 11.3 7.39995 11.5 7.09995 11.5Z" fill="#CED0D6"/>
<path d="M10.7 8.79993H5.30005C5.00005 8.79993 4.80005 8.59993 4.80005 8.29993C4.80005 7.99993 5.00005 7.79993 5.30005 7.79993H10.7C11 7.79993 11.2 7.99993 11.2 8.29993C11.2 8.59993 11 8.79993 10.7 8.79993Z" fill="#CED0D6"/>
<path d="M11.7 12.7L15.4 9H14L11 12L11.7 12.7Z" fill="#548AF7"/>
<path d="M15.4 12H14L12.5 13.5L14 15H15.4L13.9 13.5L15.4 12Z" fill="#548AF7"/>
<path d="M10.2999 11.3L11.0999 10.5H8.8999C8.5999 10.5 8.3999 10.7 8.3999 11C8.3999 11.3 8.5999 11.5 8.8999 11.5H10.0999L10.2999 11.3Z" fill="#CED0D6"/>
<path d="M8.8999 6.09998H11.5999C12.1999 6.09998 12.6999 6.29998 13.1999 6.69998C13.6999 7.09998 13.7999 7.49998 13.7999 7.99998H14.7999C14.7999 7.19998 14.4999 6.49998 13.8999 5.99998C13.2999 5.39998 12.4999 5.09998 11.5999 5.09998H8.8999C8.5999 5.09998 8.3999 5.29998 8.3999 5.59998C8.3999 5.89998 8.5999 6.09998 8.8999 6.09998Z" fill="#CED0D6"/>
</svg>

After

Width:  |  Height:  |  Size: 1.6 KiB

+7
View File
@@ -0,0 +1,7 @@
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M13.9995 8.99985L10.9995 11.9989L11.7045 12.6989L15.4035 8.99985H13.9995Z" fill="#3574F0"/>
<path d="M13.9996 11.9528L12.4756 13.4768L13.9996 14.9998H15.4036L13.8806 13.4768L15.4036 11.9528H13.9996Z" fill="#3574F0"/>
<path d="M12.17 3.76318L11.837 3.43018L13.072 2.38018L13.22 2.52718L12.17 3.76318ZM5.216 11.1402L2.458 13.8982C2.38 13.9762 2.253 13.9762 2.175 13.8982L1.751 13.4742C1.673 13.3962 1.673 13.2692 1.751 13.1912L4.508 10.4332C4.547 10.3942 4.599 10.3752 4.65 10.3752C4.701 10.3752 4.753 10.3942 4.791 10.4332L5.216 10.8582C5.282 10.9252 5.283 11.0742 5.216 11.1402ZM4.653 5.54718C4.543 5.43518 4.387 5.38318 4.229 5.40518L2.829 5.60518C2.824 5.60618 2.819 5.60618 2.814 5.60718L1.893 4.68618C1.921 4.54518 1.957 4.37418 1.994 4.20118L3.046 5.25418C3.242 5.44918 3.558 5.44918 3.753 5.25418L4.753 4.25418C4.949 4.05818 4.949 3.74218 4.753 3.54718L3.703 2.49618L4.186 2.39318L5.104 3.31218L5.105 3.32918L4.905 4.72918C4.883 4.88518 4.935 5.04218 5.046 5.15418L7.27 7.37718L6.874 7.76718L4.653 5.54718ZM14.253 2.14618L13.453 1.34618C13.269 1.16218 12.974 1.15218 12.775 1.31918L10.775 3.01918C10.669 3.11018 10.606 3.24118 10.6 3.38018C10.595 3.52018 10.648 3.65518 10.746 3.75418L10.848 3.85518L7.982 6.67618C7.982 6.67618 5.93 4.62318 5.929 4.62218C5.902 4.59518 5.949 4.46918 5.956 4.43618C6.006 4.18518 6.039 3.93318 6.071 3.67918C6.107 3.39118 6.18 2.97418 5.953 2.74618L4.753 1.54718C4.715 1.50918 4.671 1.47718 4.624 1.45318C4.307 1.29418 3.96 1.40918 3.638 1.48518C3.293 1.56618 2.946 1.63618 2.605 1.73518C2.518 1.76118 2.43 1.78818 2.357 1.84118C2.133 2.00318 2.167 2.37418 2.346 2.55418L3.693 3.90018L3.4 4.19318L2.053 2.84618C1.924 2.71718 1.732 2.66718 1.56 2.72018C1.385 2.77118 1.252 2.91318 1.212 3.09218C1.212 3.09218 1.01 3.99818 0.899996 4.60018V4.90018C0.899996 5.03318 0.952997 5.16018 1.046 5.25418L2.246 6.45318C2.394 6.60218 2.626 6.63918 2.828 6.63118C3.09 6.62118 3.346 6.54118 3.604 6.50418C3.777 6.48018 3.95 6.45518 4.123 6.43018L6.161 8.46818L5.131 9.48218C4.691 9.28918 4.161 9.36618 3.801 9.72618L1.043 12.4842C0.575996 12.9522 0.575996 13.7142 1.044 14.1812L1.468 14.6052C1.702 14.8402 2.009 14.9562 2.316 14.9562C2.624 14.9562 2.931 14.8402 3.165 14.6052L5.922 11.8472C6.149 11.6222 6.274 11.3202 6.274 11.0002C6.274 10.8082 6.216 10.6292 6.131 10.4632C6.131 10.4632 11.839 4.84518 11.847 4.85318C11.941 4.94818 12.068 5.00018 12.221 4.99918C12.36 4.99318 12.491 4.93018 12.581 4.82418L14.28 2.82418C14.449 2.62518 14.438 2.33018 14.253 2.14618Z" fill="#6C707E"/>
<path d="M8.6499 8.75732L10.7589 10.8253L11.4659 10.1183L9.3499 8.04332L8.6499 8.75732Z" fill="#6C707E"/>
<path d="M7.74609 9.7539L9.78809 11.7959L10.2931 11.2919L10.4951 11.0889L8.45309 9.0469L7.74609 9.7539Z" fill="#6C707E"/>
</svg>

After

Width:  |  Height:  |  Size: 2.8 KiB

+14
View File
@@ -0,0 +1,14 @@
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_54_1508)">
<path d="M6.34416 13.9629L2.79916 17.5089C2.74916 17.5599 2.63616 17.5599 2.58716 17.5089L2.04116 16.9629C1.99116 16.9129 1.99116 16.8009 2.04116 16.7509L5.58716 13.2049C5.62316 13.1689 5.66416 13.1609 5.69316 13.1609C5.72116 13.1609 5.76216 13.1689 5.79816 13.2049L6.34416 13.7509C6.39416 13.8009 6.39416 13.9129 6.34416 13.9629ZM5.24216 7.29986L3.44316 7.55686C3.31416 7.68586 3.05716 7.55686 3.05716 7.55686L1.51416 6.01486V5.62886C1.64216 4.98586 1.90016 3.82886 1.90016 3.82886L3.02516 4.95386L4.08516 6.01486L5.14616 4.95386L5.37116 4.72886L3.18516 2.54286L4.98516 2.15686C5.11416 2.02886 5.37116 2.15686 5.37116 2.15686L6.91416 3.69986V4.08586L6.65716 5.88586L9.62616 8.85486L8.20016 10.2579L5.24216 7.29986ZM16.5152 2.91986L16.5652 2.96986L15.3542 4.39486L15.0912 4.13086L16.5152 2.91986ZM14.7522 5.91386L14.8692 6.03086C15.0102 6.17186 15.2012 6.25086 15.3992 6.25086C15.4092 6.25086 15.4202 6.25086 15.4292 6.24986C15.6382 6.24086 15.8352 6.14586 15.9702 5.98586L18.1562 3.41486C18.4092 3.11686 18.3912 2.67486 18.1152 2.39886L17.0872 1.36986C16.8102 1.09186 16.3682 1.07586 16.0712 1.32886L13.5002 3.51486C13.3402 3.64986 13.2442 3.84586 13.2362 4.05586C13.2272 4.26486 13.3062 4.46786 13.4552 4.61586L13.6922 4.85286L10.6952 7.80286L8.24816 5.35586L8.39916 4.29786C8.40916 4.22786 8.41416 4.15686 8.41416 4.08586V3.69986C8.41416 3.30186 8.25616 2.92086 7.97516 2.63986L6.43216 1.09686C6.31816 0.982857 6.18616 0.887859 6.04216 0.815859C5.56016 0.57486 5.04916 0.556858 4.59716 0.706858L2.87116 1.07586C2.33416 1.19186 1.90216 1.59086 1.74716 2.11786C1.72416 2.19586 1.72116 2.27486 1.71116 2.35386C1.63416 2.36386 1.55616 2.36686 1.48016 2.38886C0.95516 2.54186 0.55416 2.96886 0.43516 3.50386C0.43516 3.50386 0.17416 4.68086 0.04316 5.33486C0.02416 5.43186 0.0141602 5.52986 0.0141602 5.62886V6.01486C0.0141602 6.41186 0.17216 6.79386 0.45316 7.07486L1.99616 8.61786C2.11016 8.73186 2.24216 8.82686 2.38616 8.89886C2.84716 9.12986 3.33516 9.15386 3.77416 9.02486L4.71216 8.89086L7.13116 11.3099L6.53016 11.9019C5.90116 11.5429 5.05016 11.6199 4.52616 12.1449L0.98016 15.6909C0.66916 16.0019 0.49716 16.4159 0.49716 16.8569C0.49716 17.2979 0.66916 17.7119 0.98016 18.0239L1.52616 18.5689C1.83716 18.8809 2.25216 19.0529 2.69216 19.0529C3.13316 19.0529 3.54816 18.8809 3.85916 18.5689L7.40516 15.0239C7.96916 14.4579 8.03716 13.5829 7.61016 12.9419L14.7522 5.91386Z" fill="#6C707E"/>
<path d="M12.3186 9.42695L11.2856 10.5149L13.8156 12.9189L14.8776 11.8579L12.3186 9.42695Z" fill="#6C707E"/>
<path d="M10.1283 11.8001L9.08325 12.8761L11.5063 15.2281L12.5673 14.1671L10.1283 11.8001Z" fill="#6C707E"/>
<path d="M16.8565 19.7139H18.6615L16.7035 17.7559L18.6625 15.7969H16.8565L14.8975 17.7559L16.8565 19.7139Z" fill="#3574F0"/>
<path d="M16.8562 12L13.0002 15.855L13.9052 16.755L18.6622 12H16.8562Z" fill="#3574F0"/>
</g>
<defs>
<clipPath id="clip0_54_1508">
<rect width="19" height="20" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 3.0 KiB

@@ -0,0 +1,14 @@
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_54_1520)">
<path d="M6.34416 13.9629L2.79916 17.5089C2.74916 17.5599 2.63616 17.5599 2.58716 17.5089L2.04116 16.9629C1.99116 16.9129 1.99116 16.8009 2.04116 16.7509L5.58716 13.2049C5.62316 13.1689 5.66416 13.1609 5.69316 13.1609C5.72116 13.1609 5.76216 13.1689 5.79816 13.2049L6.34416 13.7509C6.39416 13.8009 6.39416 13.9129 6.34416 13.9629ZM5.24216 7.29986L3.44316 7.55686C3.31416 7.68586 3.05716 7.55686 3.05716 7.55686L1.51416 6.01486V5.62886C1.64216 4.98586 1.90016 3.82886 1.90016 3.82886L3.02516 4.95386L4.08516 6.01486L5.14616 4.95386L5.37116 4.72886L3.18516 2.54286L4.98516 2.15686C5.11416 2.02886 5.37116 2.15686 5.37116 2.15686L6.91416 3.69986V4.08586L6.65716 5.88586L9.62616 8.85486L8.20016 10.2579L5.24216 7.29986ZM16.5152 2.91986L16.5652 2.96986L15.3542 4.39486L15.0912 4.13086L16.5152 2.91986ZM14.7522 5.91386L14.8692 6.03086C15.0102 6.17186 15.2012 6.25086 15.3992 6.25086C15.4092 6.25086 15.4202 6.25086 15.4292 6.24986C15.6382 6.24086 15.8352 6.14586 15.9702 5.98586L18.1562 3.41486C18.4092 3.11686 18.3912 2.67486 18.1152 2.39886L17.0872 1.36986C16.8102 1.09186 16.3682 1.07586 16.0712 1.32886L13.5002 3.51486C13.3402 3.64986 13.2442 3.84586 13.2362 4.05586C13.2272 4.26486 13.3062 4.46786 13.4552 4.61586L13.6922 4.85286L10.6952 7.80286L8.24816 5.35586L8.39916 4.29786C8.40916 4.22786 8.41416 4.15686 8.41416 4.08586V3.69986C8.41416 3.30186 8.25616 2.92086 7.97516 2.63986L6.43216 1.09686C6.31816 0.982857 6.18616 0.887859 6.04216 0.815859C5.56016 0.57486 5.04916 0.556858 4.59716 0.706858L2.87116 1.07586C2.33416 1.19186 1.90216 1.59086 1.74716 2.11786C1.72416 2.19586 1.72116 2.27486 1.71116 2.35386C1.63416 2.36386 1.55616 2.36686 1.48016 2.38886C0.95516 2.54186 0.55416 2.96886 0.43516 3.50386C0.43516 3.50386 0.17416 4.68086 0.04316 5.33486C0.02416 5.43186 0.0141602 5.52986 0.0141602 5.62886V6.01486C0.0141602 6.41186 0.17216 6.79386 0.45316 7.07486L1.99616 8.61786C2.11016 8.73186 2.24216 8.82686 2.38616 8.89886C2.84716 9.12986 3.33516 9.15386 3.77416 9.02486L4.71216 8.89086L7.13116 11.3099L6.53016 11.9019C5.90116 11.5429 5.05016 11.6199 4.52616 12.1449L0.98016 15.6909C0.66916 16.0019 0.49716 16.4159 0.49716 16.8569C0.49716 17.2979 0.66916 17.7119 0.98016 18.0239L1.52616 18.5689C1.83716 18.8809 2.25216 19.0529 2.69216 19.0529C3.13316 19.0529 3.54816 18.8809 3.85916 18.5689L7.40516 15.0239C7.96916 14.4579 8.03716 13.5829 7.61016 12.9419L14.7522 5.91386Z" fill="#CED0D6"/>
<path d="M12.3186 9.42695L11.2856 10.5149L13.8156 12.9189L14.8776 11.8579L12.3186 9.42695Z" fill="#CED0D6"/>
<path d="M10.1283 11.8001L9.08325 12.8761L11.5063 15.2281L12.5673 14.1671L10.1283 11.8001Z" fill="#CED0D6"/>
<path d="M16.8565 19.7139H18.6615L16.7035 17.7559L18.6625 15.7969H16.8565L14.8975 17.7559L16.8565 19.7139Z" fill="#548AF7"/>
<path d="M16.8562 12L13.0002 15.855L13.9052 16.755L18.6622 12H16.8562Z" fill="#548AF7"/>
</g>
<defs>
<clipPath id="clip0_54_1520">
<rect width="19" height="20" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 3.0 KiB

+7
View File
@@ -0,0 +1,7 @@
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M13.9995 8.99985L10.9995 11.9989L11.7045 12.6989L15.4035 8.99985H13.9995Z" fill="#548AF7"/>
<path d="M13.9996 11.9528L12.4756 13.4768L13.9996 14.9998H15.4036L13.8806 13.4768L15.4036 11.9528H13.9996Z" fill="#548AF7"/>
<path d="M12.17 3.76318L11.837 3.43018L13.072 2.38018L13.22 2.52718L12.17 3.76318ZM5.216 11.1402L2.458 13.8982C2.38 13.9762 2.253 13.9762 2.175 13.8982L1.751 13.4742C1.673 13.3962 1.673 13.2692 1.751 13.1912L4.508 10.4332C4.547 10.3942 4.599 10.3752 4.65 10.3752C4.701 10.3752 4.753 10.3942 4.791 10.4332L5.216 10.8582C5.282 10.9252 5.283 11.0742 5.216 11.1402ZM4.653 5.54718C4.543 5.43518 4.387 5.38318 4.229 5.40518L2.829 5.60518C2.824 5.60618 2.819 5.60618 2.814 5.60718L1.893 4.68618C1.921 4.54518 1.957 4.37418 1.994 4.20118L3.046 5.25418C3.242 5.44918 3.558 5.44918 3.753 5.25418L4.753 4.25418C4.949 4.05818 4.949 3.74218 4.753 3.54718L3.703 2.49618L4.186 2.39318L5.104 3.31218L5.105 3.32918L4.905 4.72918C4.883 4.88518 4.935 5.04218 5.046 5.15418L7.27 7.37718L6.874 7.76718L4.653 5.54718ZM14.253 2.14618L13.453 1.34618C13.269 1.16218 12.974 1.15218 12.775 1.31918L10.775 3.01918C10.669 3.11018 10.606 3.24118 10.6 3.38018C10.595 3.52018 10.648 3.65518 10.746 3.75418L10.848 3.85518L7.982 6.67618C7.982 6.67618 5.93 4.62318 5.929 4.62218C5.902 4.59518 5.949 4.46918 5.956 4.43618C6.006 4.18518 6.039 3.93318 6.071 3.67918C6.107 3.39118 6.18 2.97418 5.953 2.74618L4.753 1.54718C4.715 1.50918 4.671 1.47718 4.624 1.45318C4.307 1.29418 3.96 1.40918 3.638 1.48518C3.293 1.56618 2.946 1.63618 2.605 1.73518C2.518 1.76118 2.43 1.78818 2.357 1.84118C2.133 2.00318 2.167 2.37418 2.346 2.55418L3.693 3.90018L3.4 4.19318L2.053 2.84618C1.924 2.71718 1.732 2.66718 1.56 2.72018C1.385 2.77118 1.252 2.91318 1.212 3.09218C1.212 3.09218 1.01 3.99818 0.899996 4.60018V4.90018C0.899996 5.03318 0.952997 5.16018 1.046 5.25418L2.246 6.45318C2.394 6.60218 2.626 6.63918 2.828 6.63118C3.09 6.62118 3.346 6.54118 3.604 6.50418C3.777 6.48018 3.95 6.45518 4.123 6.43018L6.161 8.46818L5.131 9.48218C4.691 9.28918 4.161 9.36618 3.801 9.72618L1.043 12.4842C0.575996 12.9522 0.575996 13.7142 1.044 14.1812L1.468 14.6052C1.702 14.8402 2.009 14.9562 2.316 14.9562C2.624 14.9562 2.931 14.8402 3.165 14.6052L5.922 11.8472C6.149 11.6222 6.274 11.3202 6.274 11.0002C6.274 10.8082 6.216 10.6292 6.131 10.4632C6.131 10.4632 11.839 4.84518 11.847 4.85318C11.941 4.94818 12.068 5.00018 12.221 4.99918C12.36 4.99318 12.491 4.93018 12.581 4.82418L14.28 2.82418C14.449 2.62518 14.438 2.33018 14.253 2.14618Z" fill="#CED0D6"/>
<path d="M8.6499 8.75732L10.7589 10.8253L11.4659 10.1183L9.3499 8.04332L8.6499 8.75732Z" fill="#CED0D6"/>
<path d="M7.74609 9.7539L9.78809 11.7959L10.2931 11.2919L10.4951 11.0889L8.45309 9.0469L7.74609 9.7539Z" fill="#CED0D6"/>
</svg>

After

Width:  |  Height:  |  Size: 2.8 KiB

+17
View File
@@ -0,0 +1,17 @@
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_54_1384)">
<path d="M10.4415 10.5406L8.29749 8.41159C8.29749 8.41159 8.46249 7.10059 8.46249 7.01959L7.47349 6.03659L6.07149 6.28159L7.47349 7.67459L6.64849 8.49359C6.15449 8.00159 5.24749 7.10059 5.24749 7.10059C5.24749 7.10059 5.00049 8.41159 5.00049 8.49359L5.98949 9.47559L7.39049 9.31259L9.53449 11.4416" fill="#6C707E"/>
<path d="M2.09049 14.0058L2.00049 13.8978L2.00149 11.2908C2.39049 11.1338 2.69849 10.9038 2.95249 10.7168L3.03949 10.6398C3.58049 10.1028 3.89049 9.40182 3.89049 8.71582C3.89049 8.03082 3.58049 7.33082 3.03949 6.79482C2.73949 6.49582 2.38549 6.26982 2.00149 6.12782L1.99349 3.74582L2.11249 3.65282H6.00349C6.04649 3.47982 6.09049 3.30682 6.13449 3.13382C6.22749 2.76282 6.43149 2.32981 6.76649 2.11981C7.01449 1.96582 7.34249 1.95582 7.60449 2.08482C7.79949 2.18082 7.95549 2.34581 8.06849 2.53181C8.16849 2.69781 8.24449 2.88381 8.29649 3.07082C8.31349 3.12881 8.41649 3.65282 8.44449 3.65282L12.2435 3.64782L12.3345 3.75582V7.51482L13.0935 7.70282C13.2295 7.73682 13.4095 7.85382 13.5945 7.99982H14.8695C14.7965 7.80782 14.6965 7.64382 14.5555 7.50482C14.3205 7.27082 13.8485 6.85982 13.3345 6.73282V3.75582C13.3345 3.64182 13.3035 3.50582 13.2505 3.37182C13.1895 3.21982 13.1035 3.08681 13.0005 2.98381C12.8815 2.86681 12.7705 2.78782 12.6545 2.73681C12.5275 2.68081 12.3855 2.65281 12.2225 2.65281H9.22249C9.21849 2.65281 9.13849 2.39882 9.12849 2.37381C8.87849 1.77582 8.37849 1.24481 7.74449 1.06181C7.32249 0.938814 6.85749 0.976815 6.45649 1.15681C5.95849 1.37982 5.62049 1.79881 5.37549 2.27381C5.36049 2.30381 5.21649 2.65281 5.22349 2.65281H2.11249C1.99649 2.65281 1.85849 2.68281 1.72449 2.73581C1.57149 2.79681 1.43749 2.88281 1.33649 2.98381C1.21849 3.09981 1.13849 3.20982 1.08649 3.32782C1.02949 3.45282 1.00249 3.59282 1.00249 3.75582V6.90982L1.40049 6.99282C1.75349 7.06682 2.06749 7.23782 2.33549 7.50382C2.68849 7.85382 2.89049 8.29582 2.89049 8.71582C2.89049 9.13682 2.68849 9.57882 2.33549 9.92882C2.00149 10.1768 1.73849 10.3598 1.39049 10.4388L1.00149 10.5268L1.00049 13.8978C1.00049 14.0128 1.02949 14.1508 1.08349 14.2838C1.14449 14.4348 1.23149 14.5678 1.33349 14.6688C1.45149 14.7868 1.56249 14.8658 1.68149 14.9178C1.80749 14.9738 1.94849 14.9998 2.11249 14.9998H12.0345L11.0355 14.0008L2.09049 14.0058Z" fill="#6C707E"/>
<path d="M12.3418 13.8936L12.3398 13.0616L11.9248 13.4766L12.3418 13.8936Z" fill="#3574F0"/>
<path d="M13.2502 14.3252C13.2072 14.4202 13.1402 14.5122 13.0552 14.6062L13.4482 15.0002H14.8532L13.3342 13.4812V13.8972C13.3342 14.0592 13.3072 14.2002 13.2502 14.3252Z" fill="#3574F0"/>
<path d="M14.8525 11.9531H13.4485L13.3335 12.0671V13.4721L14.8525 11.9531Z" fill="#3574F0"/>
<path d="M13.0551 14.6067C13.1401 14.5127 13.2081 14.4207 13.2501 14.3257C13.3071 14.2007 13.3341 14.0597 13.3341 13.8977V13.4817L13.3291 13.4767L13.3341 13.4717V12.0677L12.3401 13.0617L12.3421 13.8937L13.0551 14.6067Z" fill="#3574F0"/>
<path d="M13.4492 9L10.4492 11.999L11.1542 12.698L14.8522 9H13.4492Z" fill="#3574F0"/>
<path d="M13.4483 15H14.8523L13.3293 13.477L14.8523 11.953H13.4483L11.9253 13.477L13.4483 15Z" fill="#3574F0"/>
</g>
<defs>
<clipPath id="clip0_54_1384">
<rect width="14" height="14" fill="white" transform="translate(1 1)"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 3.3 KiB

+13
View File
@@ -0,0 +1,13 @@
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_54_1487)">
<path d="M13.1388 13.2666L10.3828 10.5286C10.3828 10.5286 10.5948 8.84462 10.5948 8.73862L9.32282 7.47562L7.52082 7.79162L9.32282 9.58162L8.26282 10.6346C7.62682 10.0026 6.46082 8.84462 6.46082 8.84462C6.46082 8.84462 6.14282 10.5286 6.14282 10.6346L7.41482 11.8976L9.21682 11.6876L11.9728 14.4246" fill="#6C707E"/>
<path d="M14.1245 17.25H3.26951C3.12051 17.25 3.04751 17.227 2.90951 17.09C2.80651 16.987 2.74951 16.806 2.74951 16.74L2.75151 13.482C3.21551 13.348 3.58751 13.094 3.97351 12.807C4.00151 12.785 4.02851 12.763 4.05451 12.737C4.59851 12.197 4.91051 11.498 4.91051 10.819C4.91051 10.14 4.59851 9.441 4.05451 8.901C3.68051 8.529 3.23851 8.275 2.75151 8.148V5.149C2.75151 5.003 2.77351 4.936 2.91151 4.8C3.01551 4.696 3.20451 4.64 3.27151 4.64H6.82651C7.02051 4.64 7.21051 4.563 7.34951 4.428C7.50451 4.277 7.53051 4.088 7.61851 3.902C7.81051 3.497 8.08051 3.1 8.48851 2.888C8.86751 2.692 9.34151 2.686 9.72251 2.879C10.1485 3.096 10.5535 3.607 10.6705 4.073C10.7535 4.406 11.0535 4.64 11.3975 4.64H14.8265C14.9755 4.64 15.0485 4.663 15.1865 4.8C15.2895 4.902 15.3455 5.084 15.3455 5.149V8.551C15.3455 8.896 15.5815 9.196 15.9155 9.279C16.2125 9.353 16.6055 9.61 16.9635 9.965C16.9735 9.975 16.9825 9.989 16.9925 10H18.6395C18.5415 9.626 18.3625 9.24 18.0205 8.901C17.7335 8.616 17.3255 8.271 16.8455 8.035V5.149C16.8455 4.653 16.6095 4.099 16.2435 3.735C15.8335 3.329 15.3835 3.14 14.8265 3.14H11.9115C11.4165 2.149 10.5285 1.36 9.39751 1.248C8.04051 1.113 6.89951 1.967 6.31251 3.14H3.27151C2.77551 3.14 2.21951 3.374 1.85451 3.735C1.44351 4.143 1.25151 4.592 1.25151 5.149V8.803C1.25151 9.217 1.58751 9.553 2.00151 9.553C2.38651 9.553 2.72251 9.692 2.99751 9.965C3.25651 10.222 3.41051 10.541 3.41051 10.819C3.41051 11.084 3.27051 11.388 3.03151 11.638C2.60251 11.955 2.37851 12.085 2.00151 12.085C1.58751 12.085 1.25151 12.421 1.25151 12.835L1.24951 16.74C1.24951 17.236 1.48651 17.791 1.85251 18.154C2.26251 18.561 2.71251 18.75 3.26951 18.75H14.8265C15.0445 18.75 15.2725 18.698 15.4925 18.617L14.1245 17.25Z" fill="#6C707E"/>
<path d="M17.0049 11L13.1489 14.855L14.0539 15.755L18.8109 11H17.0049Z" fill="#3574F0"/>
<path d="M17.0049 18.7139H18.8099L16.8519 16.7559L18.8099 14.7969H17.0049L15.0459 16.7559L17.0049 18.7139Z" fill="#3574F0"/>
</g>
<defs>
<clipPath id="clip0_54_1487">
<rect width="18" height="18" fill="white" transform="translate(1 1)"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 2.5 KiB

@@ -0,0 +1,13 @@
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_54_1495)">
<path d="M13.1388 13.2666L10.3828 10.5286C10.3828 10.5286 10.5948 8.84462 10.5948 8.73862L9.32282 7.47562L7.52082 7.79162L9.32282 9.58162L8.26282 10.6346C7.62682 10.0026 6.46082 8.84462 6.46082 8.84462C6.46082 8.84462 6.14282 10.5286 6.14282 10.6346L7.41482 11.8976L9.21682 11.6876L11.9728 14.4246" fill="#CED0D6"/>
<path d="M14.1245 17.25H3.26951C3.12051 17.25 3.04751 17.227 2.90951 17.09C2.80651 16.987 2.74951 16.806 2.74951 16.74L2.75151 13.482C3.21551 13.348 3.58751 13.094 3.97351 12.807C4.00151 12.785 4.02851 12.763 4.05451 12.737C4.59851 12.197 4.91051 11.498 4.91051 10.819C4.91051 10.14 4.59851 9.441 4.05451 8.901C3.68051 8.529 3.23851 8.275 2.75151 8.148V5.149C2.75151 5.003 2.77351 4.936 2.91151 4.8C3.01551 4.696 3.20451 4.64 3.27151 4.64H6.82651C7.02051 4.64 7.21051 4.563 7.34951 4.428C7.50451 4.277 7.53051 4.088 7.61851 3.902C7.81051 3.497 8.08051 3.1 8.48851 2.888C8.86751 2.692 9.34151 2.686 9.72251 2.879C10.1485 3.096 10.5535 3.607 10.6705 4.073C10.7535 4.406 11.0535 4.64 11.3975 4.64H14.8265C14.9755 4.64 15.0485 4.663 15.1865 4.8C15.2895 4.902 15.3455 5.084 15.3455 5.149V8.551C15.3455 8.896 15.5815 9.196 15.9155 9.279C16.2125 9.353 16.6055 9.61 16.9635 9.965C16.9735 9.975 16.9825 9.989 16.9925 10H18.6395C18.5415 9.626 18.3625 9.24 18.0205 8.901C17.7335 8.616 17.3255 8.271 16.8455 8.035V5.149C16.8455 4.653 16.6095 4.099 16.2435 3.735C15.8335 3.329 15.3835 3.14 14.8265 3.14H11.9115C11.4165 2.149 10.5285 1.36 9.39751 1.248C8.04051 1.113 6.89951 1.967 6.31251 3.14H3.27151C2.77551 3.14 2.21951 3.374 1.85451 3.735C1.44351 4.143 1.25151 4.592 1.25151 5.149V8.803C1.25151 9.217 1.58751 9.553 2.00151 9.553C2.38651 9.553 2.72251 9.692 2.99751 9.965C3.25651 10.222 3.41051 10.541 3.41051 10.819C3.41051 11.084 3.27051 11.388 3.03151 11.638C2.60251 11.955 2.37851 12.085 2.00151 12.085C1.58751 12.085 1.25151 12.421 1.25151 12.835L1.24951 16.74C1.24951 17.236 1.48651 17.791 1.85251 18.154C2.26251 18.561 2.71251 18.75 3.26951 18.75H14.8265C15.0445 18.75 15.2725 18.698 15.4925 18.617L14.1245 17.25Z" fill="#CED0D6"/>
<path d="M17.0049 11L13.1489 14.855L14.0539 15.755L18.8109 11H17.0049Z" fill="#548AF7"/>
<path d="M17.0049 18.7139H18.8099L16.8519 16.7559L18.8099 14.7969H17.0049L15.0459 16.7559L17.0049 18.7139Z" fill="#548AF7"/>
</g>
<defs>
<clipPath id="clip0_54_1495">
<rect width="18" height="18" fill="white" transform="translate(1 1)"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 2.5 KiB

+10
View File
@@ -0,0 +1,10 @@
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M10.4415 10.5406L8.29749 8.41159C8.29749 8.41159 8.46249 7.10059 8.46249 7.01959L7.47349 6.03659L6.07149 6.28159L7.47349 7.67459L6.64849 8.49359C6.15449 8.00159 5.24749 7.10059 5.24749 7.10059C5.24749 7.10059 5.00049 8.41159 5.00049 8.49359L5.98949 9.47559L7.39049 9.31259L9.53449 11.4416" fill="#CED0D6"/>
<path d="M2.09049 14.0058L2.00049 13.8978L2.00149 11.2908C2.39049 11.1338 2.69849 10.9038 2.95249 10.7168L3.03949 10.6398C3.58049 10.1028 3.89049 9.40182 3.89049 8.71582C3.89049 8.03082 3.58049 7.33082 3.03949 6.79482C2.73949 6.49582 2.38549 6.26982 2.00149 6.12782L1.99349 3.74582L2.11249 3.65282H6.00349C6.04649 3.47982 6.09049 3.30682 6.13449 3.13382C6.22749 2.76282 6.43149 2.32981 6.76649 2.11981C7.01449 1.96582 7.34249 1.95582 7.60449 2.08482C7.79949 2.18082 7.95549 2.34581 8.06849 2.53181C8.16849 2.69781 8.24449 2.88381 8.29649 3.07082C8.31349 3.12881 8.41649 3.65282 8.44449 3.65282L12.2435 3.64782L12.3345 3.75582V7.51482L13.0935 7.70282C13.2295 7.73682 13.4095 7.85382 13.5945 7.99982H14.8695C14.7965 7.80782 14.6965 7.64382 14.5555 7.50482C14.3205 7.27082 13.8485 6.85982 13.3345 6.73282V3.75582C13.3345 3.64182 13.3035 3.50582 13.2505 3.37182C13.1895 3.21982 13.1035 3.08681 13.0005 2.98381C12.8815 2.86681 12.7705 2.78782 12.6545 2.73681C12.5275 2.68081 12.3855 2.65281 12.2225 2.65281H9.22249C9.21849 2.65281 9.13849 2.39882 9.12849 2.37381C8.87849 1.77582 8.37849 1.24481 7.74449 1.06181C7.32249 0.938814 6.85749 0.976815 6.45649 1.15681C5.95849 1.37982 5.62049 1.79881 5.37549 2.27381C5.36049 2.30381 5.21649 2.65281 5.22349 2.65281H2.11249C1.99649 2.65281 1.85849 2.68281 1.72449 2.73581C1.57149 2.79681 1.43749 2.88281 1.33649 2.98381C1.21849 3.09981 1.13849 3.20982 1.08649 3.32782C1.02949 3.45282 1.00249 3.59282 1.00249 3.75582V6.90982L1.40049 6.99282C1.75349 7.06682 2.06749 7.23782 2.33549 7.50382C2.68849 7.85382 2.89049 8.29582 2.89049 8.71582C2.89049 9.13682 2.68849 9.57882 2.33549 9.92882C2.00149 10.1768 1.73849 10.3598 1.39049 10.4388L1.00149 10.5268L1.00049 13.8978C1.00049 14.0128 1.02949 14.1508 1.08349 14.2838C1.14449 14.4348 1.23149 14.5678 1.33349 14.6688C1.45149 14.7868 1.56249 14.8658 1.68149 14.9178C1.80749 14.9738 1.94849 14.9998 2.11249 14.9998H12.0345L11.0355 14.0008L2.09049 14.0058Z" fill="#CED0D6"/>
<path d="M12.3418 13.8936L12.3398 13.0616L11.9248 13.4766L12.3418 13.8936Z" fill="#548AF7"/>
<path d="M13.2502 14.3252C13.2072 14.4202 13.1402 14.5122 13.0552 14.6062L13.4482 15.0002H14.8532L13.3342 13.4812V13.8972C13.3342 14.0592 13.3072 14.2002 13.2502 14.3252Z" fill="#81DDF9"/>
<path d="M14.8525 11.9531H13.4485L13.3335 12.0671V13.4721L14.8525 11.9531Z" fill="#548AF7"/>
<path d="M13.0551 14.6067C13.1401 14.5127 13.2081 14.4207 13.2501 14.3257C13.3071 14.2007 13.3341 14.0597 13.3341 13.8977V13.4817L13.3291 13.4767L13.3341 13.4717V12.0677L12.3401 13.0617L12.3421 13.8937L13.0551 14.6067Z" fill="#81DDF9"/>
<path d="M13.4492 9L10.4492 11.999L11.1542 12.698L14.8522 9H13.4492Z" fill="#548AF7"/>
<path d="M13.4483 15H14.8523L13.3293 13.477L14.8523 11.953H13.4483L11.9253 13.477L13.4483 15Z" fill="#548AF7"/>
</svg>

After

Width:  |  Height:  |  Size: 3.1 KiB

+8
View File
@@ -0,0 +1,8 @@
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M11.7 12.7L11 12L14 9H15.4L11.7 12.7Z" fill="#3574F0"/>
<path d="M15.4 15H14L12.5 13.5L14 12H15.4L13.9 13.5L15.4 15Z" fill="#3574F0"/>
<path d="M10.4002 4.69995C9.8002 4.19995 9.1002 3.99995 8.3002 4.09995C7.5002 4.09995 6.8002 4.49995 6.3002 5.09995C5.8002 5.69995 5.6002 6.39995 5.7002 7.19995C5.7002 7.79995 6.0002 8.39995 6.4002 8.79995L4.6002 10.9C4.4002 11.1 4.4002 11.4 4.6002 11.6C4.6002 11.6 4.8002 11.7 4.9002 11.7C5.0002 11.7 5.2002 11.7 5.3002 11.5L7.1002 9.39995C7.5002 9.59995 8.0002 9.79995 8.5002 9.79995C9.0002 9.79995 8.7002 9.79995 8.8002 9.79995C9.6002 9.79995 10.3002 9.39995 10.8002 8.79995C11.3002 8.19995 11.5002 7.49995 11.4002 6.69995C11.4002 5.89995 11.0002 5.19995 10.4002 4.69995ZM10.1002 8.19995C9.8002 8.59995 9.4002 8.79995 8.8002 8.89995C8.2002 8.89995 7.8002 8.89995 7.4002 8.49995C7.0002 8.19995 6.8002 7.79995 6.7002 7.19995C6.7002 6.59995 6.7002 6.19995 7.1002 5.79995C7.4002 5.39995 7.8002 5.19995 8.4002 5.09995C9.0002 5.09995 9.4002 5.09995 9.8002 5.49995C10.2002 5.79995 10.4002 6.19995 10.5002 6.79995C10.5002 7.39995 10.5002 7.79995 10.1002 8.19995Z" fill="#6C707E"/>
<path d="M1.6001 5.89998C1.9001 5.89998 2.1001 5.69998 2.1001 5.39998V2.49998C2.1001 2.29998 2.2001 2.09998 2.5001 2.09998H5.5001C5.8001 2.09998 6.0001 1.89998 6.0001 1.59998C6.0001 1.29998 5.8001 1.09998 5.5001 1.09998H2.5001C1.7001 1.09998 1.1001 1.69998 1.1001 2.49998V5.39998C1.1001 5.69998 1.3001 5.89998 1.6001 5.89998Z" fill="#6C707E"/>
<path d="M5.4001 13.9H2.5001C2.3001 13.9 2.1001 13.8 2.1001 13.5V10.4C2.1001 10.1 1.9001 9.90002 1.6001 9.90002C1.3001 9.90002 1.1001 10.1 1.1001 10.4V13.5C1.1001 14.3 1.7001 14.9 2.5001 14.9H5.4001C5.7001 14.9 5.9001 14.7 5.9001 14.4C5.9001 14.1 5.7001 13.9 5.4001 13.9Z" fill="#6C707E"/>
<path d="M13.5001 1.09998H10.6001C10.3001 1.09998 10.1001 1.29998 10.1001 1.59998C10.1001 1.89998 10.3001 2.09998 10.6001 2.09998H13.5001C13.7001 2.09998 13.9001 2.19998 13.9001 2.49998V5.49998C13.9001 5.79998 14.1001 5.99998 14.4001 5.99998C14.7001 5.99998 14.9001 5.79998 14.9001 5.49998V2.49998C14.9001 1.69998 14.3001 1.09998 13.5001 1.09998Z" fill="#6C707E"/>
</svg>

After

Width:  |  Height:  |  Size: 2.2 KiB

+15
View File
@@ -0,0 +1,15 @@
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_54_1573)">
<path d="M11.7949 10.4321C11.2469 10.9801 10.6479 11.2241 9.85086 11.2241C9.05286 11.2241 8.45386 10.9801 7.90586 10.4321C7.35786 9.88412 7.11286 9.28412 7.11286 8.48712C7.11286 7.69112 7.35786 7.09112 7.90586 6.54312C8.45386 5.99512 9.05386 5.75012 9.85086 5.75012C10.6479 5.75012 11.2469 5.99512 11.7949 6.54312C12.3439 7.09112 12.5879 7.69112 12.5879 8.48712C12.5879 9.28412 12.3439 9.88412 11.7949 10.4321ZM9.85086 4.25012C8.65686 4.25012 7.67386 4.65312 6.84486 5.48212C6.01586 6.31112 5.61286 7.29412 5.61286 8.48712C5.61286 9.41112 5.86086 10.2061 6.35486 10.9041L3.47886 13.6841C3.18086 13.9731 3.17286 14.4471 3.46086 14.7451C3.60786 14.8971 3.80386 14.9741 3.99986 14.9741C4.18786 14.9741 4.37586 14.9031 4.52186 14.7631L7.41386 11.9661C8.11686 12.4701 8.91786 12.7241 9.85086 12.7241C11.0439 12.7241 12.0269 12.3211 12.8559 11.4931C13.6849 10.6631 14.0879 9.68012 14.0879 8.48712C14.0879 7.29412 13.6849 6.31112 12.8559 5.48212C12.0269 4.65312 11.0439 4.25012 9.85086 4.25012Z" fill="#6C707E"/>
<path d="M0.787598 7.375C1.2016 7.375 1.5376 7.039 1.5376 6.625V2.913C1.5376 2.653 1.6536 2.538 1.9126 2.538H5.7376C6.1516 2.538 6.4876 2.202 6.4876 1.788C6.4876 1.374 6.1516 1.038 5.7376 1.038H1.9126C0.826598 1.038 0.0375977 1.826 0.0375977 2.913V6.625C0.0375977 7.039 0.373598 7.375 0.787598 7.375Z" fill="#6C707E"/>
<path d="M5.62509 17.4629H1.91309C1.65309 17.4629 1.53809 17.3479 1.53809 17.0879V13.1509C1.53809 12.7359 1.20209 12.4009 0.788086 12.4009C0.374086 12.4009 0.0380859 12.7359 0.0380859 13.1509V17.0879C0.0380859 18.1749 0.826086 18.9629 1.91309 18.9629H5.62509C6.03909 18.9629 6.37509 18.6269 6.37509 18.2129C6.37509 17.7989 6.03909 17.4629 5.62509 17.4629Z" fill="#6C707E"/>
<path d="M16.0314 0.98103H12.3184C11.9044 0.98103 11.5684 1.31703 11.5684 1.73103C11.5684 2.14503 11.9044 2.48103 12.3184 2.48103H16.0314C16.2914 2.48103 16.4064 2.59703 16.4064 2.85603V6.68103C16.4064 7.09503 16.7424 7.43103 17.1564 7.43103C17.5704 7.43103 17.9064 7.09503 17.9064 6.68103V2.85603C17.9064 1.77003 17.1184 0.98103 16.0314 0.98103Z" fill="#6C707E"/>
<path d="M13.2456 15.7552L12.3396 14.8562L16.1966 11.0002H18.0016L13.2456 15.7552Z" fill="#3574F0"/>
<path d="M18.0003 18.7142H16.1953L14.2363 16.7562L16.1953 14.7972H18.0003L16.0423 16.7562L18.0003 18.7142Z" fill="#3574F0"/>
</g>
<defs>
<clipPath id="clip0_54_1573">
<rect width="18" height="18" fill="white" transform="translate(0 1)"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 2.5 KiB

@@ -0,0 +1,15 @@
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_54_1584)">
<path d="M11.7949 10.4321C11.2469 10.9801 10.6479 11.2241 9.85086 11.2241C9.05286 11.2241 8.45386 10.9801 7.90586 10.4321C7.35786 9.88412 7.11286 9.28412 7.11286 8.48712C7.11286 7.69112 7.35786 7.09112 7.90586 6.54312C8.45386 5.99512 9.05386 5.75012 9.85086 5.75012C10.6479 5.75012 11.2469 5.99512 11.7949 6.54312C12.3439 7.09112 12.5879 7.69112 12.5879 8.48712C12.5879 9.28412 12.3439 9.88412 11.7949 10.4321ZM9.85086 4.25012C8.65686 4.25012 7.67386 4.65312 6.84486 5.48212C6.01586 6.31112 5.61286 7.29412 5.61286 8.48712C5.61286 9.41112 5.86086 10.2061 6.35486 10.9041L3.47886 13.6841C3.18086 13.9731 3.17286 14.4471 3.46086 14.7451C3.60786 14.8971 3.80386 14.9741 3.99986 14.9741C4.18786 14.9741 4.37586 14.9031 4.52186 14.7631L7.41386 11.9661C8.11686 12.4701 8.91786 12.7241 9.85086 12.7241C11.0439 12.7241 12.0269 12.3211 12.8559 11.4931C13.6849 10.6631 14.0879 9.68012 14.0879 8.48712C14.0879 7.29412 13.6849 6.31112 12.8559 5.48212C12.0269 4.65312 11.0439 4.25012 9.85086 4.25012Z" fill="#CED0D6"/>
<path d="M0.787598 7.375C1.2016 7.375 1.5376 7.039 1.5376 6.625V2.913C1.5376 2.653 1.6536 2.538 1.9126 2.538H5.7376C6.1516 2.538 6.4876 2.202 6.4876 1.788C6.4876 1.374 6.1516 1.038 5.7376 1.038H1.9126C0.826598 1.038 0.0375977 1.826 0.0375977 2.913V6.625C0.0375977 7.039 0.373598 7.375 0.787598 7.375Z" fill="#CED0D6"/>
<path d="M5.62509 17.4629H1.91309C1.65309 17.4629 1.53809 17.3479 1.53809 17.0879V13.1509C1.53809 12.7359 1.20209 12.4009 0.788086 12.4009C0.374086 12.4009 0.0380859 12.7359 0.0380859 13.1509V17.0879C0.0380859 18.1749 0.826086 18.9629 1.91309 18.9629H5.62509C6.03909 18.9629 6.37509 18.6269 6.37509 18.2129C6.37509 17.7989 6.03909 17.4629 5.62509 17.4629Z" fill="#CED0D6"/>
<path d="M16.0314 0.98103H12.3184C11.9044 0.98103 11.5684 1.31703 11.5684 1.73103C11.5684 2.14503 11.9044 2.48103 12.3184 2.48103H16.0314C16.2914 2.48103 16.4064 2.59703 16.4064 2.85603V6.68103C16.4064 7.09503 16.7424 7.43103 17.1564 7.43103C17.5704 7.43103 17.9064 7.09503 17.9064 6.68103V2.85603C17.9064 1.77003 17.1184 0.98103 16.0314 0.98103Z" fill="#CED0D6"/>
<path d="M13.2456 15.7552L12.3396 14.8562L16.1966 11.0002H18.0016L13.2456 15.7552Z" fill="#548AF7"/>
<path d="M18.0003 18.7142H16.1953L14.2363 16.7562L16.1953 14.7972H18.0003L16.0423 16.7562L18.0003 18.7142Z" fill="#548AF7"/>
</g>
<defs>
<clipPath id="clip0_54_1584">
<rect width="18" height="18" fill="white" transform="translate(0 1)"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 2.5 KiB

+8
View File
@@ -0,0 +1,8 @@
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M11.7 12.7L11 12L14 9H15.4L11.7 12.7Z" fill="#548AF7"/>
<path d="M15.4 15H14L12.5 13.5L14 12H15.4L13.9 13.5L15.4 15Z" fill="#548AF7"/>
<path d="M10.4002 4.69995C9.8002 4.19995 9.1002 3.99995 8.3002 4.09995C7.5002 4.09995 6.8002 4.49995 6.3002 5.09995C5.8002 5.69995 5.6002 6.39995 5.7002 7.19995C5.7002 7.79995 6.0002 8.39995 6.4002 8.79995L4.6002 10.9C4.4002 11.1 4.4002 11.4 4.6002 11.6C4.6002 11.6 4.8002 11.7 4.9002 11.7C5.0002 11.7 5.2002 11.7 5.3002 11.5L7.1002 9.39995C7.5002 9.59995 8.0002 9.79995 8.5002 9.79995C9.0002 9.79995 8.7002 9.79995 8.8002 9.79995C9.6002 9.79995 10.3002 9.39995 10.8002 8.79995C11.3002 8.19995 11.5002 7.49995 11.4002 6.69995C11.4002 5.89995 11.0002 5.19995 10.4002 4.69995ZM10.1002 8.19995C9.8002 8.59995 9.4002 8.79995 8.8002 8.89995C8.2002 8.89995 7.8002 8.89995 7.4002 8.49995C7.0002 8.19995 6.8002 7.79995 6.7002 7.19995C6.7002 6.59995 6.7002 6.19995 7.1002 5.79995C7.4002 5.39995 7.8002 5.19995 8.4002 5.09995C9.0002 5.09995 9.4002 5.09995 9.8002 5.49995C10.2002 5.79995 10.4002 6.19995 10.5002 6.79995C10.5002 7.39995 10.5002 7.79995 10.1002 8.19995Z" fill="#CED0D6"/>
<path d="M1.6001 5.89998C1.9001 5.89998 2.1001 5.69998 2.1001 5.39998V2.49998C2.1001 2.29998 2.2001 2.09998 2.5001 2.09998H5.5001C5.8001 2.09998 6.0001 1.89998 6.0001 1.59998C6.0001 1.29998 5.8001 1.09998 5.5001 1.09998H2.5001C1.7001 1.09998 1.1001 1.69998 1.1001 2.49998V5.39998C1.1001 5.69998 1.3001 5.89998 1.6001 5.89998Z" fill="#CED0D6"/>
<path d="M5.4001 13.9H2.5001C2.3001 13.9 2.1001 13.8 2.1001 13.5V10.4C2.1001 10.1 1.9001 9.90002 1.6001 9.90002C1.3001 9.90002 1.1001 10.1 1.1001 10.4V13.5C1.1001 14.3 1.7001 14.9 2.5001 14.9H5.4001C5.7001 14.9 5.9001 14.7 5.9001 14.4C5.9001 14.1 5.7001 13.9 5.4001 13.9Z" fill="#CED0D6"/>
<path d="M13.5001 1.09998H10.6001C10.3001 1.09998 10.1001 1.29998 10.1001 1.59998C10.1001 1.89998 10.3001 2.09998 10.6001 2.09998H13.5001C13.7001 2.09998 13.9001 2.19998 13.9001 2.49998V5.49998C13.9001 5.79998 14.1001 5.99998 14.4001 5.99998C14.7001 5.99998 14.9001 5.79998 14.9001 5.49998V2.49998C14.9001 1.69998 14.3001 1.09998 13.5001 1.09998Z" fill="#CED0D6"/>
</svg>

After

Width:  |  Height:  |  Size: 2.2 KiB

+6 -1
View File
@@ -1,7 +1,8 @@
/**
* Icon set: JetBrains new-UI ("expui") icons from intellij-community / intellij-plugins
* (Apache-2.0 / MIT, see THIRD_PARTY_LICENSES.md), vendored as-is under
* `./expui/<group>/<name>.svg` with their `_dark` and `@20x20` variants. File types
* `./expui/<group>/<name>.svg` with their `_dark` and `@20x20` variants; `./expui/flutter/`
* holds the Flutter plugin's tool window icons (BSD-3-Clause). File types
* whose JetBrains icons are not open source use OpenIDEA's own icons drawn in the same
* style, under `./openidea/<group>/<name>.svg` (paths prefixed `openidea/`). Project type
* logos under `./brands/` come from Simple Icons (CC0-1.0; see THIRD_PARTY_LICENSES.md). Names are the
@@ -452,6 +453,10 @@ const ICONS = {
"toolwindow-coverage": "toolwindows/coverage",
"toolwindow-profiler": "toolwindows/profiler",
"toolwindow-logcat": "openidea/fileTypes/log",
"toolwindow-flutter-inspector": "flutter/inspector",
"toolwindow-flutter-devtools": "flutter/devTools",
"toolwindow-flutter-deep-links": "flutter/deepLinks",
"toolwindow-flutter-extensions": "flutter/extensions",
"gutter-navigate": "general/autoscrollToSource",
"gutter-run": "gutter/run",
"gutter-run-all": "actions/runAll",