Open nnuel opened 2 years ago
hey, glad you like the theme! the best way you can accomplish what you want is to use the dev branch to build the theme yourself, and then go into the build script and change the sizes from there. however, the build script at the time I forked the original repo has all the sizes hardcoded, so it will be a tedious task. I can definitely start working on a legitimate build config file for that purpose though.
I am working with sway and wayland. I found the cursor-size setting, which works on the desktop, but in the browser and on the statusbar it still retains the default 20/24? I am setting it to 40, so it's a lot more visible.
The translucent theme is the only thing that sort of comes close to the windows XOR cursor theme, in which it adopts the negative of what color is underneath the cursor.
So in short, I will report back and it is good to know I can build it from source and change the size there. If I do a find/replace the size it should be that big a PITA.
Thanks for the quick reply, I will show you a screenshot once I am successful.
Alright, I solved it through the following two settings:
gsettings set org.gnome.desktop.interface cursor-size 40
and then in the sway config:
seat seat0 xcursor_theme Bibata_Spirit 40
Then it works both in my desktop and on the browsers. So to my understanding it adds a 50% opacity white in the middle, so on grey it looks black and on white it looks white / very light gray?
It would be impossible to make something that inverts the color right, that the gray in the middle would show up as black on the white background?
Again, it looks really cool, so thanks for making it.
I'm glad you fixed the problem, after hearing more about the problem it seemed like more of an issue with how Wayland handles cursor themes. as far as something that inverts whatever is below it, I think I might be able to do something like that with an xor composite filter, but I'm not certain. I'm playing around in and online svg editor right now, I'll see what I can do in inkscape when I get home.
here's a quick and dirty proof of concept, the shape isn't right but the blending should work. whether it would work in an actual compositor is another question entirely, especially since I compile the theme by converting to png. you may need to wait a little for the video to upload. https://photos.app.goo.gl/6ebo7AG2UnUbHxDC8
That's working great indeed. Yes, I'd have no clue how the cursor would work in the compositor, as it is beyond my skill-level. Do you work with layers, and have an inverted layer on top or does it use another mechanism. Also I am a bit curious what it would give for #808080 color, since it is midgray, it might give the same color, so there'd be still need for an edge and it could be one-color cursor.
A first step would be have a Bibata_Inverted and retain the black edge like you have with Spirit. With the PNG files you simply have an opacity right, so it works regardless of color underneath.
I just changed the compositing mode to difference or exclusion for that layer (seemed to have the same effect in my testing) to achieve the effect. I know that bitmap editors tend to have similar options, but I don't think that it would work after the image has been exported, if that makes sense. I can do some testing later.
doing some extra research on how the xor cursor works, I don't think it's possible to make them work without straight up changing the inner workings of Wayland. at this point it's hacky to even get it working on windows. it would be a really cool concept if I could do it, but sadly it doesn't seem feasible. my apologies.
Thanks for all the checks. I will ask around in the IRC for wayland and sway and hear if someone might know a way. Right now i am still really pleased with the transparent theme, but I guess in the ideal scenario, it would be indeed a difference/exclusion type mono-color icon. I will report back here once i have more info, but I share your sentiment that it probably isn't possible, but no need to be sorry for it.
What is the translucence set to for the Spirit version. Most of my accent-colors are #808080 and I wonder if it is possible or how it would be, if I make it either solid and that color, or have it be exactly 0.5 translucence, which should result in #808080 on pure black. The color is middle gray and I am contemplating on what be as minimal as possible without using the inverting trick, because I agree, that would make it a lot more difficult, because with the translucence you don't need the information from the layer beneath.
I think the color on bibata spirit is pure white at 0.6 opacity. I could test 0.5 opacity for visibility on various backgrounds when I have some free time.
That would be great. Can you set a parameter for all the icons at once or is there a lot of work involved? I'd like to compare the 0.5 opacity white with a 1.0 opacity midgray. I would be up to learning how to do it myself, because then I can also make the colored loading icons in grayscale. Bibata-Gray if you will.
I could probably use some regex to change them all at once, so it wouldn't be a huge issue or time sink
Awesome, I'd like to learn how to do this, so I will keep following this and dive into the files as well. Probably would need Inkscape as a program to edit the files or do you edit the properties of the images outside of any program?
This theme looks great, I am just struggling to get it a bit bigger size. The Spirit theme is really nice soft grey, but because of that, a bit bigger would help to make it more visible. I am using LXAppearance, but I am mainly trying to figure out how to adjust the config files directly, so I can also do it if I change programs.