agmmnn / tauri-controls

🚥 Native-looking window controls for Tauri 2. React, Solid, Vue, Svelte+Tailwind.
https://npmjs.com/package/tauri-controls
MIT License
581 stars 21 forks source link

Is linux supported? #2

Closed abose closed 11 months ago

abose commented 11 months ago

Greetings,

I recently discovered this library while porting the Brackets.io project to Tauri. The UI of this library appears well-suited to our requirements.

Could you please confirm if this library supports Linux or have any plans to support linux?

Thank you in advance!

agmmnn commented 11 months ago

Hey, greetings.

Yes on linux systems default gnome 44 controls are shown (the last ones) the main idea of the library is to use the component once and show the native-looking controls of whatever os the app is run on.

In a future version I plan to copy designs of other linux DEs: xde, budgie. But it is not possible to detect DE with tauri ts api. Someone on discord said I can do it with LinuxOSReleaseInfo in sys-info but the library is only typescript for now. idk maybe developers can be given a choice of controls to display in linux, like: <WindowControls linuxDesktop={"gnome" | "kde" | "budgie"} />

chrome_DOXGfE9jtl

(note: automatic change of the order of the controls according to the system in the picture will come in the next version)

abose commented 11 months ago

Thanks for the quick response and looks like Linux is supported then :) Will update once we start integrating. Closing as answered.