New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gtk4 port part 2 #515
Gtk4 port part 2 #515
Conversation
@A6GibKm awesome, I'll give it a try today and come back. |
23c7118
to
8ba9e6d
Compare
Where would one set this? I see there is a stylesheet in index.html, but it seems highly non-editable. |
This is generated from Apostrophe's export MD to HTML option, plus a hack I added to remove the embedded fonts. I basically run this https://gitlab.gnome.org/tchx84/apostrophe/-/tree/flatseal . If it's too troublesome we can leave that for later. |
37972dd
to
7522827
Compare
Might I ask what code reveals the in-app notification? I cannot find it. |
It's the widget itself connecting to the permissions model signals, see https://github.com/tchx84/Flatseal/blob/master/src/widgets/undoPopup.js#L42 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks quite good, here's a quick dump of a few details I noticed:
- keyboard: Navigation gets stuck or certain UI elements can't be focused, e.g, use arrows or tab to navigate trough the UI and it will get stuck on apps list or permissions list.
- keyboard: Activation of the main menu (F10) doesn't work e.g, pressing F10 won't open the menu.
- keyboard: Menu items mnemonics don't show up e.g, pressing ALT while menu it's open, won't make the mnemonics show up.
- keyboard: Activation of apps search (CTRL+F) doesn't work e.g, only seems to work if the search button is focused.
- window: When in "compact" mode, can't swipe back from the permissions view to the apps view.
- window: The lower "show details and reset" menu would stay around after the window is back at full size, e.g. switch the window to compact mode, go to the permissions view and then double click the header bar to maximize back to full size.
- permissions: The "other files" section doesn't seem to reset properly e.g, select Flatsealon the apps list, check the "other files" section, now re-select Flatseal multiple times on the apps list, and a lot of duplicate entries will appear on the "other files" section.
- permissions: In addition to the issue mentioned above, these duplicates seem to persist, switching to another app and back doesn't seem to fix it. This doesn't seem to happen at the model level (reset button is kept inactive), so not entirely sure what's going on.
- permissions: In addition to the above, the issue seems to happen to other similar widgets e.g. dbus, variables, persist, etc.
- documentation window: Window title shows app id not the app name.
- documentation window: keyboard shortcuts don't seem to work e.g, CTRL+F won't activate search entry, CTRL+Q won't close the window.
0993373
to
f52a15d
Compare
Could you be more precise on which elements please? Here it works, but there are a few GTK 4 rough edges, like going from the listbox on the left to the header bar. Or going from left panel to right panel using TAB only. You have no clue how helpful this review was. I found multiple things that were broken in more apps and simple fixes for them.
fixed, was it working in gtk3? if so how?
GTK 4 quirk, they appear when starting keynav inside of them, ill try to re-open upstream the issue as it is indeed weird.
What I can reproduce here, is that swiping back goes to the separator (which looks like a grey page) instead of the list of apps, I fixed this. Could you confirm?
This and related items should be fixed in a later commit, try fetching latest commit and please confirm if the issue was indeed fixed.
Fixed, incidentally, the app name was the app id, I fixed this too.
Fixed EDIT:
Fixed |
Also CI is broken, no idea how to fix this one as it uses an image. Probably we can use https://github.com/bilelmoussaoui/ashpd/tree/master/.github/workflows. EDIT: Used just that and CI passes. I have yet to try the bundle. |
I found the following thing, the about dialog has a list of translators, what we usually do is to add a
each translation adds the credit for the specific translators in use instead of having a list of all translations. Do you want to implement this change in this PR? |
d8dbb17
to
782ee84
Compare
Only things missing from my side are
See https://gnome.pages.gitlab.gnome.org/libadwaita/doc/main/named-colors.html |
.github/workflows/CI.yml
Outdated
bundle: "flatseal.flatpak" | ||
manifest-path: "com.github.tchx84.Flatseal.json" | ||
run-tests: "true" | ||
cache-key: flatpak-builder-${{ github.sha }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The tests are "passing" because jasmine-gjs is not included here, and therefore the actual tests are not running.
I am working on this here #514 it has it owns issues. For this PR we should aim to have the tests pass with the current CI setup.
You should be able to run this with a fedora toolbox, installing these dependencies https://github.com/tchx84/gtk-apps-testing-docker-action/blob/gjs/Dockerfile and doing this https://github.com/tchx84/gtk-apps-testing-docker-action/blob/gjs/entrypoint.sh
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am trying but no idea how it works. It might be easier to just update the container in use for now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to make sure there's no misunderstanding here:
All this change is doing is simply disabling the tests. That's not a solution.
That GH action is not working properly either, reason why I am investigating it on #514 , so let's separate that issue from this PR. This PR is big enough as it is. So,
Please remove this change, or we're are simply going to get stuck here.
I suggest you try:
- Creating a Fedora toolbox
- Installing the dependencies as per https://github.com/tchx84/gtk-apps-testing-docker-action/blob/gjs/Dockerfile (copy paste)
- Running "ninja test"
If there's something that is not working or clear, just ask specific questions.
Note that the name of the app is marked as not translatable, this is in line with other uses of it. This will make it so that the default window title is the app name. Closes tchx84#517
This is preferable in GTK 4. Closes tchx84#517
Its only needed a few times. Closes tchx84#517
This is generally not needed. Closes tchx84#517
reset-button was used, but it is wrong. Closes tchx84#517
It's actually used but this can be re-implemented without it. Closes tchx84#517
The 'destroy' signal is not being emitted. Closes tchx84#517
Prefer to use default size and the actual property "maximized". Closes tchx84#517
@A6GibKm great work 🥳 |
I did :) |
This is a continuation of #464
Missing: