Feed Advanced Search

Apr 24 2018

huoni added a comment to D12458: Overhaul image resize dialog.

Looks good. :)
Only arc patch fails:

Cherry Pick Failed!
Exception 
Command failed with error #1!
COMMAND
git cherry-pick 'arcpatch-D12300'
[...]
Apr 24 2018, 6:44 AM
huoni added a comment to D12483: Change smooth zoom threshold from 200% to 400%.

After the discussion in https://bugs.kde.org/show_bug.cgi?id=270980, I thought I'd create this patch to allow others to easily test out a higher value and provide input.

Apr 24 2018, 2:04 AM · Gwenview
huoni added a project to D12483: Change smooth zoom threshold from 200% to 400%: Gwenview.
Apr 24 2018, 2:01 AM · Gwenview
huoni requested review of D12483: Change smooth zoom threshold from 200% to 400%.
Apr 24 2018, 2:01 AM · Gwenview
huoni added a comment to D12465: Fix custom folder icons using an absolute path entry.

LGTM, apart from the mentioned small custom icon issue (see inline).

Apr 24 2018, 12:40 AM

Apr 23 2018

huoni updated the diff for D12301: Display document count labels in View, Browse, and Full Screen modes.
  • Update i18nc context
Apr 23 2018, 11:48 PM · Gwenview
huoni added inline comments to D12300: Add ability to resize images based on percentage.
Apr 23 2018, 11:38 PM · Gwenview
huoni committed R260:25f2d4483b2d: Add ability to resize images based on percentage (authored by huoni).
Add ability to resize images based on percentage
Apr 23 2018, 11:34 PM
huoni closed D12300: Add ability to resize images based on percentage.
Apr 23 2018, 11:34 PM · Gwenview
huoni added a comment to T6321: [WISH] Create a quick image editor for Spectacle.

Anyhow, here another solution, the one that you mentioned last. It's the same approach that Microsoft uses in PowerPoint, there you can have multiple items selected and you can select one by one

I'm still refactoring that thing but the visual should not change.

+1, that's great, and a very common UI in drawing apps.

Apr 23 2018, 3:48 AM · VDG, Spectacle
huoni added inline comments to D12458: Overhaul image resize dialog.
Apr 23 2018, 3:02 AM
huoni added a comment to D12301: Display document count labels in View, Browse, and Full Screen modes.

Some smaller things, but looks good mostly.

In the end this endeavor turned into more than simply displaying "1/10" in the statusbar, but I think it was worth it!

Apr 23 2018, 1:32 AM · Gwenview
huoni updated the diff for D12301: Display document count labels in View, Browse, and Full Screen modes.
  • Use contents margins instead of stylesheets
  • Remove old include
  • Formatting
  • Variable rename
Apr 23 2018, 1:32 AM · Gwenview
huoni added a comment to D12429: Ensure full screen info label shows at least two lines of text.

Cool, works great! Perfection level 99% in the code ;)

Apr 23 2018, 12:56 AM · Gwenview
huoni added a comment to D12458: Overhaul image resize dialog.

Revert allowing to resize horizontally.

Let's wait what people think.

No need to wait for that, @huoni originally set a fixed size, after all.

Apr 23 2018, 12:55 AM
huoni added a comment to D12300: Add ability to resize images based on percentage.

I don't know, try it out ;) In the end there should be no division by zero, and there should be some lower (1x1) and upper (??) bounds in terms of pixel size.

Hm, thought about this again. The percentage spinbox allows to scale up to 10x, or to reduce size by factor 100 (after dropping the decimals in my patch, at least), e.g. from 20000px to 200px. I think that should be more than enough.

Also, the pixel spinbox takes precedence, thus allowing to override the percentage spinbox, so users can still set whatever they want. IOW, I wouldn't change anything in how it currently works.

Apr 23 2018, 12:48 AM · Gwenview
huoni updated the diff for D12300: Add ability to resize images based on percentage.
  • Remove the resize prevention
  • Remove size policies for pixel spin boxes
Apr 23 2018, 12:43 AM · Gwenview

Apr 22 2018

huoni added a project to D12429: Ensure full screen info label shows at least two lines of text: Gwenview.
Apr 22 2018, 3:28 AM · Gwenview
huoni requested review of D12429: Ensure full screen info label shows at least two lines of text.
Apr 22 2018, 3:24 AM · Gwenview
huoni added a dependent revision for D12301: Display document count labels in View, Browse, and Full Screen modes: D12429: Ensure full screen info label shows at least two lines of text.
Apr 22 2018, 3:24 AM · Gwenview

Apr 21 2018

huoni added a comment to D12301: Display document count labels in View, Browse, and Full Screen modes.

Aha! I've noticed this too: rm ~/.config/gwenviewrc shows 1 line, wiggling the slider shows 2 lines even for the lowest setting. Sure, go ahead and change it (but make sure to test with other styles too).

Hmm, different widget styles are a problem. But that seems to be an existing issue. The minimum thumbnail bar height is different depending on the style (it's set to mRightToolBar->sizeHint().height()).
Perhaps this needs a rework in a separate diff? 1) Make sure default and minimum sizes are the same (dynamically calculate default). 2) Ensure the minimum/default size shows exactly two lines.

Doing this in a separate patch sounds like a good plan. In general hardcoding sizes in the UI file is unfortunate, this should all be done by the layout itself. Or perhaps it just needs an adjust() after showing?

Apr 21 2018, 8:40 AM · Gwenview
huoni added a comment to D12301: Display document count labels in View, Browse, and Full Screen modes.

Aha! I've noticed this too: rm ~/.config/gwenviewrc shows 1 line, wiggling the slider shows 2 lines even for the lowest setting. Sure, go ahead and change it (but make sure to test with other styles too).

Apr 21 2018, 8:25 AM · Gwenview
huoni added a comment to T6321: [WISH] Create a quick image editor for Spectacle.

@huoni how about something like this for selected items:

Apr 21 2018, 7:40 AM · VDG, Spectacle
huoni added a comment to D12301: Display document count labels in View, Browse, and Full Screen modes.

One more thing about the fullscreen label: Before the patch it was centered vertically, now it is quite crammed to the top. I don't think we can change anything fundamental there, but perhaps we can tweak it a bit: For the default height, two lines of text are showing, but the bottom line is still positioned a bit above the image counter. If there was a way to manually align both, the top line would get a tiny bit more space to the top.

Apr 21 2018, 7:31 AM · Gwenview
huoni updated the diff for D12301: Display document count labels in View, Browse, and Full Screen modes.
  • Switch to KSqueezedTextLabel, and also use it in Browse mode
  • Adjust full screen label margins so that labels line up at min height
Apr 21 2018, 7:31 AM · Gwenview

Apr 20 2018

huoni added a comment to D12346: Remove duplicate overwrite confirmation dialog.

Also LGTM :)

Apr 20 2018, 6:25 AM
huoni added inline comments to D12301: Display document count labels in View, Browse, and Full Screen modes.
Apr 20 2018, 6:00 AM · Gwenview
huoni updated the summary of D12301: Display document count labels in View, Browse, and Full Screen modes.
Apr 20 2018, 5:59 AM · Gwenview
huoni updated the diff for D12301: Display document count labels in View, Browse, and Full Screen modes.
  • Add UI markers to i18nc contexts
  • Hide 0 image/video count unless 0 of both in Browse
  • Implement autohiding doc count label in View mode
Apr 20 2018, 5:55 AM · Gwenview
huoni added a comment to D12300: Add ability to resize images based on percentage.

Thirded! Looks good.

Apr 20 2018, 12:01 AM · Gwenview

Apr 19 2018

huoni added a comment to D12301: Display document count labels in View, Browse, and Full Screen modes.

Any extra width will cause more wrapping for the filename, because the labels are in a horizontal layout. I will try a vertical layout, which will mean the filename will only get one line's worth of space at minimum (default) thumbnail size.

It's not only about the filename, isn't it? You can choose to display all sorts of meta information there, spanning more than 5 lines in extreme cases. I don't think a single line will do. I don't think the linebreaks are too bad, my comment in the bug was more about the fact that despite so much whitespace you already needed two lines. I guess that's solved in the current version of your patch, so nothing to worry about IMO.

Apr 19 2018, 12:14 AM · Gwenview

Apr 18 2018

huoni updated the summary of D12300: Add ability to resize images based on percentage.
Apr 18 2018, 11:55 PM · Gwenview
huoni updated the summary of D12301: Display document count labels in View, Browse, and Full Screen modes.
Apr 18 2018, 11:45 PM · Gwenview
huoni added a comment to D12301: Display document count labels in View, Browse, and Full Screen modes.

Cool. Some quick feedback and final tweaking for things we did not catch in the design phase:

  • Please don't forget about BUG: 203042 ;)
  • Browse mode:
    • I'd prefer "with the last part hidden if there are no videos" over "0 videos".
Apr 18 2018, 11:44 PM · Gwenview
huoni added a comment to D12300: Add ability to resize images based on percentage.

