Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 1386  / 2 Years ago, mon, july 11, 2022, 5:54:58

In KDE, I use the "Layout based switcher" alt-tab task switcher, with the "Informative" layout. All the layouts that display both icons and text have the icons for all but the currently selected task grayed out.



Is there any way to have all icons displayed in color?



As the purpose of the task switcher is to switch to another task, it really makes no sense to have the icons for those tasks grayed out. All it does is to make it take longer to find the right icon as they look less familiar and much more similar to each other.


More From » kubuntu

 Answers
7

Here's a patch that will force the use of colored icons in the "compact" and "informative" task switcher. It also changes the description font to normal, using bold only for the selected window. It's based on this change: KDE change 104187



Hope this helps!



--- /var/lib/editconf/originals//usr/share/kde4/apps/kwin/tabbox/compact.qml    2012-06-01 06:20:45.000000000 -0700
+++ /usr/share/kde4/apps/kwin/tabbox/compact.qml 2012-08-09 10:52:08.070420127 -0700
@@ -89,11 +89,11 @@
id: delegateItem
width: compactListView.width
height: compactListView.rowHeight
Image {
id: iconItem
- source: "image://client/" + index + "/" + compactTabBox.imagePathPrefix + "-" + compactListView.imageId + (index == compactListView.currentIndex ? "/selected" : "/disabled")
+ source: "image://client/" + index + "/" + compactTabBox.imagePathPrefix + "-" + compactListView.imageId + (index == compactListView.currentIndex ? "/selected" : "/selected")
width: 16
height: 16
sourceSize {
width: 16
height: 16
@@ -107,11 +107,11 @@
Text {
id: captionItem
horizontalAlignment: Text.AlignLeft
verticalAlignment: Text.AlignBottom
text: itemCaption(caption, minimized)
- font.bold: true
+ font.bold: index == compactListView.currentIndex
font.italic: minimized
color: theme.textColor
elide: Text.ElideMiddle
anchors {
left: iconItem.right
--- /var/lib/editconf/originals//usr/share/kde4/apps/kwin/tabbox/informative.qml 2012-06-01 06:20:45.000000000 -0700
+++ /usr/share/kde4/apps/kwin/tabbox/informative.qml 2012-08-09 10:52:48.414420651 -0700
@@ -90,11 +90,11 @@
id: delegateItem
width: listView.width
height: listView.rowHeight
Image {
id: iconItem
- source: "image://client/" + index + "/" + informativeTabBox.imagePathPrefix + "-" + listView.imageId + (index == listView.currentIndex ? "/selected" : "/disabled")
+ source: "image://client/" + index + "/" + informativeTabBox.imagePathPrefix + "-" + listView.imageId + (index == listView.currentIndex ? "/selected" : "/selected")
width: 32
height: 32
sourceSize {
width: 32
height: 32
@@ -107,11 +107,11 @@
}
Text {
id: captionItem
horizontalAlignment: Text.AlignHCenter
text: itemCaption(caption, minimized)
- font.bold: true
+ font.bold: index == compactListView.currentIndex
font.italic: minimized
color: theme.textColor
elide: Text.ElideMiddle
anchors {
left: iconItem.right

[#38606] Wednesday, July 13, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
heathree

Total Points: 157
Total Questions: 132
Total Answers: 108

Location: Honduras
Member since Mon, Apr 5, 2021
3 Years ago
;