Feed Advanced Search

Apr 30 2020

davidre closed D28744: Rewrite of the global shortcuts kcm.
Apr 30 2020, 4:51 PM · Plasma

Apr 29 2020

davidre added a comment to D29282: QuickEditor: Allow to take screen region screenshot under Wayland.

Can you add some more explanation what the code does in the summary?

Apr 29 2020, 6:00 PM · Spectacle
davidre abandoned D25144: [RFC][Global Shortcuts KCM] Categorize into Applications and System Services.

Superseeded by total rewrite of the kcm

Apr 29 2020, 1:33 PM · Plasma
davidre added a comment to D28744: Rewrite of the global shortcuts kcm.

I find that I'm not able to set shortcuts involving the space key. The key sequence get repeated twice in the button and the Apply button ever becomes enabled. Can you reproduce?

Apr 29 2020, 9:53 AM · Plasma
davidre committed R308:e56def21a286: Print a warning if runner is incompatible with KRunner (authored by davidre).
Print a warning if runner is incompatible with KRunner
Apr 29 2020, 7:31 AM
davidre closed D28624: Print a warning if runner is incompatible with KRunner.
Apr 29 2020, 7:31 AM · Frameworks

Apr 28 2020

davidre added a comment to D28093: [breeze-icons] add TeamViewer tray icons.

Couldn't we put the tray icon in the plasma theme?

Apr 28 2020, 3:45 PM · Frameworks
davidre updated the diff for D28744: Rewrite of the global shortcuts kcm.
  • Reinstate the pointingHand mouseAreas
  • Make delegate automatically expand if it's the only one
Apr 28 2020, 3:36 PM · Plasma
davidre committed R166:f00994d98aed: Remove PLASMA_MIN_VERSION (authored by davidre).
Remove PLASMA_MIN_VERSION
Apr 28 2020, 3:03 PM
davidre updated the diff for D28744: Rewrite of the global shortcuts kcm.
  • Make the delegate use states
Apr 28 2020, 1:49 PM · Plasma
davidre added a comment to D29154: Use QWindow overload of QIcon::pixmap.

I did some digging and think that things should be repainted when they change screen
https://code.woboq.org/qt5/qtbase/src/widgets/kernel/qwidgetwindow.cpp.html#_ZN13QWidgetWindow18handleScreenChangeEv

Apr 28 2020, 11:48 AM · Plasma
davidre added inline comments to D29232: Introduce the Header color set.
Apr 28 2020, 6:58 AM · Frameworks

Apr 27 2020

davidre added inline comments to D29232: Introduce the Header color set.
Apr 27 2020, 8:25 PM · Frameworks
davidre added a comment to D29225: Resize all item style.

Yeah I don't think we are going to just randomly change that many constants based on two screenshots. This needs a wide discussion imo with what goals to achieve and the problems with the current breeze and much more comparisons.

Apr 27 2020, 3:12 PM
davidre updated the diff for D28744: Rewrite of the global shortcuts kcm.

rebasae

Apr 27 2020, 7:29 AM · Plasma
davidre updated the diff for D28744: Rewrite of the global shortcuts kcm.
  • Use model.* properties
  • Use placeholder message
  • Still don't know why model properties are undefined when switching components
Apr 27 2020, 7:25 AM · Plasma

Apr 25 2020

davidre added a comment to T10568: Opacity Shortcuts Suggestion for Kubuntu.
In T10568#228110, @ach wrote:

FWIW I agree with David argument in the bug report and to reject the suggestion for 2 more global shortcuts.

Nevertheless you have IMHO a valid point: hard discoverability. The global shortcut
settings page could be enhanced. Enhancing this would not only help others finding
you personal favourite feature(s) but all others too.

Adding 'User Feedback' what global shortcuts people really set, could help in
future decision what action is probably a candidate for a global shortcut.

stay healthy, Achim

Apr 25 2020, 1:25 PM · Kubuntu
davidre added a comment to D29140: Show POTD in lock screen.

To totally solve the issue, there are several solutions I can find:

  1. POTD need to have a daemon process that can always access network. The lock screen send request to the daemon through DBus or other protocol.
  2. Create an invisible lock screen widget in the desktop, so it fetches and updates the POTD even before screen locks.

    The second option is much easier to do. Both will cause some performance impact.
Apr 25 2020, 9:34 AM · Plasma
davidre added a comment to D29154: Use QWindow overload of QIcon::pixmap.

Actually everything in the sidebad is very blurry at 2x

Apr 25 2020, 9:03 AM · Plasma
davidre added a comment to D29154: Use QWindow overload of QIcon::pixmap.
In D29154#656690, @apol wrote:

This is what it looks like for me with the patch applied.

scale 1x:


scale 2x:

master:
scale 1x:


scale 2x:

I can see a noticeable wonky-ness on 1x master, so I'd say this patch helps.

Apr 25 2020, 9:03 AM · Plasma

Apr 24 2020

davidre added a comment to D29157: force systemsettings for kcms.

Maybe todo remove?

Apr 24 2020, 5:23 PM · Plasma
davidre added a comment to D29154: Use QWindow overload of QIcon::pixmap.
In D29154#656585, @apol wrote:

+1

I did the same thing for kirigami @ D29100 and plasma-framework @ D29102 yesterday after looking at Qt's code and assessing it was the right thing to do.
I am not familiar with Breeze's code but the patch is sound.

I do have all of the dpis so if you tell me how I'll test it.

This should probably fix the BUG 418869.

Apr 24 2020, 5:21 PM · Plasma
davidre updated the diff for D29154: Use QWindow overload of QIcon::pixmap.

Correct code style when I'm touching these lines either way

Apr 24 2020, 3:15 PM · Plasma
davidre retitled D29154: Use QWindow overload of QIcon::pixmap from Use QWindow overload of icon.pixmap to Use QWindow overload of QIcon::pixmap.
Apr 24 2020, 3:10 PM · Plasma
davidre added a reviewer for D29154: Use QWindow overload of QIcon::pixmap: davidedmundson.
Apr 24 2020, 3:09 PM · Plasma
davidre requested review of D29154: Use QWindow overload of QIcon::pixmap.
Apr 24 2020, 3:09 PM · Plasma
davidre closed D28908: Use the same icon mode calculation for comboboxes as for buttons.
Apr 24 2020, 2:57 PM · Plasma
davidre committed R31:5a62232415bc: Use the same icon mode calculation for comboboxes as for buttons (authored by davidre).
Use the same icon mode calculation for comboboxes as for buttons
Apr 24 2020, 2:57 PM
davidre committed R31:49cff2127371: Fix variable mixup (authored by davidre).
Fix variable mixup
Apr 24 2020, 2:55 PM
davidre closed D29012: Fix variable mixup.
Apr 24 2020, 2:55 PM · Plasma

Apr 23 2020

davidre updated the diff for D28744: Rewrite of the global shortcuts kcm.
  • Don't drop installing scheme files
Apr 23 2020, 4:29 PM · Plasma
davidre committed R120:9056449edc89: Set a component display name for the action collection of ksmserver (authored by davidre).
Set a component display name for the action collection of ksmserver
Apr 23 2020, 4:05 PM
davidre closed D29058: Set a component display name for the action collection of ksmserver.
Apr 23 2020, 4:05 PM · Plasma
davidre committed R119:e64a3cb2af23: Set component display name for touchboard and keyboard kcm action collections (authored by davidre).
Set component display name for touchboard and keyboard kcm action collections
Apr 23 2020, 4:05 PM
davidre closed D29052: Set component display name for touchboard and keyboard kcm action collections.
Apr 23 2020, 4:05 PM · Plasma
davidre committed R166:426d625a8812: Change position of label in SaveOptions.ui (authored by thiagosueto).
Change position of label in SaveOptions.ui
Apr 23 2020, 1:56 PM
davidre closed D29113: Change position of label in SaveOptions.ui.
Apr 23 2020, 1:56 PM · Spectacle
davidre accepted D29113: Change position of label in SaveOptions.ui.

Bonus points for moving items so that they are in the right order before committing (I know that the spacer was not in the right place before )

Apr 23 2020, 1:19 PM · Spectacle
davidre added inline comments to D29113: Change position of label in SaveOptions.ui.
Apr 23 2020, 7:29 AM · Spectacle

Apr 21 2020

davidre requested review of D29058: Set a component display name for the action collection of ksmserver.
Apr 21 2020, 3:00 PM · Plasma
davidre requested review of D29052: Set component display name for touchboard and keyboard kcm action collections.
Apr 21 2020, 2:39 PM · Plasma
davidre updated the diff for D28744: Rewrite of the global shortcuts kcm.
  • Fix defaults
  • Add pending deletion thing
Apr 21 2020, 2:25 PM · Plasma
davidre added a comment to D28744: Rewrite of the global shortcuts kcm.

Here's how it looks with the old KCM:

So my KDE Daemon category has one entry in French for some odd reason. And the two KRunner entries are indeed still there and different, not merged.

And the Power Management entry is full of duplicates internally and it's very confusing:

So yeah, it's not great in the existing KCM. In the new one it's nice that you can delete these duplicates, but I don't actually know what will happen when I do so, and the inability to get them back if I make a mistake makes me not want to try.

Apr 21 2020, 6:22 AM · Plasma

Apr 20 2020

davidre added a comment to D28744: Rewrite of the global shortcuts kcm.

Yay. Almost there! I just see a few more things:

  1. If I delete a whole item from the left-most list, there's no obvious way to get it back (what if I delete a system entry by accident?)

I agree. Probably should do it like other kcms with pending deletion then.

  1. The Defaults button is present, but always disabled

Hmm it works for me when changing shortcuts or changing defaults but the initial state is wrong probably because loading is now async. Will look into it.

  1. I see duplicate entries with different items inside them:

These are not really duplicated but boil down to that the backend is represented correctly here. Some components have a different unique identifier and happen to have the same user visible name. The old kcm merged them but I don't as I think most of these should be seperate because they are related to different things.

Apr 20 2020, 6:27 PM · Plasma
davidre updated the diff for D28744: Rewrite of the global shortcuts kcm.
  • Implement Kai's idea for importing
  • Fix importing
Apr 20 2020, 6:05 PM · Plasma
davidre updated the diff for D28744: Rewrite of the global shortcuts kcm.
  • Fix scrollview and use level 3 heading
  • use better string
Apr 20 2020, 5:49 PM · Plasma
davidre added a comment to D28744: Rewrite of the global shortcuts kcm.

Clicking the Apply button makes System Settings crash for me:

Fixed now.

Apr 20 2020, 5:34 PM · Plasma
davidre updated the diff for D28744: Rewrite of the global shortcuts kcm.
  • Fix errors and leave error message disabled
Apr 20 2020, 5:32 PM · Plasma
davidre added reviewers for D29012: Fix variable mixup: Breeze, Plasma.
Apr 20 2020, 3:22 PM · Plasma
davidre requested review of D29012: Fix variable mixup.
Apr 20 2020, 3:21 PM · Plasma
davidre abandoned D29011: Fix variable mixup.

Oh I diffed the wrong repo...

Apr 20 2020, 3:20 PM · Frameworks
davidre added reviewers for D29011: Fix variable mixup: Breeze, Plasma.
Apr 20 2020, 3:20 PM · Frameworks
davidre requested review of D29011: Fix variable mixup.
Apr 20 2020, 3:20 PM · Frameworks
davidre committed R119:aecf5f39606d: Remove old schemes (authored by davidre).
Remove old schemes
Apr 20 2020, 2:17 PM
davidre updated the diff for D28744: Rewrite of the global shortcuts kcm.

Use Nate's string

Apr 20 2020, 10:00 AM · Plasma
davidre updated the diff for D28744: Rewrite of the global shortcuts kcm.
  • Fix index reset when clicking reset button and use own property for shortcuts listview

currentIndex was reset to 0 when resetting, now warnings are generated when switching components need to figure out why

Apr 20 2020, 9:57 AM · Plasma
davidre updated the diff for D28744: Rewrite of the global shortcuts kcm.
  • Add tooltip to remove toolbutton
Apr 20 2020, 8:33 AM · Plasma
davidre updated the diff for D28744: Rewrite of the global shortcuts kcm.

Make it build again

Apr 20 2020, 8:29 AM · Plasma
davidre added inline comments to D27669: [kstyle] Tools area.
Apr 20 2020, 6:51 AM · Plasma

Apr 19 2020

davidre added a comment to D22074: Add image annotation via libKImageAnnotator.

Isn't it possible to the annotator? In ksnip it's hidden as long as you have no screenshot, so ksnip on startup is basically a toolbar.

Apr 19 2020, 7:52 PM · Spectacle
davidre updated the diff for D28744: Rewrite of the global shortcuts kcm.
  • Make loading async
  • Make everything async
Apr 19 2020, 3:22 PM · Plasma
davidre added a comment to D22074: Add image annotation via libKImageAnnotator.

I know it's a bit ugly but maybe we can then dynamically construct/destroy the annotator on button press to combat this?

Apr 19 2020, 2:16 PM · Spectacle

Apr 18 2020

davidre added a comment to D28908: Use the same icon mode calculation for comboboxes as for buttons.

Oddly, I can't reproduce the bug this fixes in all comboboxes. KSysGuard's process filtering and tools comboboxes are right next to each other and have different behavior.

This patch causes another problem with all monochrome icons on the Breeze colorscheme though:

Apr 18 2020, 7:15 PM · Plasma
davidre added a comment to D22074: Add image annotation via libKImageAnnotator.

The reason that the spectacle window is larger on start because the annotator cannot be smaller because of the annotation tools sidebar I think

Apr 18 2020, 8:58 AM · Spectacle

Apr 17 2020

davidre added inline comments to D28744: Rewrite of the global shortcuts kcm.
Apr 17 2020, 3:39 PM · Plasma
davidre updated the diff for D28744: Rewrite of the global shortcuts kcm.
  • Use less DBus calls for loading
Apr 17 2020, 3:39 PM · Plasma
davidre updated the diff for D28744: Rewrite of the global shortcuts kcm.
  • Fix defaults
Apr 17 2020, 2:55 PM · Plasma
davidre updated the test plan for D28744: Rewrite of the global shortcuts kcm.
Apr 17 2020, 1:33 PM · Plasma
davidre updated the diff for D28744: Rewrite of the global shortcuts kcm.
  • Remove components as good as the current kcm
Apr 17 2020, 1:21 PM · Plasma
davidre added a comment to D28908: Use the same icon mode calculation for comboboxes as for buttons.

I don't understand. The palette doesn't change when a widget is selected, does it? The selected state is used by KIconLoader to decide which color to use for text color, or highlight

state == KIconLoader::SelectedState ? pal.highlightedText().color().name() : pal.windowText().color().name(),
Apr 17 2020, 10:02 AM · Plasma
davidre requested review of D28908: Use the same icon mode calculation for comboboxes as for buttons.
Apr 17 2020, 9:31 AM · Plasma
davidre committed R31:66d0b0b4e3e1: Don't set a custom palette if we have the same palette as the currently active… (authored by davidre).
Don't set a custom palette if we have the same palette as the currently active…
Apr 17 2020, 9:04 AM
davidre closed D28830: Don't set a custom palette if we have the same palette as the currently active one.
Apr 17 2020, 9:04 AM · Plasma

Apr 16 2020

davidre added a comment to T10891: Breeze theme evolution.

I would like to do that--though maybe just a bit. However what I really want is rounded bottom corners when there are no borders, which would bring it into consistency with the topcorners. This would require having the window manager clip a few pixels from the window's content, which I know is heresy and sacrilege to some, but I genuinely don't see that it's actually a problem at all.

I couldn't agree more. Most apps don't have anything that close to the corner anyway, and even if an UI element extends that far into the corner, it is usually way bigger, like a sidebar element or a button. Those would not cause any problem. The users wouldn't even notice. And apps that have really small elements in the corners, or corner actions, are so badly designed that people won't use them anyway. Elements of a size where this would be a problem generally stab Fitt's Law in the guts, and visual consistency and appearance should not be sacrificed to make those work.
Alternatively, the default border size could be a bit bigger, allowing for more corner rounding without cutting into window content. In this case though, sidebar entries (like in Discover) should be rounded too, as sharp edges a few pixels away from the edge look odd. This somewhat contradicts the directive to use 1px lines to separate parts of the UI instead of frames or just no separation, but it is worth taking into consideration.
So ultimately the solution is to clip a few pixels, and anyone who is against that solution should present a valid example of this being an usability problem, apart from them (a rare minority of 1-2 people) being used to playing tickle with windows and clicking everything in the bottom left or bottom right 2px by 2px area, or clicking on things in a scrollable view that barely show a few pixels on the bottom of the window.

On the matter of scrolling: Would it be posible to scroll app views in a way that moving the scroll wheel one click up/down moves one row of controls/items up/down, as in makeing sure to fit the entirety of the next row of the layout on the screen? With a smooth animation (and a toggleable setting of course) this would make Plasma and KDE in general feel more modern, snappier and nicer. This smooth scrolling could be implemented for touchpads and touchscreens too.

Apr 16 2020, 5:57 PM · Plasma, VDG, Breeze
davidre added a comment to T10891: Breeze theme evolution.

Konsole is a frequently used and core KDE application. That can have content (part of the first letter) in the corner depending on the window size.

Apr 16 2020, 5:50 PM · Plasma, VDG, Breeze
davidre added a comment to T12984: Disabling/Deleting desktop file components in KGlobalAccel.

Copy the file to writeable location if it is not writeable. This is straightforward.

The local version is just for masking, it doesn't need to be a copy. It just wants to write out.

foo.desktop:

[Desktop Entry] 
 Hidden=true

So you would just create a dummy file if it doesn't exist yet? I don't see how that makes stuff easier?

Then we delete the file when we unmask - that way we don't have any keeping in sync problems.

To me it seems easier, and how I imagined it worked when the initial thing landed.

Nevermind I think I understand :

  1. Delete desktop file in cleanup (if it works all is fine) if not is systemfile and whatever
  2. Create dummy file with hidden= true
  3. When component is added the thing that wants stuff overwote the dummy file?
Apr 16 2020, 9:30 AM
davidre added a comment to T12984: Disabling/Deleting desktop file components in KGlobalAccel.

Copy the file to writeable location if it is not writeable. This is straightforward.

The local version is just for masking, it doesn't need to be a copy. It just wants to write out.

foo.desktop:

[Desktop Entry] 
 Hidden=true

So you would just create a dummy file if it doesn't exist yet? I don't see how that makes stuff easier?

Then we delete the file when we unmask - that way we don't have any keeping in sync problems.

To me it seems easier, and how I imagined it worked when the initial thing landed.


But I'm fine with approach 2 too.
In your fix for 2, why do you make a new entry disabledComponents instead of writing a tag into the relevant [componentName] section

Because I didn't think of it :)

Apr 16 2020, 9:26 AM
davidre updated the diff for D28856: Save disabling of desktop file components in kglobalshortcutsrc.

Don't parse the disabledGroup as component

Apr 16 2020, 8:46 AM · Frameworks
davidre updated the task description for T12984: Disabling/Deleting desktop file components in KGlobalAccel.
Apr 16 2020, 8:38 AM
davidre added a comment to T12984: Disabling/Deleting desktop file components in KGlobalAccel.

<fvogt> Migration should be relatively straightforward: Iterate all .desktop files and components with NoDisplay to the setting
<fvogt> Removing NoDisplay wouldn't be necessary as it would be ignored by kglobalaccel anyway

Apr 16 2020, 8:36 AM
davidre updated the task description for T12984: Disabling/Deleting desktop file components in KGlobalAccel.
Apr 16 2020, 8:35 AM
davidre added a comment to T12984: Disabling/Deleting desktop file components in KGlobalAccel.

I would like to have an action plan as I'm currently doing D28744 and would like to have something working for it. That would mean something in KF 5.70 timeframe. For now we could also only do 1. and 3. and continue using NoDisplay.

Apr 16 2020, 8:29 AM
davidre updated the task description for T12984: Disabling/Deleting desktop file components in KGlobalAccel.
Apr 16 2020, 8:26 AM
davidre created T12984: Disabling/Deleting desktop file components in KGlobalAccel.
Apr 16 2020, 8:25 AM
davidre committed R166:1295fc1f9f6f: Update CONTRIBUTING (authored by davidre).
Update CONTRIBUTING
Apr 16 2020, 7:46 AM
davidre committed R166:16109dee3fbd: Remove obsolete paragraph from CONTRIBUTING (authored by davidre).
Remove obsolete paragraph from CONTRIBUTING
Apr 16 2020, 7:44 AM

Apr 15 2020

davidre updated the diff for D28744: Rewrite of the global shortcuts kcm.
  • Add section checkbox
Apr 15 2020, 6:49 PM · Plasma
davidre updated the diff for D28744: Rewrite of the global shortcuts kcm.
  • Use pointing hand cursor
  • Rename error signals to errorOccured
Apr 15 2020, 4:00 PM · Plasma
davidre added inline comments to D28856: Save disabling of desktop file components in kglobalshortcutsrc.
Apr 15 2020, 3:22 PM · Frameworks
davidre updated the diff for D28856: Save disabling of desktop file components in kglobalshortcutsrc.

foo

Apr 15 2020, 3:07 PM · Frameworks
davidre requested review of D28856: Save disabling of desktop file components in kglobalshortcutsrc.
Apr 15 2020, 3:02 PM · Frameworks
davidre added a comment to D24956: Consider desktop files with NoDisplay attribute.

[14:12] <d_ed> DavidRedondo1: my understanding is that a system might ship "konsole opens with control+t" . The UI allows you to remove that. This would remove the entry in kglobalshortcutsrc, but because it's still in the system defaults file as soon as you log in again it'll add it back

[14:25] <DavidRedondo1> d_ed, fvogt Apparently the runtime writes the hidden thing when a component is cleanedUp https://cgit.kde.org/kglobalaccel.git/tree/src/runtime/kserviceactioncomponent.cpp#n135

This is addressed in D25088

Apr 15 2020, 2:48 PM · Frameworks
davidre updated the diff for D28744: Rewrite of the global shortcuts kcm.
  • Update the delegate
Apr 15 2020, 1:47 PM · Plasma
davidre updated subscribers of D28649: [Notifications] Port to upstream QConcatenateTablesProxyModel.

This causes expired notifications to not vanish any more. This is supposed to work in the following way ExpiredRole is assigned true and NotficiationFilterProxyModel filters expired notifications out. I verified that upon timeout of the timer the data is updated correctly but the filter model behaves in a strange way. Even though filterAcceptsRow returns false the model still includes the index. I added the following debug output to the class: https://phabricator.kde.org/P584
Which results in this debug output

QModelIndex(0,0,0x0,QConcatenateTablesProxyModel(0x557a51b00d90)) is expired
QModelIndex(-1,-1,0x0,QObject(0x0)) not expired
rowCount NotificationManager::NotificationFilterProxyModel(0x557a51f6ab00) QModelIndex(-1,-1,0x0,QObject(0x0)) 1
QModelIndex(0,0,0x0,QConcatenateTablesProxyModel(0x557a51b00d90)) is expired
filter returns for filterAcceptsRow(index(0, mapToSource(parent)) false
rowCount NotificationManager::NotificationFilterProxyModel(0x557a51f6ab00) QModelIndex(-1,-1,0x0,QObject(0x0)) 1
QModelIndex(0,0,0x0,QConcatenateTablesProxyModel(0x557a51b00d90)) is expired
filter returns for filterAcceptsRow(index(0, mapToSource(parent)) false

So it still has one row even though the first row should get filtered.

Apr 15 2020, 12:02 PM · Plasma
davidre created P584 (An Untitled Masterwork) in the S1 KDE Community space.
Apr 15 2020, 11:58 AM

Apr 14 2020

davidre updated the diff for D28744: Rewrite of the global shortcuts kcm.
  • Use QCollator and one more coding style
Apr 14 2020, 4:36 PM · Plasma
davidre updated the diff for D28744: Rewrite of the global shortcuts kcm.
  • Set transient window for application dialog
Apr 14 2020, 4:28 PM · Plasma
davidre updated the diff for D28744: Rewrite of the global shortcuts kcm.
  • redo exportActive and exportWarning bindings
Apr 14 2020, 4:10 PM · Plasma
ngraham awarded D28744: Rewrite of the global shortcuts kcm a Mountain of Wealth token.
Apr 14 2020, 3:21 PM · Plasma
davidre requested review of D28830: Don't set a custom palette if we have the same palette as the currently active one.
Apr 14 2020, 3:10 PM · Plasma