Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] [v2] IconMenuItem's icon overlap the adjacent menus on Linux. #10867

Closed
mikoto2000 opened this issue Sep 2, 2024 · 4 comments · Fixed by tauri-apps/muda#229
Closed
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@mikoto2000
Copy link

Describe the bug

I implemented menu:

let menu = MenuBuilder::new(app)
    .text("open-url", "Open URL")
    .check("toggle", "Toggle")
    .icon(
        "show-app",
        "Show App",
        app.default_window_icon().cloned().unwrap(),
    )
    .build()?;

app.set_menu(menu.clone())?;

† from Use tauri::menu::MenuBuilder

tauri-dialog-plugin

Reproduction

Clone https://github.com/mikoto2000/TIL.git, build and run tauri/2.0.0-beta/Menu/firststep/menu-firststep.

Expected behavior

No overlap icon.

Full tauri info output

$ npm run tauri info

> menu-firststep@0.1.0 tauri
> tauri info


[✔ ] Environment
    - OS: Debian 12.0.0 X64
    ✔  webkit2gtk-4.1: 2.44.2
    ✔  rsvg2: 2.54.7
    ✔  rustc: 1.79.0 (129f3b996 2024-06-10)
    ✔  cargo: 1.79.0 (ffa9cf99a 2024-06-03)
    ✔  rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔  Rust toolchain: stable-x86_64-unknown-linux-gnu (default)
    - node: 22.2.0
    - yarn: 1.22.19
    - npm: 10.7.0

[-] Packages
    - tauri [RUST]: 2.0.0-rc.6
    - tauri-build [RUST]: 2.0.0-rc.6
    - wry [RUST]: 0.42.0
    - tao [RUST]: 0.29.1
    - @tauri-apps/api [NPM]: 2.0.0-rc.3
    - @tauri-apps/cli [NPM]: 2.0.0-rc.7

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../dist
    - devUrl: http://localhost:1420/
    - framework: React
    - bundler: Vite


### Stack trace

```text
no stack trace

Additional context

No response

@mikoto2000 mikoto2000 added status: needs triage This issue needs to triage, applied to new issues type: bug labels Sep 2, 2024
@mikoto2000 mikoto2000 changed the title [bug] [v2] IconMenuItem's icon overlap the adjacent menus. [bug] [v2] IconMenuItem's icon overlap the adjacent menus on Linux. Sep 2, 2024
@amrbashir
Copy link
Member

amrbashir commented Sep 2, 2024

is this WSL or what distro are you using ?

@mikoto2000
Copy link
Author

@amrbashir
Sorry, I fogot write context...
I run docker container(Debian12) on Ubuntu24.04 on WSL2.

I try Windows, Ubuntu24.04 on WSL2 and Ubuntu24.04 on VM.

@mikoto2000
Copy link
Author

Windows:
image

Ubuntu24.04 on WSL2:
image

Debian12 on WSL2:
image

@amrbashir
Copy link
Member

Thanks @mikoto2000 , I have an idea what might be causing this, but unfortunately my linux machine is busted and It will take some time to setup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants