 Yesterday I was in the visual design chat of KD and one person came called Drago, Drago's sorry and posted this screenshot and said that he made actually this applet and my first third was like this gotta be a mock-up right like look at this it's too pretty to be real let's be honest it's too pretty but actually it was indeed real but there was a catch which a third was super interesting so he made this through HTML and CSS which is interesting because usually applets in KD Plasma are made through QML and that's how you do applets all of the applets are done with QML as far as I know so some someone coming in and saying I've done a widget and by the way it's HTML and it looks like this as like okay how like I can see where this is going because technically speaking nothing prevents you from actually embedding a webpage inside of your applet and then somehow communicating from the webpage I mean somehow I kind of know how to do that from the webpage to actually save all the stuff and then update the HTML code to show new things so I kind of saw that but at the same time the amount of effort to actually embed the thing seemed very high and so I tried talking with him and it's been super nice actually has helped him has helped me with some projects that I'm doing and so this is actually a widget that exists already not the actual widget that you're seeing but the concept of seeing the HTML page it's called web slice and you can find it in the store.kd.org you just open it up and then you search here web slice sorry and it's this one and the nice thing is that not only does this show a static HTML page which can be local so you can make it whatever you want but you can also select inside of the settings as shown here to actually make this transparent so it actually follows your system theme and the result is this there are catches so let's take this as an interesting idea because right now it's just an interesting idea and see if it's actually feasible what are the upsides and what are the downsides so first of all could you do a full the full working applet out of this and technically speaking I don't see why not because now the first thing you can think about is actually how to display updated data because if you want to do something like battery well the webpage cannot access the battery because it's a webpage and there's no API for JavaScript inside of a webpage to access the battery but you can actually generate the webpage and the viewer will actually update every three four seconds whatever you set it to be it's here reload interval so if you want something that updates with time that's feasible which is nice other things well if I press a button if I write something that something should probably be saved something somewhere sorry as an example quick notes if you write some quick note it should probably be stored and the basic idea could be saving it to local storage which is what he has done and it actually works and even persists over reboots which is pretty cool however I don't think it's the very safest option because it's local storage it might be deleted it's not actually file ideally you'd want to have everything in a file but there's no reason why the webpage couldn't communicate with a web server as an example to actually receive the data and store it somewhere that said I am the single ignorant person about this thing I have never done a dynamic like PHP stuff webpage so I have no clue whatsoever on how to actually do this if you do know then you can do this and if it starts data you can also I think that I saw like a lot of time ago I actually wrote a script that generated a custom HTML page so it's actually possible you just have to do it and technically speaking I don't think there's anything really that blocks you from doing a full upload just using HTML and CSS now and JavaScript and the web server now the issue is also actually delivering this to anyone so it's not like you can take this and put it in the web store as this because the widget here is the web slice so what you would need to do is ship the web slice and then also the HTML page and since it's probably not going to be just an HTML page but HTML plus some other scripts then it's going to be a bit difficult to set up and everything is going to be made manually but if you have the time to actually set it up then you could do it technically this is not something that could be a widget that everybody uses but for perfectionists it might be interesting especially because a lot of people know HTML and CSS whereas the people who actually know QML already are not as much that said I still think that QML is the best option to actually do this upload first of all because it's so much simpler like and you understand understand the appeal of doing something like this but it's going to take actually downloading the widget doing the web page and then all of the stuff behind the scenes to actually make the web page communicate with some external script if you do QML everything you can see it everything is done thinking about QML you can even interact with a plasmid API is going to make your day simpler the I should also notice that I have used both QML and HTML a lot at this point and QML is actually pretty good like if you have done a lot of HTML since CSS sorry stuff I think you will appreciate QML a lot as well and you should check it out it's actually very very easy to learn it doesn't require any incredible skill and if you know how to do a webpage you will be able to do an applet with no effort so if you want to do an applet then you should check out QML but if you want to do something maybe do a mock up like do an actually functioning mock up of an applet then why not like this could be something really simple because to do a static webpage and then just write the name here it's really simple a really simple way to do a really simple widget for personal use without actually making it accessible for other people so that was everything for this video for it was interesting and if you want to do an applet and you want to learn QML then I've actually done one video about actually doing applets it's just one I wanted to do more and maybe in the future I will have the time too but for now that's all I have there are also a lot of great great great a lot documentation as an example there's an handbook about QML if you don't know the link you can ping me I'll find it and give it to you it's free for everyone as far as I know and there's also some very nice third party actually first party because it got merged first party kd theming guides so on actually how to do applets so you can check those out if you want to do an applet and you need some help you can always feel free to ping me and if you like the video you can also subscribe but that's just up to you as always see you tomorrow