Trouble with Adjusting Window Opacity #15137
-
|
Hello, I am a new user of the Tauri framework and I am developing an application that whose window opacity can be toggled with a slider on the frontend. It is also supposed to be displaying over all other application windows at all times. My problem is that the window's opacity never changes or the window never stays on top of other windows after you click off of it, and I am not sure how to debug this. I attempted to look at what others have done but I did not see anything similar or useful in my search. I also have attempted to go on Overflow but that was not successful since I am not even able to post a question there. So, I believed this discussion area was my best bet. Any ideas on how I can adjust the window's opacity via frontend or backend? And also as to why the window never stays on top of other windows when you click off of it? Here is the code I have altered in case you need it: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Try controlling this via CSS instead of the native window apis. They may not support any values between 1 and 0 on all platforms.
Which platform? Not all platforms have a always on top feature that's controllable on the application side (e.g. Wayland) |
Beta Was this translation helpful? Give feedback.



Try controlling this via CSS instead of the native window apis. They may not support any values between 1 and 0 on all platforms.
Which platform? Not all platforms have a always on top feature that's controllable on the application side (e.g. Wayland)