diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/mobilecomponents.sh | 83 |
1 files changed, 0 insertions, 83 deletions
diff --git a/scripts/mobilecomponents.sh b/scripts/mobilecomponents.sh index ad6c4a370..48825f3c1 100755 --- a/scripts/mobilecomponents.sh +++ b/scripts/mobilecomponents.sh @@ -35,86 +35,3 @@ for i in $PATCHES do git am ../$i done -exit 0 - - - -# now bring in the latest Kirigami mobile components plus a couple of icons that we need -# first, get the latest from upstream -# yes, this is a bit overkill as we clone a lot of stuff for just a few files, but this way -# we stop having to manually merge our code with upstream all the time -# as we get closer to shipping a production version we'll likely check out specific tags -# or SHAs from upstream -./scripts/get-dep-lib.sh single .. kirigami -./scripts/get-dep-lib.sh single .. breeze-icons - -# now copy the components and a couple of icons into plae -MC=$SRC/subsurface/mobile-widgets/qml/kirigami -PMMC=../kirigami -BREEZE=../breeze-icons - -rm -rf $MC -mkdir -p $MC/icons -cp -R $PMMC/* $MC/ - -cp $BREEZE/icons/actions/22/map-globe.svg $MC/icons -cp $BREEZE/icons/actions/24/dialog-cancel.svg $MC/icons -cp $BREEZE/icons/actions/24/distribute-horizontal-x.svg $MC/icons -cp $BREEZE/icons-dark/actions/24/document-edit.svg $MC/icons -cp $BREEZE/icons-dark/actions/24/document-save.svg $MC/icons -cp $BREEZE/icons/actions/24/go-next.svg $MC/icons -cp $BREEZE/icons/actions/24/go-previous.svg $MC/icons -cp $BREEZE/icons/actions/24/go-up.svg $MC/icons -cp $BREEZE/icons/actions/16/view-readermode.svg $MC/icons -cp $BREEZE/icons/actions/24/application-menu.svg $MC/icons -cp $BREEZE/icons/actions/22/gps.svg $MC/icons -cp $BREEZE/icons/actions/24/trash-empty.svg $MC/icons -cp $BREEZE/icons/actions/24/edit-copy.svg $MC/icons -cp $BREEZE/icons/actions/24/edit-paste.svg $MC/icons -cp $BREEZE/icons/actions/24/list-add.svg $MC/icons -cp $BREEZE/icons/actions/22/handle-left.svg $MC/icons -cp $BREEZE/icons/actions/22/handle-right.svg $MC/icons -cp $BREEZE/icons/actions/22/overflow-menu.svg $MC/icons - -# kirigami now needs the breeze-icons internally as well -pushd $MC -ln -s $SRC/breeze-icons . - -# kirigami hack: passive notification hijacks area even after disabled. -# https://bugs.kde.org/show_bug.cgi?id=394204 -sed -i -e "s/width: backgroundRect/enabled: root.enabled; width: backgroundRect/g" src/controls/templates/private/PassiveNotification.qml - -# four more hacks - as a diff file for simplicity -# (1) Do not include the Kirigami resources (on static build). It causes -# double defined symbols in our setting. I would like a nicer fix for this -# issue, but failed to find one. For example, not adding the resource in -# our build causes the qrc file not to be generated. Manual generation -# of the resource file (using rcc) introduces the double symbols again. -# so it seems some Kirigami weirdness (but their staticcmake example compiles -# correctly). - -# (2) we want to use the topContent in the GlobalDrawer for our -# own image / logo / text (in part because the logo display got broken, in -# part because we want a second line of text to show the account ID -# for this to work we need to remove the margin that the GlobalDrawer -# forces around the topContent - -# (3) theming the toolbar fails. It should get the background color from -# the theme, but somehow that always gets overwritten with the default -# value for 'active' set in qtquickcontrols2.conf - -# (4) add a source line mirroring the name line for the forward and -# backward icons in the global tool bar. Otherwise those icons aren't -# found - -patch -p0 < $SRC/subsurface/scripts/kirigami.diff - -# with Qt5.15 the readonly properties are failing on Android. So let's -# patch those out -for qml in $(grep -l -R readonly\ .); do - sed -i -e "s/readonly //" $qml -done - -popd - -echo org.kde.plasma.kirigami synced from upstream |