 Hello and welcome to ukd news where I showcase a bunch of things that have happened in the last week So merge request and then I also try a bit to explain how they were actually implemented So if you want to contribute ukd, you can give it a shot. So this is the first one Let's go through all of them first and it's a nice change when you're compressing a file Instead of seeing here to pictures dot zip it says here has archive dot zip It's actually a bit easier to understand what's the name of The well what will be the name of the zip when you actually compress something then in system settings There's there's this interesting thing So a lot of people often complain about the fact that when you search for something like a runner The right result is not always on the top and a lot of that comes from weights So in this case we increase the relevance if we have an exact match in the keywords So if you're searching something in system settings and you search for a specific kcm So system settings module. So like the section and you search for that Exact name then you can be sure it will be at the top Then we have this very interesting patch Which actually allows to activate panels through keyboard shortcuts. So as an example if you want to well use the panel activate kickoff or Cycle through all of the outlets in the panel using tab you can actually Focus the entire panel by doing meta alt p and then you tab until you find the right element Which is very interesting It allows you to actually use the panel only using the keyboard Which is an interesting concept and I will actually make a video about that This I think you will be interested in you know about when you Get a wrong password in the login and the password like goes transparent for about a second or two and then comes back saying Password wrong Well other systems do have an animation and there is proposal to actually implement this animation as well This is just an example. It's not the actual animation So there's a lot of discussion to find the best test animation So the one that actually feels more natural natural when you get the password wrong So in this case, there's even this nice dialogue and you can decide like the swing distance the animation speed and the wiggle count And there's a lot of people checking all of the parameters Trying to find which is the right one apparently This is like the gnome one, which is very fast. I think it's one of the best And then there is another proposal, which is this one, which is like this, which is also very nice So there's a lot of discussion on what is the very very best animation when you get a password wrong Then there is this one, which is redesigned homepage and as last week There was a redesign that actually landed for the application page and I spent a lot of time going through it And now there's another redesign for the homepage, which is nice. This cover is really getting redesigned and in this case It's about the homepage and this is the mock-up which is directly linked and well, it looks sorry It looks super nice. Like the mock-up is actually pretty all like it's from november 15 2021 Other though it was older. It's not very old and it looks very nice I hope that the end result will really look like this because this is just beautiful And there's people actually trying to put the effort into implementing this mock-up Then there's now an inline reply for notification for kd connect So if I send you send you like a telegram message and you're using kd connect You will see the notification on the bottom right and now there's actually the inline reply So you can just type there a click send and it will be sent from your phone And that works for as far as I know All of the android notification that actually support this so like what's up What's up messages that should work. So it's a very nice feature in the past You did have a reply button, but that opened a dialogue and it wasn't very natural Now it's much better. Finally, the very last one is there's now an action to open up the command bar So the command bar is a super super useful feature that not many people know about So adding an action to trigger it is a way to try to make it more known So in the help section all of all of the apps that support the command bar, there's now this new find action action That allows you like it opens up the command bar, which is a search bar And then you can actually search for anything probably probably you can even search for the find action action because This is still an action. So weird, but okay So let's start watching what actually changes code wise. This is the first one This is the one about actually changing the label And as you can see, it's not just a change of labels here It's here to picture that zip here It's here has and the change is from being two to being as but the name actually changes And the reason for that is that by default the name of the zip folder that actually results from being compressed Is before this patch the name of the folder you are in So if you are inside of pictures, the result will be pictures.zip Which maybe doesn't make that much sense. So the new result is Just calling it archive archive. I don't know how it's pronounced Which is doesn't it doesn't actually make assumptions on what the user wants It's just archive and then if the user wants it can change it So how does this work? So before so red code we add that if it's not just a file Then we take the file name from the get file name So actually the whole path to the file and then we take the last section dividing at the separators So we take the folder that this file is in And if it's longer than 20 characters, then the new name is the left 10 characters Plus the dots plus the right 10 characters So if you're in a super long directory, the name is not that long All of this is going away now There is just one line that says the default name is archive Then here there's the actual action and before it was here to the name of the thingy And now it's here as the name of the thingy same year going from to To as and that's it really this is pretty easy Next one This is the system settings runner and how this works is that we have a runner dot c plus File code that actually searches through things and then results Well, it gives a result to what is being matched and what's the relevancy of that match And of course if it's more important then the relevancy should be higher So what happens here is that if there is any keyword that actually matches the search term And the keyword contains Exactly the query case insensitive Then the relevance is 0.5, which is probably like one of the highest relevancy that this runner produces Otherwise the relevancy is going to be 0.2 So if it's a perfect match Then relevance 0.5 Otherwise if it's just a match Then 0.2 is fine. This one is A bit more complex So I will just explain like the general idea of the merge request. You can see that it's like 177 lines of new code. So the general idea. So first of all, we see this is the panel dot qml code So it's the panel and by the way, this is the one about actually adding Meta alt p shortcut to focus the panel And if we go inside the panel code, we see that there is a completely new frame svg item What is this frame svg item? Why is it new? It's actually explained here When you focus an applet using tab or whatever Then you should be able to see that that applet is actually focused And in order to do that we draw this little blue rectangle Which is what this frame svg item does if we go see here It's called we just tab bar, which is the name that we use for that rectangle It's the same one as the tabs. So if you go into kickoff and you see the tabs on the bottom left Those also use we just tab bar and third party themes can style this So it could look different on your theme But the idea is that we draw something to indicate that this element is actually focused And in fact, we can see that it's only visible If the panel is active and active focus item, there is an active focus We can see that the width of this thing is root width So it's as wide as the panel, which is probably going to look a bit weird But it really does indicate that you're focusing the entire panel But it doesn't and there does it. We have at least these changes which are interesting And let's start with the compact compact applet one. What is the compact applet? So when you add an applet to the panel, it might decide to do its own compact representation Which is like what is drawn on the panel to represent that applet So for kickoff, it's going to be the kickoff icon for the task manager It's going to be all of the icons of the apps you have open for the show desktop It's going to be the show desktop button and so on Some applets do their own compact representation as an example of the task manager Showing all of the tasks that you have opened that's custom Whereas some other applets just rely on the default compact representation Just like kickoff as an example that just uses an icon So what we're doing here is that we're changing the default compact representation So that it has a focus scope So when you tap through things if an applet is using the default compact representation Then you will actually be able to focus that applet and by pressing enter It will actually activate that applet. Otherwise, maybe those applets are not using the default representation in which case they have to manage all of the things on their own And this is the case for at least these three applets the show desktop The task manager and the pager ones which as I've said they're you know Custom in this case There are changes to all of these applets to actually implement these things so that focus scope You can see it's the same thing as the compact applet, but it's now re-implemented. No, sorry It's the same good as before. Sorry. This is one this one So you can see that there is an active focus on top true So that this most area which is inside of the task manager actually behaves as the default What gets activated when you actually focus this same here? We get a mouse area which gets focused when you When you focus it and if you press space and return or select it actually Triggers the action of showing the desktop same exact thing Here finally, this is the very last one We get the add action to out menu for the command bar And we can see that we are creating a new action Which is called a and we are setting the icon of this new action to the search icon Which makes sense and then the text of that action to find action Which is surely a better text than op-amend bar, which is a bit confusing if you don't know what command bar is Then we raise the version of the standard containers in the UI standards.rc Which I can only guess is to make sure that Your uh changes to this settings actually get updated if the user updates their version And then this is the actually important stuff We add a new action element named open K command bar, which is this one So this is in the menu, which is called help So if you know open up help now, you will see this action Which is called open K command bar, which is defined here pretty easy And that was everything. I hope that this was somewhat Interesting to actually learn how things work in KT and what's going on I hope that you like the idea of redesigning discover that's going on lately And I hope that you will stick around following the KT news for the coming weeks And if you haven't yet, there's also all sorts of videos about the past weeks I think this is like the fourth episode of KT news So if you're interested interested to know about how things work in KT land, then go check them out And well, to be honest, those are a bit more interesting that this one I was a bit tired, but go check them out and see you tomorrow with another video