D23651: WIP: Add support for a theming in Kicker Dashboard

2019-09-04 Thread Nathaniel Graham
ngraham added a comment.


  As a general concept, are we sure this makes sense? This is an overlay 
dashboard. It seems like it's supposed to always be dark. Making it respect the 
color scheme produces a result that, to be honest, I don't think works. The 
proposed light theme version has a background that's eyeball-searingly bright.
  
  Is there a problem with keeping this a hardcoded dark-only UI?

REPOSITORY
  R119 Plasma Desktop

REVISION DETAIL
  https://phabricator.kde.org/D23651

To: ognarb, #plasma, #vdg
Cc: ngraham, filipf, davidre, felixernst, plasma-devel, LeGast00n, 
The-Feren-OS-Dev, jraleigh, fbampaloukas, GB_2, ragreen, Pitel, ZrenBot, 
himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart


D23651: WIP: Add support for a theming in Kicker Dashboard

2019-09-04 Thread Filip Fila
filipf added a comment.


  I would also think a bit more about using Kirigami.SearchField -> it's not 
used in Kickoff and it's not properly themable (the same way 
PlasmaComponents.TextField is).
  
  It also looks too small.

REPOSITORY
  R119 Plasma Desktop

REVISION DETAIL
  https://phabricator.kde.org/D23651

To: ognarb, #plasma, #vdg
Cc: filipf, davidre, felixernst, plasma-devel, LeGast00n, The-Feren-OS-Dev, 
jraleigh, fbampaloukas, GB_2, ragreen, Pitel, ZrenBot, himcesjf, lesliezhai, 
ali-mohamed, jensreuterberg, abetts, sebas, apol, mart


D23651: WIP: Add support for a theming in Kicker Dashboard

2019-09-04 Thread Filip Fila
filipf added a comment.


  What I'm seeing is that this could result in poor visibility of action 
buttons.
  
  F7317401: image.png 
  
  They should use text color.

REPOSITORY
  R119 Plasma Desktop

REVISION DETAIL
  https://phabricator.kde.org/D23651

To: ognarb, #plasma, #vdg
Cc: filipf, davidre, felixernst, plasma-devel, LeGast00n, The-Feren-OS-Dev, 
jraleigh, fbampaloukas, GB_2, ragreen, Pitel, ZrenBot, himcesjf, lesliezhai, 
ali-mohamed, jensreuterberg, abetts, sebas, apol, mart


D23651: WIP: Add support for a theming in Kicker Dashboard

2019-09-02 Thread David Redondo
davidre added a comment.


  The reason it's transparent is because the clear color of the buffer is set 
to the background color when it's changed [1][2]. 
  This worked before probably because the Color was (0, 0, 0). For transparent 
windows we need to set it to `Qt::transparent`[3] and enable an  alpha 
buffer[4].
  
  F7309362: Screenshot_20190902_171545.png 

  
diff --git a/applets/kicker/plugin/dashboardwindow.cpp 
b/applets/kicker/plugin/dashboardwindow.cpp
index 6665e8df7..cc6b70c32 100644
--- a/applets/kicker/plugin/dashboardwindow.cpp
+++ b/applets/kicker/plugin/dashboardwindow.cpp
@@ -32,6 +32,8 @@ DashboardWindow::DashboardWindow(QQuickItem *parent) : 
QQuickWindow(parent ? par
 , m_visualParentWindow(nullptr)
 {
 setClearBeforeRendering(true);
+setDefaultAlphaBuffer(true);
+setColor(Qt::transparent);
 setFlags(Qt::FramelessWindowHint);
 
 setIcon(QIcon::fromTheme(QStringLiteral("plasma")));
@@ -100,8 +102,6 @@ QColor DashboardWindow::backgroundColor() const
 void DashboardWindow::setBackgroundColor(const QColor )
 {
 if (color() != c) {
-setColor(c);
-
 emit backgroundColorChanged();
 }
 }
  
  [1] 
https://cgit.kde.org/plasma-desktop.git/tree/applets/kicker/plugin/dashboardwindow.cpp#n103
  [2]https://doc.qt.io/qt-5/qquickwindow.html#color-prop
  [3]https://doc.qt.io/qt-5/qquickwidget.html#details (see Limitations)
  [4]https://doc.qt.io/qt-5/qquickwindow.html#setDefaultAlphaBuffer

REPOSITORY
  R119 Plasma Desktop

REVISION DETAIL
  https://phabricator.kde.org/D23651

To: ognarb, #plasma, #vdg
Cc: davidre, felixernst, plasma-devel, LeGast00n, The-Feren-OS-Dev, jraleigh, 
fbampaloukas, GB_2, ragreen, Pitel, ZrenBot, himcesjf, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart


D23651: WIP: Add support for a theming in Kicker Dashboard

2019-09-02 Thread Felix Ernst
felixernst added a comment.


  Current (?) one for comparison (from Kubuntu 18.04 since the one from Neon 
Unstable crashes for me)
  F7308896: Screenshot_20190902_143551.png 

  I feel like there was a lot of thought put into the current design of the 
dashboard and the search field in particular:
  
  - It does fit the style of having different logical parts of the dashboard 
purely divided by white space (and not by borders, lines).
  - It makes very clear that typing will trigger the search while in your 
screenshot it looks like the search field doesn't have focus and typing might 
not trigger the search.
  - In addition the size of the elements of the dashboard should loosely 
correspond to their importance.  The search is arguably the most important 
feature of the dashboard. The way you changed it it seems a bit too minor to me.
  
  I agree that the search as it currently is is inconsistent with how we 
display search fields anywhere else but it does fit with the rest of the 
dashboard. The overall style of the dashboard is pretty unique imo (for better 
or worse).
  
  Other than that +1 for the color change. I'm using Breeze and the dashboard 
with its white text on dark background always looked out of place to me.
  I agree that a blurred background would most likely look very nice.

REPOSITORY
  R119 Plasma Desktop

REVISION DETAIL
  https://phabricator.kde.org/D23651

To: ognarb, #plasma, #vdg
Cc: felixernst, plasma-devel, LeGast00n, The-Feren-OS-Dev, jraleigh, 
fbampaloukas, GB_2, ragreen, Pitel, ZrenBot, himcesjf, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart


D23651: WIP: Add support for a theming in Kicker Dashboard

2019-09-01 Thread Carl Schwan
ognarb created this revision.
Herald added a project: Plasma.
Herald added a subscriber: plasma-devel.
ognarb requested review of this revision.

REVISION SUMMARY
  - Replace hardcoded color with Kirigami.Theme.*
  - Replace search bar with Kirigami.Search
  
  I tried to use PlasmaCore.Theme but this didn't work

TEST PLAN
  Screenshot comming

REPOSITORY
  R119 Plasma Desktop

BRANCH
  kicker-dask-theme-support

REVISION DETAIL
  https://phabricator.kde.org/D23651

AFFECTED FILES
  applets/kicker/package/contents/ui/DashboardRepresentation.qml
  applets/kicker/package/contents/ui/DashboardTabButton.qml
  applets/kicker/package/contents/ui/ItemGridDelegate.qml
  applets/kicker/package/contents/ui/ItemMultiGridView.qml

To: ognarb
Cc: plasma-devel, LeGast00n, The-Feren-OS-Dev, jraleigh, fbampaloukas, GB_2, 
ragreen, Pitel, ZrenBot, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, 
abetts, sebas, apol, mart