Works good for me.
Only when I modify pixel size too small or too big the percentage values does not update below 1.00 % or over 999.00 %.

Apr 18 2018, 11:17 PM · Gwenview
huoni updated the test plan for D12300: Add ability to resize images based on percentage.
Apr 18 2018, 6:00 AM · Gwenview
huoni added a comment to D12301: Display document count labels in View, Browse, and Full Screen modes.

Point of discussion: Compare / Light table mode. In normal View mode, I simply hide the document count in order to make room for the Synchronize checkbox. But in Full Screen mode, this is unnecessary, so it's not hidden.
So do we leave it like this, even if there's inconsistency? Show the label in normal View mode and but hide if the window width too small? I feel like the count isn't super useful in this mode anyway, so I would be happy leaving it like it is.

Apr 18 2018, 5:59 AM · Gwenview
huoni added a project to D12301: Display document count labels in View, Browse, and Full Screen modes: Gwenview.
Apr 18 2018, 5:51 AM · Gwenview
huoni requested review of D12301: Display document count labels in View, Browse, and Full Screen modes.
Apr 18 2018, 5:41 AM · Gwenview
huoni added a comment to D12300: Add ability to resize images based on percentage.

What are people's thoughts on lack of "width" and "height" labels? We could do something similar to KolourPaint where the columns are labelled.

Apr 18 2018, 4:52 AM · Gwenview
huoni added inline comments to D12300: Add ability to resize images based on percentage.
Apr 18 2018, 4:42 AM · Gwenview
huoni added a project to D12300: Add ability to resize images based on percentage: Gwenview.
Apr 18 2018, 4:36 AM · Gwenview
huoni requested review of D12300: Add ability to resize images based on percentage.
Apr 18 2018, 4:33 AM · Gwenview

Apr 17 2018

huoni added a comment to T6321: [WISH] Create a quick image editor for Spectacle.

I'm not sure about the selection rectangle, especially for lines/arrows. I think drawing an outline/stroke to indicate selection would look better, and perhaps less confusing when there are a lot of shapes selected. Additionally, the resize handles already indicate which item is selected, so you could go without the selection outline when only one item is selected.

I was trying to accomplish this before but it isn't that easy with the tools that I currently have. I was not able to get only the outline of items as they are composed of paths and you get some strange construction when you try only to draw the outline. What could eventually work is using something like the shadow effect to have the outline, but that is just some guess. I'll try to play around with it more, let's see if I can come up with something. Any other ideas are also welcome.

Apr 17 2018, 11:42 PM · VDG, Spectacle
huoni added a comment to T6321: [WISH] Create a quick image editor for Spectacle.

Would be nice if you could test it out and give me some feedback.

Apr 17 2018, 1:44 AM · VDG, Spectacle

Apr 14 2018

huoni added a comment to D11798: Ensure image View actions are disabled upon switching to Browse.

At least you won't get bored in the meantime with CMYK and the statusbar…

Apr 14 2018, 11:35 PM
huoni added a comment to D12187: Fix reloading of SVG images.

Tested and working in both cases, and code makes sense.

Apr 14 2018, 11:15 PM

Apr 13 2018

huoni updated the summary of D11879: Allow dragging files/folders to View mode.
Apr 13 2018, 3:26 AM · Gwenview
huoni added inline comments to D11879: Allow dragging files/folders to View mode.
Apr 13 2018, 3:25 AM · Gwenview
huoni updated the diff for D11879: Allow dragging files/folders to View mode.
  • Explicitly pass ViewMainPage to DocumentViewContainer
Apr 13 2018, 3:25 AM · Gwenview
huoni updated the diff for D11879: Allow dragging files/folders to View mode.
  • rebase
Apr 13 2018, 3:16 AM · Gwenview
huoni updated the diff for D11877: Allow dragging from View mode to external applications.
  • rebase
  • update summary
Apr 13 2018, 3:08 AM · Gwenview
huoni added a comment to D11798: Ensure image View actions are disabled upon switching to Browse.

Sorry to hear, but which Diff is this supposed to be a duplicate of? For me the problem is still there, and your patch fixes it (pending complete review).

D11633

Oops ;) I guess I did not make the connection because you retitled the other Diff.

Apr 13 2018, 12:28 AM
huoni added a comment to D12163: Add AppStream release notes for 17.12 to 18.04.

What if we provided the <release> tag XML on the website, instead of embedding in the tarball? Discover could then just pull it down live and display them the same way it does currently.
If I understand it correctly, that would result in the same good UX like this patch, which also avoiding the issues with having developers embed the release notes in the tarball.

Apr 13 2018, 12:07 AM

