kapillamba4 (Kapil Lamba)
User

Projects

User does not belong to any projects.

Today

  • Clear sailing ahead.

Tomorrow

  • Clear sailing ahead.

Saturday

  • Clear sailing ahead.

User Details

User Since
Jun 23 2017, 8:42 AM (356 w, 6 d)
Availability
Available

Recent Activity

Jul 23 2018

kapillamba4 added a comment to D11203: Prevent grouping/duplicating notifications and fix "Open" button issue.

Fix "Open" button in screenshot notification not responding to click

I don't really understand how to reproduce the problem from your test plan. Could you add detailed steps to reproduce, so I can check how it works before and after your patch? Ideally in terms of Spectacle's command line arguments, which should be similar to the global shortcuts.

Jul 23 2018, 10:05 AM · Spectacle
kapillamba4 added a comment to D11203: Prevent grouping/duplicating notifications and fix "Open" button issue.

@rkflx i think someone else should take over

Jul 23 2018, 10:02 AM · Spectacle

Mar 30 2018

kapillamba4 added a comment to D9117: Add shortcuts for copying screenshots to clipboard.
In D9117#237297, @rkflx wrote:

I think i will add notification in https://phabricator.kde.org/D11203 (a checkbox in configure menu of spectacle to toggle show/hide notification on copying to clipboard) after this revision

In that case it would be best to create a new Diff entirely. Also, please don't add a checkbox to Spectacle. As I wrote above, the official way to configure this is via the existing button on the notification (which opens the respective KCM).

Mar 30 2018, 9:55 PM · Spectacle
kapillamba4 added a comment to D9117: Add shortcuts for copying screenshots to clipboard.
In D9117#237295, @rkflx wrote:

@kapillamba4 Are you still planning to add some sort of notification, or should I review the code now? (Won't be done before next week anyway…)

Mar 30 2018, 9:16 PM · Spectacle
kapillamba4 added a comment to D9117: Add shortcuts for copying screenshots to clipboard.

Tested all shortcuts

Mar 30 2018, 7:18 PM · Spectacle
kapillamba4 updated the diff for D9117: Add shortcuts for copying screenshots to clipboard.

Format Code and update patch to work with latest commit b50dc95

Mar 30 2018, 6:42 PM · Spectacle

Mar 10 2018

kapillamba4 updated the diff for D11203: Prevent grouping/duplicating notifications and fix "Open" button issue.

Changed commit message

Mar 10 2018, 11:46 AM · Spectacle
kapillamba4 updated the summary of D11203: Prevent grouping/duplicating notifications and fix "Open" button issue.
Mar 10 2018, 11:39 AM · Spectacle
kapillamba4 added a project to D11203: Prevent grouping/duplicating notifications and fix "Open" button issue: Spectacle.
Mar 10 2018, 7:48 AM · Spectacle
kapillamba4 added a comment to D11203: Prevent grouping/duplicating notifications and fix "Open" button issue.

Open button does not work sometimes for Spectacle v18.03.70:

Mar 10 2018, 7:41 AM · Spectacle
kapillamba4 requested review of D11203: Prevent grouping/duplicating notifications and fix "Open" button issue.
Mar 10 2018, 6:51 AM · Spectacle

Mar 5 2018

kapillamba4 updated the diff for D9117: Add shortcuts for copying screenshots to clipboard.
Mar 5 2018, 7:23 PM · Spectacle
kapillamba4 updated the diff for D9117: Add shortcuts for copying screenshots to clipboard.
Mar 5 2018, 7:19 PM · Spectacle
kapillamba4 updated the diff for D9117: Add shortcuts for copying screenshots to clipboard.

@rkflx, Added kconf_update :)

Mar 5 2018, 7:15 PM · Spectacle

Feb 28 2018

kapillamba4 added a comment to D9117: Add shortcuts for copying screenshots to clipboard.
In D9117#211878, @rkflx wrote:

As for the update mechanism, I found https://forum.kde.org/viewtopic.php?f=17&t=88836. Could you have a look? Perhaps there is an official way we are supposed to use for this.

Feb 28 2018, 2:16 PM · Spectacle

Feb 20 2018

kapillamba4 added a comment to D9117: Add shortcuts for copying screenshots to clipboard.

FWIW, I also do not get the new hotkeys on upgrade, even when I deploy everything to /usr and then reboot. This needs to be fixed or else current users won't get the new feature.

Feb 20 2018, 7:03 PM · Spectacle

Feb 19 2018

kapillamba4 updated the diff for D9117: Add shortcuts for copying screenshots to clipboard.
Feb 19 2018, 6:42 PM · Spectacle
kapillamba4 added a comment to D9117: Add shortcuts for copying screenshots to clipboard.
In D9117#208821, @rkflx wrote:
In D9117#208750, @rkflx wrote:

Somehow there's still a bug. If I make install to /usr from the master branch, Print will call the Spectacle GUI just fine. However with your patch, kded will only print the usual DBus message without the GUI appearing and I have to killall spectacle afterwards.

Can anybody reproduce?

Feb 19 2018, 6:27 PM · Spectacle
kapillamba4 updated the diff for D9117: Add shortcuts for copying screenshots to clipboard.
Feb 19 2018, 6:23 PM · Spectacle

Feb 18 2018

kapillamba4 added inline comments to D9117: Add shortcuts for copying screenshots to clipboard.
Feb 18 2018, 2:15 PM · Spectacle
kapillamba4 added inline comments to D9117: Add shortcuts for copying screenshots to clipboard.
Feb 18 2018, 2:00 PM · Spectacle
kapillamba4 added inline comments to D9117: Add shortcuts for copying screenshots to clipboard.
Feb 18 2018, 1:54 PM · Spectacle
kapillamba4 added inline comments to D9117: Add shortcuts for copying screenshots to clipboard.
Feb 18 2018, 1:49 PM · Spectacle
kapillamba4 updated the summary of D9117: Add shortcuts for copying screenshots to clipboard.
Feb 18 2018, 12:58 PM · Spectacle
kapillamba4 updated the summary of D9117: Add shortcuts for copying screenshots to clipboard.
Feb 18 2018, 12:54 PM · Spectacle
kapillamba4 added a comment to D9117: Add shortcuts for copying screenshots to clipboard.

@rkflx, There is no need to import spectacle.khotkeys file seperately, Spectacle will install spectacle.khotkeys into /usr/share/khotkeys upon installation itself.

Feb 18 2018, 12:31 PM · Spectacle
kapillamba4 added a comment to D9117: Add shortcuts for copying screenshots to clipboard.

@rkflx, what do you think about adding a static variable inside takeNewScreenshotDBus() and takeNewScreenshot() methods to keep track of how many times these methods are called and prevent this D9117#202850 problem

Feb 18 2018, 6:05 AM · Spectacle
kapillamba4 updated the diff for D9117: Add shortcuts for copying screenshots to clipboard.
Feb 18 2018, 5:55 AM · Spectacle
kapillamba4 added a comment to D9117: Add shortcuts for copying screenshots to clipboard.

@rkflx, I didn't update DataCount in spectacle.khotkeys that's why you are not seeing the new shortcuts. I'll just update this patch. You will need to import the spectacle.khotkeys file to get the new shortcuts in kcmshell5 khotkeys

Feb 18 2018, 5:50 AM · Spectacle

Feb 17 2018

kapillamba4 added a comment to D9117: Add shortcuts for copying screenshots to clipboard.
In D9117#208026, @rkflx wrote:

@kapillamba4 Thanks, I'll look at it in a bit. Are you still planning to open a new Diff against Klipper, or should someone else?

Feb 17 2018, 1:09 PM · Spectacle

Feb 16 2018

kapillamba4 added reviewers for D9117: Add shortcuts for copying screenshots to clipboard: rkflx, ngraham.
Feb 16 2018, 5:26 PM · Spectacle
kapillamba4 updated the diff for D9117: Add shortcuts for copying screenshots to clipboard.
Feb 16 2018, 4:06 PM · Spectacle

Feb 8 2018

kapillamba4 added a comment to D9117: Add shortcuts for copying screenshots to clipboard.

wow, it works. Didn't knew that klipper had this option. Should have read the klipper handbook first.
Thanks @rkflx, all six shortcuts work now, no need to use any external program. We should change the default checked state in klipper settings for 'ignore images' to unchecked.

