 Hello and welcome to yet another episode of Maybe Nicolo is not that useless after all. Today we are going to talk about a merge request that I'm currently working on for plasma frameworks. Now, as always, this is not actually merged yet. I think it should be. I don't think why it should be pulled back. However, it is not finished. It could change. It could be discussed further from the visual design group. It is not final yet. I do think that there is important stuff to talk about. And well, funnily enough, it is mostly about the corners back yet again. But through that, I actually wanted to make the corners more rounded. And there's also now an outline. So let's go through that very quickly. Now, if you don't know what the corners back is for the plasma panels and for the plasma dialogues, then you should totally watch my previous video on the corners back where I talk about how about how I fixed it, because at the end, I also talk about the fact that there is an issue with it. And that is from the very latest version of plasma currently, people, especially with a dark panel, it's particularly noticeable, have a one pixel outline around the panel where they can see the wallpaper, which is bad. And totally, I should have, I should have said that coming. However, when I thought, okay, but that was weird because my patch was literally making taking what was currently being done in dialogues, as an example, because this is not kickoff as an example, this dialogue, I was doing what was done there and doing it on the panel as well. So I thought, why do we have this glitch in the panel when it is not there in dialogues? Turns out, it's also their own dialogues. Just people hadn't noticed that much yet. So how do we how do we address that? Okay, so I thought about it a lot. And eventually I give up, I give up on the idea that if we currently have we draw things with rounded corners, because we do like rounded corners. And okay, that makes sense. And at the same time, these things are transparent. So behind them, they need to have blur and contrast effects. The issue is that the mask for the blur and contrast effect is not anti aliased, which means it's going to be pixelated. Whereas the actual SVG corner is anti aliased, which means it's going to be smooth. And if you draw something smooth on top of something pixelated, you're going to see some places where you see the blur and the contrast effect. But there's normally should be hidden from the, you know, SVG, but it's not because it's pixelated and it bleeds outside. So there's no way to avoid that. I'm, I'm sad, I'm sad to say there's no way to avoid. So either let's try to do our best, our reasonable best to fix reasonable best. So first of all, currently the rounded corners in Katie plasma are so not rounded, like they're just few pixels rounded. And those pixels are few enough that when the mask is not anti aliased, it's basically a rectangle that that's how little rounding we currently have. So if we use a little more rounding on these elements, the issue will still be there, but it will be slightly less noticeable because now the blur won't be a rectangle. It will be a rounded rectangle, which is still going to be pixelated compared to the SVG, but at least it's not a rectangle anymore. It's some it's a step forward. Okay. Number two, now we have trouble that now we have for all windows actually, let me bring up Dolphin. You might notice that all of Dolphin now has an outline. We actually added, we, we I did nothing. Somebody else in Katie added outlines for Windows, which was pretty cool. You can find the author talking about that on Planet Katie. So I thought, okay, we can do the same thing in the bridge theme for Katie Plasma. So in dialogues, so, you know, here, we can make the same thing here. And that's actually going to help us hide the glitch at the corners because we're actually drawing an outline on top of it. And if you draw an opaque outline on top of a bug, then it's not there. Nobody will know about it. So did that work? Obviously not. Where's the issue? So in Plasma, in the Plasma theme, you just have two colors. These two colors are the color of the background, which is white and the color of the text, which is black. If you're using BriskDark, these two are inverted. So background is white and text is background is black and text is white. So I can just use these two colors. So if I want to do something gray, as an example, I have to draw something white and then something black on top of it. And then I can play with different levels of opacity. But I always need to remember then that whenever we switch from Brisk Light, BriskDark or Opposite, these two colors are going to be switched. So now there's a tough choice. How much light and how much dark and which one of the two should be on top of the other one? And how transparent should each of those be? And the answer is I tried some values. I don't know. Why is everybody looking at me? No, okay. So what I decided to go with is I actually only use white. So my outline is purely white in Brisk Light and black in BriskDark. Now, this means that in Brisk Light, it's almost impossible to notice it. Like, I think I've enabled it right now. So in theory, you should notice, yes, you can see it. There is a white outline. It's almost invisible, but there is an outline. And if we switch to BriskDark, which I should probably do because it's where most of the exciting things are happening. But another wallpaper, thank you, this one. Okay, if I switch to BriskDark, now it's much easier to notice that here we do have an outline. Again, you have to zoom and YouTube will compress this, you know, but we do have an outline and we do have an outline here as well. That's the zoom in. You can see that there is a black outline. So where's this? Well, I cannot go to opaque with this. The outline cannot be 100% opaque as much as I would like it to be, because it's really going to be stark and noticeable both in Brisk Light and Brisk Dark. I need this outline to be a bit transparent. Otherwise, it looks bad. Honestly, honestly, it just looks bad. Which means, of course, that it's not actually going to cover the corners back, which was what I had hoped for. I was hoping for this outline to save me from the corners back, but if I don't make it completely opaque, then it's not going to cover, it's going to cover it partially because it's still somewhat opaque, but it's still transparent as well. So you still see that underneath the outline, there are some bugs that are going on. So what else? What else should I do? I tried more rounded corners, an outline and a field. So what else? So again, go watch the previous video if you haven't, because now I'm going slightly just slightly more technical, but here's the thing. So I've talked about how to address this bug at the corners. We take the mask and we make the whole mask one pixel smaller on each side so that this pixelated area instead of being on the corner is inside covered by the SVG, and so it's much, much less noticeable. That was the fix. However, this has the side effect of also making the mask smaller on top, bottom, left and right, because you're making it smaller by one pixel. That was the whole thing. And on things like the panel, it will mean that in the four sides of the panel, you will see the background in the one pixel on the bottom, top, left and right, because we are making the mask, which is blur and contrast effect, one pixel smaller. Sad. It's sad. It's a sad life. So what can we do about it? It seems like we have to choose between having the corners that don't look bad because you can see through them or having, sorry, I meant we can either have the sides that don't look bad because you can see through them or we can have the corners that don't look bad because they don't have like the pixelated area. We have to choose between the sides and the corners. So here's the thing. I've actually decided that we don't have to choose. Let me show you what I did. This is a trick, which is very cool. It's actually horrible. It's a hack, but I mean, if it works, it works, right? I don't know what else to do. So I actually reverted all of the patches that made the mask smaller. So just by this reverting theory, you should see again, the pixels, the white pixels at the corners in breeze dark because those were fixed by making the mask smaller. But look at here. This is the new mask that I'm working on. And you might notice it looks weird. The corners are smaller. So that's the point. I made the mask smaller on the corners, but only on the corners. So the panel is still going to be normal because these four elements, which are the sides, still have a normal size. But when you actually draw the corners, then you have the smaller element, which means that the corners will not have the pixelated area. So it's a win. We did it. We almost, almost did it. We never do it fully. Like, we cannot escape the corners, but it will always be us. So what did I do? What's the issue? I think I can show it to you if I managed to get some dialogue here. Okay, so do you see any bug here at the corners? No, look better. Let's zoom in. Actually, I don't see anything wrong with this, but it's because of the wallpaper. So it only, you can only see it on certain wallpapers because, you know, the color of the panel depends on the wallpaper. And so you can really see the bug only on certain wallpapers. Also, let's make it a panel floating so that it actually has corners and we can look at those. I think it was very noticeable with, I don't remember. Yeah, you can see it here. So if you, if you zoom in to the panel, you can see, you can see that the corners look funky. I mean, you do have the outline, which looks normal. And then the corners, there's this few dark pixels, which look funky. Why is that? Because in the corners, I make the mask smaller, which makes the pixelated area go underneath the SVG. However, even if this mismatch is less noticeable, thanks to the fact that it's underneath the SVG, it's still there. And SVG is transparent. So you can still somewhat see these visually broken corners. But I mean, if you zoom out, it's almost impossible to notice, almost impossible. That's the keyword, almost. It's slightly noticeable, noticeable, but only on certain wallpapers, like, I don't know, this one is fine. You can notice, you can not notice it, this one. Here you do notice it, but only on certain wallpapers and only on brisk dark. And I don't know, I can't do any better. This is as good as it gets. Also, as a side benefit, now the corners of everything are more rounded. Let me actually show that. Yes, these wallpapers. This border is more rounded. This text needs some margin to the left. I know these corners are more rounded. Everything is more rounded. Even if you, I don't know, change the volume. Look at here. Doesn't work. Look at here. Come on. Okay, look at here. This is more rounded than before. Everything got more rounded. Aren't you happy? Also, we also have outlines. I mean, everything's nicer looking now, I think less bags. Actually, the bag is only now noticeable if you're using brisk dark, if you're using certain wallpapers, and everything's more rounded and there's an outline. It's a almost win, win, win, win, almost. Anyway, if you jokes aside, jokes aside, if you do want to help me out, do this kind of things, and this is October's data, I haven't updated yet, but it's still like five years an hour. I'm doing this. It's a side hobby thing, and that's fine. But if you do want to help me out, pay for my expenses, food, I'm currently living alone in Sweden. So any donation is fully appreciated, and I'm trying my best. Thanks everybody for following, and see you tomorrow with yet another video of me.