Apr 12 2018

huoni added a comment to D12059: Fix size/alignment of compare view selection rectangle.

This technically clips up to 1 pixel of the actual SVG, but I still agree it's the best solution.

Hm, hard to reproduce for me. For my test SVG I could not get the red border to be clipped, even when trying with other sizes (i.e. different to 180px width).

Apr 12 2018, 11:27 PM · Gwenview
huoni committed R260:c2e679a7aa60: Fix size/alignment of compare view selection rectangle (authored by huoni).
Fix size/alignment of compare view selection rectangle
Apr 12 2018, 11:22 PM
huoni closed D12059: Fix size/alignment of compare view selection rectangle.
Apr 12 2018, 11:22 PM · Gwenview
huoni updated the diff for D12059: Fix size/alignment of compare view selection rectangle.
  • Remove leftover include
Apr 12 2018, 1:04 AM · Gwenview
huoni added a comment to D12105: Enable redo for undone image operations.

Redo works perfectly, and unit tests succeed. LTGM.

Apr 12 2018, 12:49 AM
huoni added a comment to D12059: Fix size/alignment of compare view selection rectangle.

Another way which made it work good enough for me (i.e. the best among all iterations we tried so far) was reverting your introduction of SvgImageView::setScale (which is a bit brittle anyway), while keeping ItemClipsToShape. I never got a clear gap, only in very few situations there was some antialiasing over the background. Could you try that? If that worked for you, that would be my preferred option.

Apr 12 2018, 12:26 AM · Gwenview
huoni updated the diff for D12059: Fix size/alignment of compare view selection rectangle.
  • Remove setScale to rely on ItemClipsToShape
Apr 12 2018, 12:12 AM · Gwenview

Apr 11 2018

huoni added a comment to D12101: Adapt PlaceTreeModelTest autotest to KIO change.

I tested by:

Apr 11 2018, 12:56 AM

Apr 10 2018

huoni added a comment to D12059: Fix size/alignment of compare view selection rectangle.

Where I still got problems was when I let the rectangle extend generously over both the left and right side of the document (black rectangle on the top), which led to Gwenview drawing the rectangle 1px wider than the transparent background (yellow) (apart from that, clipping to the document size worked fine):

Might as well be a totally different topic, and certainly extending content beyond the document size is not that common.

Apr 10 2018, 11:54 PM · Gwenview
huoni updated the diff for D12059: Fix size/alignment of compare view selection rectangle.
  • Fix some SVGs painting outside their bounds
Apr 10 2018, 11:16 PM · Gwenview
huoni added a comment to D12059: Fix size/alignment of compare view selection rectangle.

Yay, works much better now. I still get some overflow on the right edge, though. Perhaps you also need to adapt the size?

Apr 10 2018, 12:43 PM · Gwenview
huoni updated the diff for D12059: Fix size/alignment of compare view selection rectangle.
  • adjust SVG size so it never goes outside background
Apr 10 2018, 12:33 PM · Gwenview
huoni committed R260:b5f3c592931d: Remove unnecessary update() (authored by huoni).
Remove unnecessary update()
Apr 10 2018, 12:51 AM
huoni closed D12060: Remove unnecessary update().
Apr 10 2018, 12:51 AM
huoni added a comment to D12059: Fix size/alignment of compare view selection rectangle.

In your screenshot, you can see the border is correctly drawn next to the background. It's the SVG itself that seems to be unaligned. I will look into this, and probably submit another patch.

Apr 10 2018, 12:47 AM · Gwenview
huoni updated the diff for D12059: Fix size/alignment of compare view selection rectangle.
  • Also make sure SVGs are drawn at integer coordinates
Apr 10 2018, 12:44 AM · Gwenview
huoni added a comment to D12059: Fix size/alignment of compare view selection rectangle.

For SVGs depending on the zoom level I still get some displacement, however this is also visible when viewing an SVG in single mode, i.e. without a frame. Might be some rounding problem related to where the SVG renderer is placed, so unrelated to this patch but still kinda annoying:

Apr 10 2018, 12:23 AM · Gwenview

Apr 9 2018

huoni added a comment to D12059: Fix size/alignment of compare view selection rectangle.

The current Browse mode frames already seem to contain considerations for these points, maybe cleaning them up and applying them everywhere will be sufficient.

Apr 9 2018, 11:44 PM · Gwenview
huoni added a comment to D12059: Fix size/alignment of compare view selection rectangle.

Or another idea - force it to be drawn 1.5 pixels away from the image, resulting in @rkflx's screenshot but without the gap. That could help with when the image is a similar colour.

