feat(windows): use overlay scrollbar (#3868)

* feat(windows): use overlay scrollbar

* fix format
This commit is contained in:
Yuan Tong
2026-04-15 01:03:07 +08:00
committed by GitHub
parent 73d30c103f
commit 7d852518a3
3 changed files with 19 additions and 5 deletions
+5 -1
View File
@@ -28,6 +28,8 @@ mod discord_rpc;
#[cfg(target_os = "macos")]
mod macos;
mod transfer_file;
#[cfg(target_os = "windows")]
use tauri::webview::ScrollBarStyle;
use tauri::{command, Emitter, WebviewUrl, WebviewWindowBuilder, Window};
#[cfg(target_os = "android")]
use tauri_plugin_native_bridge::register_select_directory_callback;
@@ -394,7 +396,9 @@ pub fn run() {
#[cfg(target_os = "windows")]
{
builder = builder.transparent(false);
builder = builder
.transparent(false)
.scroll_bar_style(ScrollBarStyle::FluentOverlay);
}
#[cfg(target_os = "linux")]
{