Skip to content

qml: Add DropShadow to the OptionSwitch indicatorButton#132

Closed
shaavan wants to merge 1 commit into
bitcoin-core:mainfrom
shaavan:220113-drop_shadow
Closed

qml: Add DropShadow to the OptionSwitch indicatorButton#132
shaavan wants to merge 1 commit into
bitcoin-core:mainfrom
shaavan:220113-drop_shadow

Conversation

@shaavan
Copy link
Copy Markdown
Contributor

@shaavan shaavan commented Jun 20, 2022

Ported #111 to this PR.

This PR rebase #111 on the current master.

Notes:

  • I successfully compiled the updated PR on Ubuntu 22.04 using Qt version 5.15.3.
  • To successfully compile and run the PR, I had to install an additional library.
sudo apt install qml-module-qtgraphicaleffects
  • I have created a convenient demo for checking that the drop shadow works correctly. Drop Shadow onboarding test branch cherry-picks this PR over the Onboarding views #124.
  • If, in the demo, the color of the drop shadow is too subtle to perceive, try experimenting with changing the color of the drop shadow to get high contrast. For example:
             spread: 0.0
             samples: 21
-            color: "#00000040"
+            color: "#7900fffc"
             source: indicatorButton
         }
     }

Copy link
Copy Markdown
Contributor

@jarolrod jarolrod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI is failing because you have to allow static builds to pull in these plugins, here's an example on how to accomplish this: https://github.com/bitcoin-core/gui-qml/pull/45/files

@hebasto
Copy link
Copy Markdown
Member

hebasto commented Jun 26, 2022

@shaavan

Could you post screenshots please?

Also I'd like to have some Concept ACKs from designers before introducing a new plugin.

Comment thread src/qml/bitcoin.cpp
#if defined(QT_STATICPLUGIN)
#include <QtPlugin>
Q_IMPORT_PLUGIN(QtGraphicalEffectsPlugin)
Q_IMPORT_PLUGIN(QtGraphicalEffectsPrivatePlugin)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why importing of private plugin is required?

@shaavan
Copy link
Copy Markdown
Contributor Author

shaavan commented Jul 1, 2022

In the recent Bitcoin Core App Design Call on 06-29-2022, it was discussed the need to introduce a dependency qml-module-qtgraphicaleffects for the DropShadow is not worthwhile. And hence, adding DropShadow should be postponed until the same dependency is used for some other important task.

So I shall be closing this PR until later.

@shaavan shaavan closed this Jul 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants