gradienceteam / gradience Goto Github PK
View Code? Open in Web Editor NEWChange the look of Adwaita, with ease
Home Page: https://gradienceteam.github.io
License: GNU General Public License v3.0
Change the look of Adwaita, with ease
Home Page: https://gradienceteam.github.io
License: GNU General Public License v3.0
Currently when user apply a preset, gtk.css is overwritten with the new config.
I propose to add a begin and end balise. And when user apply on a preset, it will just replace the content between balises
No response
No response
The idea of listing all contributors in README is amazing, but maybe it will be better to make a separate file and add link to it?
Because README slowly becomes unreadable
No response
Add preset manager as seen in mockups
No response
When loading a custom preset on startup the application crashes because it attempts to apply the .replace()
method on a file pointer instead of the file name itself. This is the error generated on startup:
Traceback (most recent call last):
File "/app/share/adwcustomizer/adwcustomizer/main.py", line 141, in do_activate
self.custom_presets[file.replace('.json', '')] = preset['name']
AttributeError: '_io.TextIOWrapper' object has no attribute 'replace'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/app/share/adwcustomizer/adwcustomizer/main.py", line 144, in do_activate
"error": "Failed to load preset: " + file,
TypeError: can only concatenate str (not "_io.TextIOWrapper") to str
This is due to line 140 in main.py
and the error is resolved by changing the line from:
self.custom_presets[file.replace('.json', '')] = preset['name']
to,
self.custom_presets[os.path.basename(file.name).replace('.json', '')] = preset['name']
By making this change main.py
successfully gets the filename of the custom preset in the presets
folder as a string and loads the preset on startup correctly.
Good day, thank you for working on this amazing project.
I recently updated Python to 3.10.5 and now AdwCustomizer just crashes with segfault.
[entityinarray@asuspc ~]$ python --version
Python 3.10.5
[entityinarray@asuspc ~]$ flatpak run --devel --command=sh com.github.ArtyIF.AdwCustomizer
[📦 com.github.ArtyIF.AdwCustomizer ~]$ /app/bin/
adwcustomizer blueprint-compiler
[📦 com.github.ArtyIF.AdwCustomizer ~]$ /app/bin/adwcustomizer
Segmentation fault (core dumped)
I'm not very tech-savvy with debugging Flatpak apps, please tell me what I need to do, in order to provide more information.
Thanks!
Clicking on "Reset Applied Color Scheme" notthing happens, launching from terminal don't give any info
Reset all CSS to default ones
Fedora Linux 36 (Silverblue edition)
Latest manual build
Other
I have restarted apps and system
Is it or will it be possible to change the buttons and their colors with AdwCustomizer?
New presets appear only after reopening Preset Manager
Preset Manager
(Palette icon)Explore
tab and Install new presetInstalled
, there is no new presetPreset Manager
, new preset now appearsRefresh list of installed plugins after installing new preset
Fedora Linux 36 (Silverblue edition)
0.1.0-e9dc56a
Flatpak from GitHub Actions - next
No response
Undo
button in toast after removing preset in preset manager
No response
We need to select dark and light for being able to use dark theme.
No response
No response
No response
No response
No response
Manual using meson - main
No response
Using dconf, it is possible to get the currently in use wallpaper. The dconf locations are:
/org/gnome/desktop/background/picture-uri-dark
For dark wallpaper/org/gnome/desktop/background/picture-uri
For light wallpaperThis would be very useful, as when using default wallpapers, it can be tricky navigating/finding the one currently in use. This would also be great in combination with #217 as it would enable for a better out of the box experience that would "just work".
No response
Make Select Background
button be same height as Apply
button
No response
When clicking the link in the readme to open Flathub, Flathub gives an app not found error. When searching Flathub for Gradience no results are found
Download on Flathub
I expected to see it on Flathub
Arch Linux
No response
Other
No response
Search not working in Preset Manager
Preset Manager
Explore
tabPretty Purple
No response
Fedora Linux 36 (Silverblue edition)
0.1.0-e9dc56a
Flatpak from GitHub Actions - next
No response
Palette not applies for adw-gtk3 (native and flatpak)
I created a script here that creates a preset.json file with color definitions from any provided image (Created using material-color-utilities).
I was wondering if it would be possible to integrate this functionality into AdwCustomizer as a section in the themes drop down to allow the user to select an automatically generated light or dark theme using their wallpaper. I don't know if it will be entirely possible because I had to write the script in JavaScript because material-color-utils doesn't currently have a Python library yet.
It's currently slow. The original extension is faster than the in app generator.
There is two possibilities:
No response
No response
Привет, во первых я хотел бы отметить редкость этой ситуации, вам, русскому пользователю линукс, рабочего стола GNOME, пришла такая-же идея как и мне неделю-две назад
Но, раз уж я не успел, я бы хотел помочь с тим проектом, я начну работу над иконкой, а также сделаю некоторые Mock-up'ы интерфейса (если вы согласны)
По-поводу имени для проекта, согласно GNOME HIG, имя не должно быть словом которое сделано из других слов, поэтому я предлогаю другое имя:
Также, если вы захотите, у меня есть некоторые интересные идеи для этого проекта ;)
Something similar to GTK 4's Widget Factory, but with Libadwaita widgets thrown in there too.
Currently, Gradience is installed in /usr/share/adwcustomizer/adwcustomizer
. Python can't load module from here, modules must be in /usr/lib/python3.10/site-packages/
I'm bad with meson, can someone help me ?
Screenshots are old, one is for the first version of Gradience, I think that it would be great to have a screenshot of the preset manager and of monet
No response
ninja: Entering directory `builddir'
[1/3] Generating src/blueprints with a custom command
FAILED: src
/home/joshuamaciel/Gradience/builddir/subprojects/blueprint-compiler/blueprint-compiler batch-compile src/. ../src ../src/ui/error.blp ../src/ui/palette_shades.blp ../src/ui/option.blp ../src/ui/window.blp ../src/ui/app_type_dialog.blp ../src/ui/custom_css_group.blp ../src/ui/presets_manager_window.blp
error: Namespace Adw does not contain a type called MessageDialog
at ../src/ui/app_type_dialog.blp line 4 column 43:
4 |template AdwcustomizerAppTypeDialog : Adw.MessageDialog {
| ^
hint: Did you check your spelling?
hint: Are your dependencies up to date?
ninja: build stopped: subcommand failed.
ninja -C builddir install
Error then happens when trying to install, does not matter if you do global or local install
Install to complete
Fedora 36 Workstation
No response
Manual using meson - main
I double checked all dependencies and I tried starting from scratch as well and still received the same error.
It would be great if there is an option for applying the settings on both light/dark theme, bc when i edit the theme it just applies it for one theme and makes dark mode not working
Hello,
I would like to help translate into Occitan.
Could you add this language to weblate please?
Best regards
No response
Some UI changes that would be good:
Save Preset
button to have colored "✅️"Select Background Image
button in Monet
tabAdvanced
tab, we can use "Clamp" instead of modified CSSApply color scheme
dialog have strange padding between textSaving preset to
message in save
dialog is pretty useless, as user can open presets location with just a buttonNo response
Looks like AdwCustomizer tries to load its icons from default global location, instead of builddir/testdir/share/icons
.
Error message:
(adwcustomizer:27791): Gtk-WARNING **: 18:03:47.069: Failed to load icon /usr/local/share/icons/hicolor/scalable/apps/com.github.AdwCustomizerTeam.AdwCustomizer.svg: Error opening file /usr/local/share/icons/hicolor/scalable/apps/com.github.AdwCustomizerTeam.AdwCustomizer.svg: No such file or directory
No response
Fedora Linux Rawhide
No response
Manual using meson - main
No response
I installed the app from the latest flatpak release. I made a preset and pressed the apply button and set the theme. A toast message said that the preset was applied. But it did not change anything. Both Libadwaita and adw-gtk3 apps remained as before. I tried it again and again. I tried logging out and in again, but it did not help. I have set permissions for both GTK4 and GTK3 according to the guidance from the Readme page. I also have the Nightly SDK build installed. I also tried deleting the GTK4 config files. I can't figure out what I am missing here.
The theme colors should be changed according to my preset. But it did not.
No response
Fedora Linux 37 (Workstation Edition)
0.1.0
Other
No response
Currently, in order to add an override, you have to manually use Flatseal, or run sudo
. This, in my opinion, is a bad UX. There's a way to automatically add overrides to Flatpak by modifying a few files.
The file located in ~/.local/share/flatpak/overrides/global
is how Flatpak reads it's overrides.
If this file is blank or non-existent, it can be replaced by a file containing two lines:
[Context]
filesystems=xdg-config/gtk-3.0;xdg-config/gtk-4.0;
If the file exists with data, appending either the existing filesystems
line (a semicolon-delimited list) or adding it will achieve the same effect
The procedure is the same as above, except the file is located at /var/lib/flatpak/overrides/global
. This, of course, requires root permissions and changes settings for all users, and probably should not be used as much.
During first start, Gradience could ask the user if they would like to automatically enable Flatpak support, adding these lines. Of course, Gradience should also have some way to remove these lines and "disable" Flatpak support.
If you're interested, Flatseal itself does this by checking the values of some environment variables. If these variables do not exist, Flatseal uses the paths I explained above.
You may view these functions at https://github.com/tchx84/Flatseal/blob/master/src/models/applications.js#L34-L60
Another important thing is that the format of the global
file is a GLib KeyFile (https://docs.gtk.org/glib/struct.KeyFile.html, https://lazka.github.io/pgi-docs/#GLib-2.0/classes/KeyFile.html), and instead of parsing this file manually, you can use KeyFile functions instead. For example, GLib.KeyFile.get_string_list would return a List of all the values, instead of parsing manually and splitting the file. This is what Flatpak does in their source code
g_key_file_get_string_list (metakey, FLATPAK_METADATA_GROUP_CONTEXT,
FLATPAK_METADATA_KEY_FILESYSTEMS, NULL, error);
Currently it's just a warning icon, and its purpose only pops up when you click on it. It needs to be changed to something clearer. IMO it should be something like the GTK cube with a 3 on or next to it. Unfortunately, I'm not good with Inkscape, so some help will be needed.
@daudix-UFO maybe?
recently, I've added issue template and in templates you need to agree with code of conduct. So, we need a code of conduct
No response
No response
Originally posted by 0xMRTT August 11, 2022
Currently appstream metadata are empty. We need to add screenshots, link to the repo, etc...
https://freedesktop.org/software/appstream/docs/chap-Metadata.html
@AndroGR asked for committing the name changement
No response
I got this error:
/dev/null 2>&1
Error: module libsass: Child process exited with code 137
It should build
/dev/null 2>&1
Error: module libsass: Child process exited with code 137
Error I get
Arch Linux
Latest Commit
Other
It works using flatpak-builder
Originally posted by 0xMRTT August 12, 2022
Follow the flathub submission guidelines and add required files on com.github.AdwCustomizerTeam.AdwCustomizer . Then merge against merge-pr
I open this as an issue because almost everyone expects Flatpaks to be in Flathub. I'll take a look when ready.
Clicking on Palette
button don't opens the Preset Manager
❯ flatpak run --env=LANG=en com.github.GradienceTeam.Gradience.Devel
(process:2): Gtk-WARNING **: 14:52:17.403: Locale not supported by C library. Using the fallback 'C' locale. DEBUG:root:disabled plugins: [] (process:2): Adwaita-WARNING **: 14:52:17.850: Using GtkSettings:gtk-application-prefer-dark-theme with libadwaita is unsupported. Please use AdwStyleManager:color-scheme instead. DEBUG:root:{} DEBUG:root:file:///usr/share/backgrounds/gnome/adwaita-l.jpg DEBUG:root:adwaita-l.jpg DEBUG:root:/usr/share/backgrounds/gnome/adwaita-l.jpg DEBUG:root:normal run (gradience:2): Gtk-CRITICAL **: 14:52:21.418: Unable to retrieve child object 'offline_label' from class template for type 'GradiencePresetWindow' while building a 'GradiencePresetWindow' DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): raw.githubusercontent.com:443 DEBUG:urllib3.connectionpool:https://raw.githubusercontent.com:443 "GET /GradienceTeam/Community/main/presets.json HTTP/1.1" 200 303 Traceback (most recent call last): File "/app/lib/python3.10/site-packages/gradience/window.py", line 318, in on_presets_button_clicked GradiencePresetWindow().present() File "/app/lib/python3.10/site-packages/gradience/presets_manager_window.py", line 58, in __init__ self.setup_explore() File "/app/lib/python3.10/site-packages/gradience/presets_manager_window.py", line 88, in setup_explore self.search_stack.set_visible("page_offline") AttributeError: 'NoneType' object has no attribute 'set_visible'
palette
buttonA Preset Manager
to show up
Fedora Linux 36 (Silverblue edition)
0.1.0-22d7ac3
Flatpak from manual build - next
No response
GNOME Text Editor gets the system monospace font from what I assume is D-Bus. gsettings get org.gnome.desktop.interface monospace-font-name
does return the desired font name.
Originally posted by daudix-UFO August 9, 2022
With GitHub actions we can generate nightly builds automaticly on pushes, this will help new users install the app without need in building it
I have started working on it in my fork, here you can test it and make changes: https://github.com/daudix-UFO/AdwCustomizer/actions
Little To-Do:
Theme Preview
not working in latest Flatpak CI and local builds
Lab
iconNo response
Fedora Linux 36 (Silverblue edition)
0.1.0-e9dc56a
Flatpak from GitHub Actions - next
No response
I'm gonna use https://github.com/mitsuhiko/pluginbase
No response
The Flatpak install package does not install, it returns with the error:
error: The application com.github.AdwCustomizerTeam.AdwCustomizer/x86_64/master requires the runtime org.gnome.Platform/x86_64/master which was not found
Installing the latest version of org.gnome.Platform/x86_64/
does not help, as there doesn't seem to be a master
option.
Any help would greatly be appreciated.
flatpak install com.github.AdwCustomizerTeam.AdwCustomizer.flatpak
The Flatpak should install
No response
Fedora Linux 36 (Workstation)
0.1.0
Flatpak from Github Actions - main
No response
Monet engine
not working in latest Flatpak CI and local builds
Monet
tabApply
No response
Fedora Linux 36 (Silverblue edition)
0.1.0-e9dc56a
Flatpak from GitHub Actions - next
No response
I have not set XDG_CONFIG_HOME environmental so it won't launch.
Traceback (most recent call last):
File "/usr/share/adwcustomizer/adwcustomizer/main.py", line 120, in do_activate
preset_directory = os.path.join(os.environ['XDG_CONFIG_HOME'], "presets")
File "/usr/lib/python3.10/os.py", line 679, in __getitem__
raise KeyError(key) from None
KeyError: 'XDG_CONFIG_HOME'
I have made this mockup with idea to keep current UI as much as possible, but in same time, make it new, any suggestions appreciated!
New welcome screen and full theme preview will be implemented (hopefully) in V2
I've been trying to get the app to run in Russian for a day now, and I can't. Can anyone help please?
Recently, the devel style was added to the window, we also need a devel icon.
Originally posted by @ArtyIF in #2 (comment)
Some parts of app don't exist in .pot, this parts are:
Monet Palette
in Monet
tabPlugins
section in Advanced
tabWhat's new
and Details
sections in About Gradience
flatpak run --env=LANG=ru com.github.GradienceTeam.Gradience.Devel
All strings being translatable
Fedora Linux 36 (Silverblue edition)
0.1.0-2eea3e9
Flatpak from manual build - main
No response
Add support for SVG wallpapers with the Monet engine, as GNOME uses SVG for (some) of its default wallpapers, like blobs.svg and blobs-d.svg. Right now, when selecting an SVG as an input file, nothing happens with the color palette.
No response
I just installed the application and I cannot run it. Running:
$ flatpak run com.github.ArtyIF.AdwCustomizer
returns 139, no error messages or anything else. What is wrong?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.