Sounds great, and I would approve of that. Could you open another revision to do this? Thanks!

Feb 8 2018, 8:19 AM · Spectacle
kapillamba4 added a comment to D9117: Add shortcuts for copying screenshots to clipboard.

By multiple connections do you mean multiple instance of the application? If yes then we can change the StartupOption for KDBusService, but i don't see any of these 6 shortcuts creating multiple instance of this application.

Feb 8 2018, 8:09 AM · Spectacle

Feb 7 2018

kapillamba4 added a comment to D9117: Add shortcuts for copying screenshots to clipboard.
In D9117#202346, @rkflx wrote:

@kapillamba4 If I uncheck "Ignore images" in Klipper's settings (it's checked by default, but why?), clicking on Copy To Clipboard and closing Spectacle afterwards allows me to paste the screenshot.

Could you check whether it works then with your patch via DBus too?

Feb 7 2018, 1:43 PM · Spectacle

Feb 3 2018

kapillamba4 added a comment to D9117: Add shortcuts for copying screenshots to clipboard.

I think i will not be able to implement copy image to clipboard feature myself even after reading xclip source code, i had no idea of X11 or wayland before this. And yes there is a danger of making multiple connections (for non-gui/copy-to-clipboard shortcuts), i have just tested it. I think there must be someone workaround for this, I can look for it but i am not sure about implementing the copy image to clipboard feature for x11 myself.

Feb 3 2018, 10:03 PM · Spectacle

Jan 31 2018

kapillamba4 added a comment to D9117: Add shortcuts for copying screenshots to clipboard.

I tried using xclip for this awhile ago. We can add this feature by using QProcess and starting an external process but xclip needs to be installed for this to work. klipper does not seem to support copying images over dbus.

Jan 31 2018, 8:31 PM · Spectacle

Dec 17 2017

kapillamba4 planned changes to D9117: Add shortcuts for copying screenshots to clipboard.
Dec 17 2017, 7:00 PM · Spectacle

Dec 12 2017

kapillamba4 added a comment to D9145: Correct margin for left sidebar.
In D9145#178634, @rkflx wrote:

Latest version LGTM. Thanks a lot again for your patch.

Dec 12 2017, 10:21 AM · KDE Applications
kapillamba4 updated the diff for D9145: Correct margin for left sidebar.
Dec 12 2017, 10:08 AM · KDE Applications
kapillamba4 added inline comments to D9145: Correct margin for left sidebar.
Dec 12 2017, 10:04 AM · KDE Applications
kapillamba4 added inline comments to D9145: Correct margin for left sidebar.
Dec 12 2017, 10:02 AM · KDE Applications
kapillamba4 updated the diff for D9145: Correct margin for left sidebar.
Dec 12 2017, 6:51 AM · KDE Applications
kapillamba4 added inline comments to D9145: Correct margin for left sidebar.
Dec 12 2017, 6:31 AM · KDE Applications
kapillamba4 updated the diff for D9145: Correct margin for left sidebar.
Dec 12 2017, 6:30 AM · KDE Applications

Dec 11 2017

kapillamba4 updated the diff for D9145: Correct margin for left sidebar.
Dec 11 2017, 5:49 PM · KDE Applications
kapillamba4 updated the diff for D9145: Correct margin for left sidebar.
Dec 11 2017, 11:14 AM · KDE Applications
kapillamba4 updated the diff for D9145: Correct margin for left sidebar.
Dec 11 2017, 10:41 AM · KDE Applications
kapillamba4 added a comment to D9145: Correct margin for left sidebar.
In D9145#178193, @rkflx wrote:
In D9145#178033, @rkflx wrote:

I think I found a way to fix the problem properly.

Here we go, fixes submitted for review in D9281 and D9282.

Backstory how I figured it out:

Looking at the other toolbuttons, I saw they worked fine. Then I added some text to the zoom buttons in the status bar and even wrote a test app with only some buttons in different layouts, all working fine. The only explanation left was that there had to be a bug somewhere, meaning it was not Gwenview's fault. And indeed, switching styles the problem happened only with Breeze and Oxygen. But still all other toolbuttons worked fine, how could that be?