Apr 9 2018, 11:52 AM · Gwenview
huoni added a comment to D12059: Fix size/alignment of compare view selection rectangle.

Also, a proper fix for this would be to alter the frame, i.e. use a different coloured line or add a shadow. As you can see in my screenshot, this is already the case (not sure why this is missing in Huon's screenshot, probably because of the background colour?).

Apr 9 2018, 11:45 AM · Gwenview
huoni added a comment to D11798: Ensure image View actions are disabled upon switching to Browse.

Duplicate

Sorry to hear, but which Diff is this supposed to be a duplicate of? For me the problem is still there, and your patch fixes it (pending complete review).

Apr 9 2018, 10:49 AM
huoni added a comment to D12059: Fix size/alignment of compare view selection rectangle.

But I would prefer keeping the gap because the frame is nearly invisible if the image has similar colors.

Apr 9 2018, 10:38 AM · Gwenview
huoni added a comment to D10917: Update document cache after renaming a file.

Tested, no issues for me :)

Apr 9 2018, 6:00 AM
huoni abandoned D11798: Ensure image View actions are disabled upon switching to Browse.

Duplicate

Apr 9 2018, 4:03 AM
huoni requested review of D12060: Remove unnecessary update().
Apr 9 2018, 3:45 AM
huoni added a comment to D12059: Fix size/alignment of compare view selection rectangle.

I'm not sure if my comments sufficiently explain the reasoning. Would welcome feedback, especially since it feels necessary to explain things in multiple places.

Apr 9 2018, 3:36 AM · Gwenview
huoni added a project to D12059: Fix size/alignment of compare view selection rectangle: Gwenview.
Apr 9 2018, 3:33 AM · Gwenview
huoni requested review of D12059: Fix size/alignment of compare view selection rectangle.
Apr 9 2018, 3:29 AM · Gwenview
huoni committed R260:4fcdb821582f: Rename Transparent background config options (authored by huoni).
Rename Transparent background config options
Apr 9 2018, 12:25 AM
huoni closed D11824: Rename Transparent background config options.
Apr 9 2018, 12:25 AM · Gwenview
huoni committed R260:25fb575e7008: Improve Image View fade transitions (authored by huoni).
Improve Image View fade transitions
Apr 9 2018, 12:24 AM
huoni closed D11795: Improve Image View fade transitions.
Apr 9 2018, 12:24 AM · Gwenview
huoni committed R260:7cb584e27286: Add "None" option for transparent background in Image view (authored by huoni).
Add "None" option for transparent background in Image view
Apr 9 2018, 12:23 AM
huoni closed D11630: Add "None" option for transparent background in Image view.
Apr 9 2018, 12:23 AM · Gwenview
huoni committed R260:836ec0e40825: Add support for configurable transparent background to SVGs (authored by huoni).
Add support for configurable transparent background to SVGs
Apr 9 2018, 12:23 AM
huoni closed T8125: Add support for configurable transparent background to SVGs as Resolved by committing R260:836ec0e40825: Add support for configurable transparent background to SVGs.
Apr 9 2018, 12:23 AM · Gwenview
huoni closed D11629: Add support for configurable transparent background to SVGs.
Apr 9 2018, 12:23 AM · Gwenview

Apr 8 2018

huoni updated the test plan for D11795: Improve Image View fade transitions.
Apr 8 2018, 11:41 PM · Gwenview
huoni added inline comments to D11795: Improve Image View fade transitions.
Apr 8 2018, 11:38 PM · Gwenview

Apr 7 2018

huoni added inline comments to D11795: Improve Image View fade transitions.
Apr 7 2018, 11:17 PM · Gwenview
huoni committed R260:d5ab1869c467: Fix SVGs overlapping selection rect in View compare mode (authored by huoni).
Fix SVGs overlapping selection rect in View compare mode
Apr 7 2018, 9:58 PM
huoni closed D11942: Fix SVGs overlapping selection rect in View compare mode.
Apr 7 2018, 9:58 PM
huoni updated the test plan for D11942: Fix SVGs overlapping selection rect in View compare mode.
Apr 7 2018, 9:56 PM
huoni added a comment to D12023: Fix shortcut config changes sometimes not updating until restart.

I can't reproduce this on 18.04 or 17.12.3 (my system version), so I'm afraid I can't test.

Apr 7 2018, 9:49 PM
huoni added inline comments to D11795: Improve Image View fade transitions.
Apr 7 2018, 12:25 AM · Gwenview
huoni updated the test plan for D11942: Fix SVGs overlapping selection rect in View compare mode.
Apr 7 2018, 12:22 AM