Only by chance I stumbled upon the _kde_toolbutton_alignment property in GammaRay. Tracing this one back was not straightforward, but I ended up in Breeze. Seeing the special casing for Gwenview there was quite a suprise, to say the least. One git blame, some code reading and thorough testing later the patch was ready.

Dec 11 2017, 10:38 AM · KDE Applications

Dec 10 2017

kapillamba4 added a comment to D9145: Correct margin for left sidebar.
In D9145#178152, @rkflx wrote:

Can we just set left-margin for title to 3 in constructor of sidebargroup, also set container margin to 3 for Image operation, file operation and meta information and set margin 3 inside ui file for semantic information (not whole of the container)

Depending on what you refer to with "container", the title might have double margin now? Just try it, I guess.

If you want to keep the ui file, I would be okay with that. But instead of the margin setter call at least add a comment to that effect at a similar place in the code.

Dec 10 2017, 6:45 PM · KDE Applications
kapillamba4 added a comment to D9145: Correct margin for left sidebar.
In D9145#178097, @rkflx wrote:

I think the best way would be to try to get rid of semanticinfosidebaritem.ui, i.e. manually create its items in code and essentially have in each sidebar a container (red rectangle) which is then indented at a central place:

Dec 10 2017, 6:16 PM · KDE Applications
kapillamba4 added a comment to D9117: Add shortcuts for copying screenshots to clipboard.

Does klipper support non-text clipboard data? If so, you might consider storing it there rather than in the X11 clipboard.

Dec 10 2017, 5:38 PM · Spectacle
kapillamba4 added a comment to D9145: Correct margin for left sidebar.
Dec 10 2017, 3:21 PM · KDE Applications
kapillamba4 updated the diff for D9145: Correct margin for left sidebar.
Dec 10 2017, 2:45 PM · KDE Applications
kapillamba4 retitled D9145: Correct margin for left sidebar from Correct margin for Left Sidebar for gwenview. to Correct margin for Left Sidebar and fix icon placement in Sidebar buttons for gwenview..
Dec 10 2017, 2:25 PM · KDE Applications
kapillamba4 added a comment to D9145: Correct margin for left sidebar.
In D9145#178033, @rkflx wrote:

Can you remove this? I think I found a way to fix the problem properly. Still needs some fiddling, but I'll have it figured out soon™ (sorry for the cliffhanger :)

Dec 10 2017, 2:24 PM · KDE Applications
kapillamba4 updated the diff for D9145: Correct margin for left sidebar.
Dec 10 2017, 11:55 AM · KDE Applications
kapillamba4 added a comment to D9145: Correct margin for left sidebar.
In D9145#177362, @rkflx wrote:

Ok, then we agree. At least we tried and learned something in the process…

yup

Dec 10 2017, 11:23 AM · KDE Applications
kapillamba4 updated the diff for D9145: Correct margin for left sidebar.

Updated:


Dec 10 2017, 11:15 AM · KDE Applications

Dec 7 2017

kapillamba4 added a comment to D9145: Correct margin for left sidebar.

I actually don't think text input widgets look bad with or without margin.

Dec 7 2017, 7:28 PM · KDE Applications
kapillamba4 added a comment to D9145: Correct margin for left sidebar.
In D9145#177316, @rkflx wrote:

I'm so sorry I have to tell you this, but now it breaks in another place. I'm confident you'll get it right eventually :)

Also, I guess you are still working on the margins of the text input widgets as per my comments?


Edit: Can't edit the inline comment, of course I mean "do NOT remove"…

Dec 7 2017, 7:18 PM · KDE Applications
kapillamba4 added a comment to D9145: Correct margin for left sidebar.
Dec 7 2017, 9:05 AM · KDE Applications
kapillamba4 updated the diff for D9145: Correct margin for left sidebar.

For QT_SCALE_FACTOR=1.4 :

Dec 7 2017, 7:54 AM · KDE Applications

Dec 6 2017

kapillamba4 added a comment to D9145: Correct margin for left sidebar.

I don't think fractional scaling is supported by qt:
https://www.mail-archive.com/kde-devel@kde.org/msg09355.html
https://bugzilla.redhat.com/show_bug.cgi?id=1381828#c1
https://bugreports.qt.io/browse/QTBUG-55654

Dec 6 2017, 10:43 PM · KDE Applications
kapillamba4 added a comment to D9145: Correct margin for left sidebar.
In D9145#176861, @rkflx wrote:

Thanks, I'll look at your updates in a bit.

Meanwhile, please let us know which email address should be used when landing this patch on your behalf.

Dec 6 2017, 6:58 PM · KDE Applications
kapillamba4 added a comment to D9145: Correct margin for left sidebar.

Lovely, much better now!

yup, 👍

Dec 6 2017, 4:23 PM · KDE Applications
kapillamba4 added a comment to D9145: Correct margin for left sidebar.

I still don't know why normal conventional methods like setting stylesheet or setContentsMargin are not working for QToolButton

Dec 6 2017, 4:10 PM · KDE Applications
kapillamba4 added a comment to D9145: Correct margin for left sidebar.
In D9145#176147, @rkflx wrote:

does this look good?

The space between icon and text now looks much narrower than without the patch. I think it was just fine in an unpatched Gwenview, it is only the left margin which needs tweaking. Note that in my screenshot I set the toolbar icon size to "small" to match the sidebar buttons. You can use pixeltool-qt5 or gammaray to make measuring easier.


As for the summary, please don't just repeat the title ;) Write what was wrong (i.e. section header text as well as buttons too close to edge of window when setting window borders to "none") and what fixes this.

Dec 6 2017, 4:05 PM · KDE Applications
kapillamba4 updated the diff for D9145: Correct margin for left sidebar.
Dec 6 2017, 3:59 PM · KDE Applications

Dec 5 2017

kapillamba4 updated the summary of D9117: Add shortcuts for copying screenshots to clipboard.
Dec 5 2017, 7:05 PM · Spectacle
kapillamba4 updated the summary of D9145: Correct margin for left sidebar.
Dec 5 2017, 12:13 PM · KDE Applications
kapillamba4 added a comment to D9145: Correct margin for left sidebar.

@ngraham , @rkflx does this look good?

Dec 5 2017, 12:05 PM · KDE Applications

Dec 3 2017

This is a test notification, sent at Sun, Dec 3, 6:56 PM.
Dec 3 2017, 6:56 PM
This is a test notification, sent at Sun, Dec 3, 6:56 PM.
Dec 3 2017, 6:56 PM
This is a test notification, sent at Sun, Dec 3, 6:55 PM.
Dec 3 2017, 6:55 PM
This is a test notification, sent at Sun, Dec 3, 6:55 PM.
Dec 3 2017, 6:55 PM
kapillamba4 retitled D9145: Correct margin for left sidebar from Correct margin for Left Sidebar and fix icon placement in Sidebar buttons in gwenview. to Correct margin for Left Sidebar and fix icon placement in Sidebar buttons for gwenview..
Dec 3 2017, 6:20 PM · KDE Applications
kapillamba4 retitled D9145: Correct margin for left sidebar from Correct margin for Left Sidebar and fix icon placement in Sidebar buttons to Correct margin for Left Sidebar and fix icon placement in Sidebar buttons in gwenview..
Dec 3 2017, 6:20 PM · KDE Applications
kapillamba4 updated the diff for D9145: Correct margin for left sidebar.
Dec 3 2017, 6:12 PM · KDE Applications
kapillamba4 updated the diff for D9145: Correct margin for left sidebar.
Dec 3 2017, 6:04 PM · KDE Applications
kapillamba4 added a comment to D9145: Correct margin for left sidebar.

I only see margin "3" at 4 places, 3 of which will be added by this patch and
most of the "margin" values seem to be zero.

Dec 3 2017, 5:28 PM · KDE Applications
kapillamba4 added a comment to D9145: Correct margin for left sidebar.

Seems to work with HiDPI for me as well:

Dec 3 2017, 5:23 PM · KDE Applications
kapillamba4 created D9145: Correct margin for left sidebar.
Dec 3 2017, 4:35 PM · KDE Applications
kapillamba4 added a comment to D9117: Add shortcuts for copying screenshots to clipboard.

Copy to Clipboard does not persist after app closes
Just found about this bug

Dec 3 2017, 5:35 AM · Spectacle

Dec 2 2017

kapillamba4 created D9117: Add shortcuts for copying screenshots to clipboard.
Dec 2 2017, 8:38 PM · Spectacle