From 8cd2a128e4bdde609ee81785bc6d549dc32163b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A2=E7=82=9C?= Date: Fri, 20 May 2022 16:38:18 +0800 Subject: [PATCH] Import Upstream version 3.14.0.0 --- .github/workflows/build.yml | 0 COPYING | 0 NEWS | 0 README.md | 0 data/img/mainviewwidget/.DS_Store | Bin data/img/mainviewwidget/DM-all-2x.png | Bin data/img/mainviewwidget/DM-all.png | Bin data/img/mainviewwidget/DM-all.svg | 0 data/img/mainviewwidget/DM-arrow-2x.png | Bin data/img/mainviewwidget/DM-arrow.png | Bin data/img/mainviewwidget/DM-arrow.svg | 0 data/img/mainviewwidget/DM-close-2x.png | Bin data/img/mainviewwidget/DM-close.png | Bin data/img/mainviewwidget/DM-close.svg | 0 data/img/mainviewwidget/DM-function-2x.png | Bin data/img/mainviewwidget/DM-function.png | Bin data/img/mainviewwidget/DM-function.svg | 0 data/img/mainviewwidget/DM-icon-check.png | Bin data/img/mainviewwidget/DM-icon-check.svg | 0 data/img/mainviewwidget/DM-icon-check@2x.png | Bin .../{DM-icon-选项.svg => DM-icon-option.svg} | 0 data/img/mainviewwidget/DM-icon-search.png | Bin data/img/mainviewwidget/DM-icon-search.svg | 0 data/img/mainviewwidget/DM-icon-search@2x.png | Bin data/img/mainviewwidget/DM-icon-返回.png | Bin data/img/mainviewwidget/DM-icon-返回.svg | 0 data/img/mainviewwidget/DM-icon-返回@2x.png | Bin data/img/mainviewwidget/DM-icon-选项.png | Bin data/img/mainviewwidget/DM-icon-选项@2x.png | Bin data/img/mainviewwidget/DM-letter-2x.png | Bin data/img/mainviewwidget/DM-letter.png | Bin data/img/mainviewwidget/DM-letter.svg | 0 data/img/mainviewwidget/DM-max-2x.png | Bin data/img/mainviewwidget/DM-max.png | Bin data/img/mainviewwidget/DM-max.svg | 0 .../mainviewwidget/Development-Checked.svg | 0 .../mainviewwidget/Development-Disabled.svg | 0 .../mainviewwidget/Development-Enabled.svg | 0 .../img/mainviewwidget/Development-Normal.svg | 0 data/img/mainviewwidget/Education-Checked.svg | 0 .../img/mainviewwidget/Education-Disabled.svg | 0 data/img/mainviewwidget/Education-Enabled.svg | 0 data/img/mainviewwidget/Education-Normal.svg | 0 data/img/mainviewwidget/Game-Checked.svg | 0 data/img/mainviewwidget/Game-Disabled.svg | 0 data/img/mainviewwidget/Game-Enabled.svg | 0 data/img/mainviewwidget/Game-Normal.svg | 0 data/img/mainviewwidget/Image-Checked.svg | 0 data/img/mainviewwidget/Image-Disabled.svg | 0 data/img/mainviewwidget/Image-Enabled.svg | 0 data/img/mainviewwidget/Image-Normal.svg | 0 data/img/mainviewwidget/Internet-Checked.svg | 0 data/img/mainviewwidget/Internet-Disabled.svg | 0 data/img/mainviewwidget/Internet-Enabled.svg | 0 data/img/mainviewwidget/Internet-Normal.svg | 0 data/img/mainviewwidget/Mobile-Checked.svg | 0 data/img/mainviewwidget/Mobile-Disabled.svg | 0 data/img/mainviewwidget/Mobile-Enabled.svg | 0 data/img/mainviewwidget/Mobile-Normal.svg | 0 data/img/mainviewwidget/Office-Checked.svg | 0 data/img/mainviewwidget/Office-Disabled.svg | 0 data/img/mainviewwidget/Office-Enabled.svg | 0 data/img/mainviewwidget/Office-Normal.svg | 0 data/img/mainviewwidget/Others-Checked.svg | 0 data/img/mainviewwidget/Others-Disabled.svg | 0 data/img/mainviewwidget/Others-Enabled.svg | 0 data/img/mainviewwidget/Others-Normal.svg | 0 data/img/mainviewwidget/Social-Checked.svg | 0 data/img/mainviewwidget/Social-Disabled.svg | 0 data/img/mainviewwidget/Social-Enabled.svg | 0 data/img/mainviewwidget/Social-Normal.svg | 0 data/img/mainviewwidget/System-Checked.svg | 0 data/img/mainviewwidget/System-Disabled.svg | 0 data/img/mainviewwidget/System-Enabled.svg | 0 data/img/mainviewwidget/System-Normal.svg | 0 data/img/mainviewwidget/Video-Checked.svg | 0 data/img/mainviewwidget/Video-Disabled.svg | 0 data/img/mainviewwidget/Video-Enabled.svg | 0 data/img/mainviewwidget/Video-Normal.svg | 0 data/img/mainviewwidget/all-2x.png | Bin data/img/mainviewwidget/all.png | Bin data/img/mainviewwidget/all.svg | 0 data/img/mainviewwidget/attributeaction.svg | 0 data/img/mainviewwidget/close-2x.png | Bin data/img/mainviewwidget/close.png | Bin data/img/mainviewwidget/close.svg | 0 data/img/mainviewwidget/downarrow-pressed.svg | 0 data/img/mainviewwidget/downarrow.svg | 0 data/img/mainviewwidget/drop-down-2x.png | Bin data/img/mainviewwidget/drop-down.png | Bin data/img/mainviewwidget/drop-down.svg | 0 data/img/mainviewwidget/fixed.svg | 0 data/img/mainviewwidget/full-all-2x.png | Bin data/img/mainviewwidget/full-close-2x.png | Bin data/img/mainviewwidget/full-close.png | Bin data/img/mainviewwidget/full-close.svg | 0 data/img/mainviewwidget/full-drop-down-2x.png | Bin data/img/mainviewwidget/full-drop-down.png | Bin data/img/mainviewwidget/full-drop-down.svg | 0 data/img/mainviewwidget/full-function-2x.png | Bin data/img/mainviewwidget/full-function.png | Bin data/img/mainviewwidget/full-function.svg | 0 data/img/mainviewwidget/full-letter-2x.png | Bin data/img/mainviewwidget/full-letter.png | Bin data/img/mainviewwidget/full-letter.svg | 0 data/img/mainviewwidget/full-min-2x.png | Bin data/img/mainviewwidget/full-min.png | Bin data/img/mainviewwidget/full-min.svg | 0 data/img/mainviewwidget/full-search-2x.png | Bin data/img/mainviewwidget/full-search.png | Bin data/img/mainviewwidget/full-search.svg | 0 data/img/mainviewwidget/fullicon-all.png | Bin data/img/mainviewwidget/fullicon-all.svg | 0 data/img/mainviewwidget/function-2x.png | Bin data/img/mainviewwidget/function.png | Bin data/img/mainviewwidget/function.svg | 0 data/img/mainviewwidget/icon- search-2x.png | Bin data/img/mainviewwidget/icon- search.png | Bin data/img/mainviewwidget/icon- search.svg | 0 data/img/mainviewwidget/icon- 返回.png | Bin data/img/mainviewwidget/icon- 返回.svg | 0 data/img/mainviewwidget/icon- 返回@2x.png | Bin data/img/mainviewwidget/icon- 选项.png | Bin data/img/mainviewwidget/icon- 选项.svg | 0 data/img/mainviewwidget/icon- 选项@2x.png | Bin data/img/mainviewwidget/icon-check.png | Bin data/img/mainviewwidget/icon-check.svg | 0 data/img/mainviewwidget/icon-check@2x.png | Bin data/img/mainviewwidget/leftarrow-hover.svg | 0 data/img/mainviewwidget/leftarrow.svg | 0 data/img/mainviewwidget/letter-2x.png | Bin data/img/mainviewwidget/letter.png | Bin data/img/mainviewwidget/letter.svg | 0 data/img/mainviewwidget/lock-fs.svg | 0 data/img/mainviewwidget/lock.svg | 0 data/img/mainviewwidget/max-2x.png | Bin data/img/mainviewwidget/max.png | Bin data/img/mainviewwidget/max.svg | 0 data/img/mainviewwidget/power-2x.png | Bin data/img/mainviewwidget/power.png | Bin data/img/mainviewwidget/power.svg | 0 data/img/mainviewwidget/recent-disabled.svg | 0 data/img/mainviewwidget/recent-enabled.svg | 0 data/img/mainviewwidget/recent-gray.svg | 0 data/img/mainviewwidget/recent.svg | 0 data/img/mainviewwidget/rightarrow-hover.svg | 0 data/img/mainviewwidget/rightarrow.svg | 0 data/img/mainviewwidget/search.svg | 0 data/img/mainviewwidget/select.svg | 0 data/img/mainviewwidget/selected.svg | 0 data/img/mainviewwidget/ukui-search-blue.svg | 0 data/img/mainviewwidget/ukui-search.svg | 0 data/img/mainviewwidget/unfixed.svg | 0 data/img/mainviewwidget/uninstall.svg | 0 data/img/mainviewwidget/uparrow-pressed.svg | 0 data/img/mainviewwidget/uparrow.svg | 0 data/img/sidebarwidget/commonuse.svg | 0 data/img/sidebarwidget/computer.svg | 0 data/img/sidebarwidget/control.svg | 0 data/img/sidebarwidget/fixed.svg | 0 data/img/sidebarwidget/fullusericon.png | Bin data/img/sidebarwidget/function.svg | 0 data/img/sidebarwidget/letter.svg | 0 data/img/sidebarwidget/lock.svg | 0 data/img/sidebarwidget/max.svg | 0 data/img/sidebarwidget/min.svg | 0 data/img/sidebarwidget/personal.svg | 0 data/img/sidebarwidget/rightarrow.svg | 0 data/img/sidebarwidget/setting.svg | 0 data/img/sidebarwidget/shutdown.svg | 0 data/img/sidebarwidget/trash.svg | 0 data/img/sidebarwidget/unfixed.svg | 0 data/img/sidebarwidget/usericon-darkcolor.svg | 0 .../img/sidebarwidget/usericon-lightcolor.svg | 0 main.cpp | 0 man/ukui-menu.1 | 0 res.qrc | 2 +- src/BackProcess/DBus/dbus-adaptor.cpp | 0 src/BackProcess/DBus/dbus-adaptor.h | 0 src/BackProcess/DBus/dbus.cpp | 0 src/BackProcess/DBus/dbus.h | 0 src/BackProcess/DBus/org.ukui.menu.xml | 0 .../FileWatcher/convert_winid_to_desktop.cpp | 0 .../FileWatcher/convert_winid_to_desktop.h | 0 .../FileWatcher/desktop_watcher.cpp | 0 src/BackProcess/FileWatcher/desktop_watcher.h | 0 .../FileWatcher/directory_changed_thread.cpp | 0 .../FileWatcher/directory_changed_thread.h | 0 .../software_database_update_thread.cpp | 0 .../software_database_update_thread.h | 0 .../tablet_directorychanged_thread.cpp | 0 .../tablet_directorychanged_thread.h | 0 .../Interface/currenttime_interface.cpp | 0 .../Interface/currenttime_interface.h | 0 .../Interface/ukui_chineseletter.cpp | 0 .../Interface/ukui_chineseletter.h | 0 .../Interface/ukuimenuinterface.cpp | 2 - src/BackProcess/Interface/ukuimenuinterface.h | 0 src/BackProcess/Search/file-utils.cpp | 0 src/BackProcess/Search/file-utils.h | 0 src/BackProcess/Search/pinyinWithTone.txt | 0 src/BackProcess/Search/pinyinWithoutTone.txt | 0 src/BackProcess/Search/searchappthread.cpp | 0 src/BackProcess/Search/searchappthread.h | 0 .../XEventMonitor/xeventmonitor.cpp | 0 src/BackProcess/XEventMonitor/xeventmonitor.h | 0 src/BackProcess/backprocess.pri | 0 src/BackProcess/tablet/getmodeldata.cpp | 0 src/BackProcess/tablet/getmodeldata.h | 0 src/BackProcess/tablet/pagemanager.cpp | 0 src/BackProcess/tablet/pagemanager.h | 0 src/QtSingleApplication/QtLockedFile | 0 src/QtSingleApplication/QtSingleApplication | 0 src/QtSingleApplication/qtlocalpeer.cpp | 0 src/QtSingleApplication/qtlocalpeer.h | 0 src/QtSingleApplication/qtlockedfile.cpp | 0 src/QtSingleApplication/qtlockedfile.h | 0 src/QtSingleApplication/qtlockedfile_unix.cpp | 0 src/QtSingleApplication/qtlockedfile_win.cpp | 0 .../qtsingleapplication.cpp | 0 src/QtSingleApplication/qtsingleapplication.h | 0 .../qtsingleapplication.pri | 0 .../qtsinglecoreapplication.cpp | 0 .../qtsinglecoreapplication.h | 0 .../qtsinglecoreapplication.pri | 0 .../Button/function_classify_button.cpp | 18 +- .../Button/function_classify_button.h | 0 .../Button/letter_classify_button.cpp | 30 +- .../Button/letter_classify_button.h | 0 src/UserInterface/Button/tool_button.cpp | 0 src/UserInterface/Button/tool_button.h | 0 src/UserInterface/ListView/fulllistview.cpp | 0 src/UserInterface/ListView/fulllistview.h | 0 src/UserInterface/ListView/klistview.cpp | 0 src/UserInterface/ListView/klistview.h | 0 src/UserInterface/ListView/listview.cpp | 10 +- src/UserInterface/ListView/listview.h | 0 src/UserInterface/ListView/rightlistview.cpp | 18 +- src/UserInterface/ListView/rightlistview.h | 5 +- src/UserInterface/ListView/tabletlistview.cpp | 0 src/UserInterface/ListView/tabletlistview.h | 0 .../Other/classify_btn_scrollarea.cpp | 0 .../Other/classify_btn_scrollarea.h | 0 src/UserInterface/Other/lettertooltip.cpp | 0 src/UserInterface/Other/lettertooltip.h | 0 src/UserInterface/Other/scrollarea.cpp | 0 src/UserInterface/Other/scrollarea.h | 0 src/UserInterface/RightClickMenu/menubox.cpp | 0 src/UserInterface/RightClickMenu/menubox.h | 0 .../RightClickMenu/rightclickmenu.cpp | 0 .../RightClickMenu/rightclickmenu.h | 0 .../RightClickMenu/tabletrightclickmenu.cpp | 0 .../RightClickMenu/tabletrightclickmenu.h | 0 .../ViewItem/full_item_delegate.cpp | 0 .../ViewItem/full_item_delegate.h | 0 src/UserInterface/ViewItem/itemdelegate.cpp | 33 +- src/UserInterface/ViewItem/itemdelegate.h | 0 src/UserInterface/ViewItem/kitemdelegate.cpp | 0 src/UserInterface/ViewItem/kitemdelegate.h | 0 .../ViewItem/recent_item_delegate.cpp | 0 .../ViewItem/recent_item_delegate.h | 0 .../ViewItem/right_item_delegate.cpp | 21 +- .../ViewItem/right_item_delegate.h | 0 .../ViewItem/tablet_full_itemdelegate.cpp | 0 .../ViewItem/tablet_full_itemdelegate.h | 0 src/UserInterface/Widget/animationpage.cpp | 0 src/UserInterface/Widget/animationpage.h | 0 .../Widget/full_commonuse_widget.cpp | 0 .../Widget/full_commonuse_widget.h | 0 .../Widget/full_function_widget.cpp | 0 .../Widget/full_function_widget.h | 0 .../Widget/full_letter_widget.cpp | 0 src/UserInterface/Widget/full_letter_widget.h | 0 .../Widget/full_searchresult_widget.cpp | 0 .../Widget/full_searchresult_widget.h | 0 src/UserInterface/Widget/function_Widget.cpp | 0 src/UserInterface/Widget/function_Widget.h | 0 .../Widget/function_button_widget.cpp | 3 +- .../Widget/function_button_widget.h | 0 .../Widget/letter_button_widget.cpp | 13 +- .../Widget/letter_button_widget.h | 0 src/UserInterface/Widget/main_view_widget.cpp | 20 +- src/UserInterface/Widget/main_view_widget.h | 4 + src/UserInterface/Widget/plugin_widget.cpp | 0 src/UserInterface/Widget/plugin_widget.h | 0 src/UserInterface/Widget/splitbar_frame.cpp | 0 src/UserInterface/Widget/splitbar_frame.h | 0 src/UserInterface/Widget/tabview_widget.cpp | 0 src/UserInterface/Widget/tabview_widget.h | 0 src/UserInterface/full_mainwindow.cpp | 2 +- src/UserInterface/full_mainwindow.h | 0 src/UserInterface/mainwindow.cpp | 120 ++++--- src/UserInterface/mainwindow.h | 8 +- src/UserInterface/tabletwindow.cpp | 77 ++--- src/UserInterface/tabletwindow.h | 7 +- src/UserInterface/userinterface.pri | 0 src/UtilityFunction/AbstractInterface.h | 0 src/UtilityFunction/KySmallPluginInterface.h | 0 src/UtilityFunction/Style/style.cpp | 15 +- src/UtilityFunction/Style/style.h | 4 +- src/UtilityFunction/abstractInterface.h | 0 src/UtilityFunction/thumbnail.cpp | 0 src/UtilityFunction/thumbnail.h | 0 src/UtilityFunction/utility.cpp | 1 + src/UtilityFunction/utility.h | 1 + src/UtilityFunction/utilityfunction.pri | 0 translations/ukui-menu_bo.qm | 0 translations/ukui-menu_bo.ts | 0 translations/ukui-menu_tr.qm | Bin translations/ukui-menu_tr.ts | 0 translations/ukui-menu_zh_CN.qm | Bin translations/ukui-menu_zh_CN.ts | 0 ukui-menu.desktop | 0 ukui-menu.ini | 0 ukui-menu.pro | 0 ukui-menu.pro.user | 314 ++++++++++++++++++ 316 files changed, 576 insertions(+), 152 deletions(-) mode change 100755 => 100644 .github/workflows/build.yml mode change 100755 => 100644 COPYING mode change 100755 => 100644 NEWS mode change 100755 => 100644 README.md mode change 100755 => 100644 data/img/mainviewwidget/.DS_Store mode change 100755 => 100644 data/img/mainviewwidget/DM-all-2x.png mode change 100755 => 100644 data/img/mainviewwidget/DM-all.png mode change 100755 => 100644 data/img/mainviewwidget/DM-all.svg mode change 100755 => 100644 data/img/mainviewwidget/DM-arrow-2x.png mode change 100755 => 100644 data/img/mainviewwidget/DM-arrow.png mode change 100755 => 100644 data/img/mainviewwidget/DM-arrow.svg mode change 100755 => 100644 data/img/mainviewwidget/DM-close-2x.png mode change 100755 => 100644 data/img/mainviewwidget/DM-close.png mode change 100755 => 100644 data/img/mainviewwidget/DM-close.svg mode change 100755 => 100644 data/img/mainviewwidget/DM-function-2x.png mode change 100755 => 100644 data/img/mainviewwidget/DM-function.png mode change 100755 => 100644 data/img/mainviewwidget/DM-function.svg mode change 100755 => 100644 data/img/mainviewwidget/DM-icon-check.png mode change 100755 => 100644 data/img/mainviewwidget/DM-icon-check.svg mode change 100755 => 100644 data/img/mainviewwidget/DM-icon-check@2x.png rename data/img/mainviewwidget/{DM-icon-选项.svg => DM-icon-option.svg} (100%) mode change 100755 => 100644 mode change 100755 => 100644 data/img/mainviewwidget/DM-icon-search.png mode change 100755 => 100644 data/img/mainviewwidget/DM-icon-search.svg mode change 100755 => 100644 data/img/mainviewwidget/DM-icon-search@2x.png mode change 100755 => 100644 data/img/mainviewwidget/DM-icon-返回.png mode change 100755 => 100644 data/img/mainviewwidget/DM-icon-返回.svg mode change 100755 => 100644 data/img/mainviewwidget/DM-icon-返回@2x.png mode change 100755 => 100644 data/img/mainviewwidget/DM-icon-选项.png mode change 100755 => 100644 data/img/mainviewwidget/DM-icon-选项@2x.png mode change 100755 => 100644 data/img/mainviewwidget/DM-letter-2x.png mode change 100755 => 100644 data/img/mainviewwidget/DM-letter.png mode change 100755 => 100644 data/img/mainviewwidget/DM-letter.svg mode change 100755 => 100644 data/img/mainviewwidget/DM-max-2x.png mode change 100755 => 100644 data/img/mainviewwidget/DM-max.png mode change 100755 => 100644 data/img/mainviewwidget/DM-max.svg mode change 100755 => 100644 data/img/mainviewwidget/Development-Checked.svg mode change 100755 => 100644 data/img/mainviewwidget/Development-Disabled.svg mode change 100755 => 100644 data/img/mainviewwidget/Development-Enabled.svg mode change 100755 => 100644 data/img/mainviewwidget/Development-Normal.svg mode change 100755 => 100644 data/img/mainviewwidget/Education-Checked.svg mode change 100755 => 100644 data/img/mainviewwidget/Education-Disabled.svg mode change 100755 => 100644 data/img/mainviewwidget/Education-Enabled.svg mode change 100755 => 100644 data/img/mainviewwidget/Education-Normal.svg mode change 100755 => 100644 data/img/mainviewwidget/Game-Checked.svg mode change 100755 => 100644 data/img/mainviewwidget/Game-Disabled.svg mode change 100755 => 100644 data/img/mainviewwidget/Game-Enabled.svg mode change 100755 => 100644 data/img/mainviewwidget/Game-Normal.svg mode change 100755 => 100644 data/img/mainviewwidget/Image-Checked.svg mode change 100755 => 100644 data/img/mainviewwidget/Image-Disabled.svg mode change 100755 => 100644 data/img/mainviewwidget/Image-Enabled.svg mode change 100755 => 100644 data/img/mainviewwidget/Image-Normal.svg mode change 100755 => 100644 data/img/mainviewwidget/Internet-Checked.svg mode change 100755 => 100644 data/img/mainviewwidget/Internet-Disabled.svg mode change 100755 => 100644 data/img/mainviewwidget/Internet-Enabled.svg mode change 100755 => 100644 data/img/mainviewwidget/Internet-Normal.svg mode change 100755 => 100644 data/img/mainviewwidget/Mobile-Checked.svg mode change 100755 => 100644 data/img/mainviewwidget/Mobile-Disabled.svg mode change 100755 => 100644 data/img/mainviewwidget/Mobile-Enabled.svg mode change 100755 => 100644 data/img/mainviewwidget/Mobile-Normal.svg mode change 100755 => 100644 data/img/mainviewwidget/Office-Checked.svg mode change 100755 => 100644 data/img/mainviewwidget/Office-Disabled.svg mode change 100755 => 100644 data/img/mainviewwidget/Office-Enabled.svg mode change 100755 => 100644 data/img/mainviewwidget/Office-Normal.svg mode change 100755 => 100644 data/img/mainviewwidget/Others-Checked.svg mode change 100755 => 100644 data/img/mainviewwidget/Others-Disabled.svg mode change 100755 => 100644 data/img/mainviewwidget/Others-Enabled.svg mode change 100755 => 100644 data/img/mainviewwidget/Others-Normal.svg mode change 100755 => 100644 data/img/mainviewwidget/Social-Checked.svg mode change 100755 => 100644 data/img/mainviewwidget/Social-Disabled.svg mode change 100755 => 100644 data/img/mainviewwidget/Social-Enabled.svg mode change 100755 => 100644 data/img/mainviewwidget/Social-Normal.svg mode change 100755 => 100644 data/img/mainviewwidget/System-Checked.svg mode change 100755 => 100644 data/img/mainviewwidget/System-Disabled.svg mode change 100755 => 100644 data/img/mainviewwidget/System-Enabled.svg mode change 100755 => 100644 data/img/mainviewwidget/System-Normal.svg mode change 100755 => 100644 data/img/mainviewwidget/Video-Checked.svg mode change 100755 => 100644 data/img/mainviewwidget/Video-Disabled.svg mode change 100755 => 100644 data/img/mainviewwidget/Video-Enabled.svg mode change 100755 => 100644 data/img/mainviewwidget/Video-Normal.svg mode change 100755 => 100644 data/img/mainviewwidget/all-2x.png mode change 100755 => 100644 data/img/mainviewwidget/all.png mode change 100755 => 100644 data/img/mainviewwidget/all.svg mode change 100755 => 100644 data/img/mainviewwidget/attributeaction.svg mode change 100755 => 100644 data/img/mainviewwidget/close-2x.png mode change 100755 => 100644 data/img/mainviewwidget/close.png mode change 100755 => 100644 data/img/mainviewwidget/close.svg mode change 100755 => 100644 data/img/mainviewwidget/downarrow-pressed.svg mode change 100755 => 100644 data/img/mainviewwidget/downarrow.svg mode change 100755 => 100644 data/img/mainviewwidget/drop-down-2x.png mode change 100755 => 100644 data/img/mainviewwidget/drop-down.png mode change 100755 => 100644 data/img/mainviewwidget/drop-down.svg mode change 100755 => 100644 data/img/mainviewwidget/fixed.svg mode change 100755 => 100644 data/img/mainviewwidget/full-all-2x.png mode change 100755 => 100644 data/img/mainviewwidget/full-close-2x.png mode change 100755 => 100644 data/img/mainviewwidget/full-close.png mode change 100755 => 100644 data/img/mainviewwidget/full-close.svg mode change 100755 => 100644 data/img/mainviewwidget/full-drop-down-2x.png mode change 100755 => 100644 data/img/mainviewwidget/full-drop-down.png mode change 100755 => 100644 data/img/mainviewwidget/full-drop-down.svg mode change 100755 => 100644 data/img/mainviewwidget/full-function-2x.png mode change 100755 => 100644 data/img/mainviewwidget/full-function.png mode change 100755 => 100644 data/img/mainviewwidget/full-function.svg mode change 100755 => 100644 data/img/mainviewwidget/full-letter-2x.png mode change 100755 => 100644 data/img/mainviewwidget/full-letter.png mode change 100755 => 100644 data/img/mainviewwidget/full-letter.svg mode change 100755 => 100644 data/img/mainviewwidget/full-min-2x.png mode change 100755 => 100644 data/img/mainviewwidget/full-min.png mode change 100755 => 100644 data/img/mainviewwidget/full-min.svg mode change 100755 => 100644 data/img/mainviewwidget/full-search-2x.png mode change 100755 => 100644 data/img/mainviewwidget/full-search.png mode change 100755 => 100644 data/img/mainviewwidget/full-search.svg mode change 100755 => 100644 data/img/mainviewwidget/fullicon-all.png mode change 100755 => 100644 data/img/mainviewwidget/fullicon-all.svg mode change 100755 => 100644 data/img/mainviewwidget/function-2x.png mode change 100755 => 100644 data/img/mainviewwidget/function.png mode change 100755 => 100644 data/img/mainviewwidget/function.svg mode change 100755 => 100644 data/img/mainviewwidget/icon- search-2x.png mode change 100755 => 100644 data/img/mainviewwidget/icon- search.png mode change 100755 => 100644 data/img/mainviewwidget/icon- search.svg mode change 100755 => 100644 data/img/mainviewwidget/icon- 返回.png mode change 100755 => 100644 data/img/mainviewwidget/icon- 返回.svg mode change 100755 => 100644 data/img/mainviewwidget/icon- 返回@2x.png mode change 100755 => 100644 data/img/mainviewwidget/icon- 选项.png mode change 100755 => 100644 data/img/mainviewwidget/icon- 选项.svg mode change 100755 => 100644 data/img/mainviewwidget/icon- 选项@2x.png mode change 100755 => 100644 data/img/mainviewwidget/icon-check.png mode change 100755 => 100644 data/img/mainviewwidget/icon-check.svg mode change 100755 => 100644 data/img/mainviewwidget/icon-check@2x.png mode change 100755 => 100644 data/img/mainviewwidget/leftarrow-hover.svg mode change 100755 => 100644 data/img/mainviewwidget/leftarrow.svg mode change 100755 => 100644 data/img/mainviewwidget/letter-2x.png mode change 100755 => 100644 data/img/mainviewwidget/letter.png mode change 100755 => 100644 data/img/mainviewwidget/letter.svg mode change 100755 => 100644 data/img/mainviewwidget/lock-fs.svg mode change 100755 => 100644 data/img/mainviewwidget/lock.svg mode change 100755 => 100644 data/img/mainviewwidget/max-2x.png mode change 100755 => 100644 data/img/mainviewwidget/max.png mode change 100755 => 100644 data/img/mainviewwidget/max.svg mode change 100755 => 100644 data/img/mainviewwidget/power-2x.png mode change 100755 => 100644 data/img/mainviewwidget/power.png mode change 100755 => 100644 data/img/mainviewwidget/power.svg mode change 100755 => 100644 data/img/mainviewwidget/recent-disabled.svg mode change 100755 => 100644 data/img/mainviewwidget/recent-enabled.svg mode change 100755 => 100644 data/img/mainviewwidget/recent-gray.svg mode change 100755 => 100644 data/img/mainviewwidget/recent.svg mode change 100755 => 100644 data/img/mainviewwidget/rightarrow-hover.svg mode change 100755 => 100644 data/img/mainviewwidget/rightarrow.svg mode change 100755 => 100644 data/img/mainviewwidget/search.svg mode change 100755 => 100644 data/img/mainviewwidget/select.svg mode change 100755 => 100644 data/img/mainviewwidget/selected.svg mode change 100755 => 100644 data/img/mainviewwidget/ukui-search-blue.svg mode change 100755 => 100644 data/img/mainviewwidget/ukui-search.svg mode change 100755 => 100644 data/img/mainviewwidget/unfixed.svg mode change 100755 => 100644 data/img/mainviewwidget/uninstall.svg mode change 100755 => 100644 data/img/mainviewwidget/uparrow-pressed.svg mode change 100755 => 100644 data/img/mainviewwidget/uparrow.svg mode change 100755 => 100644 data/img/sidebarwidget/commonuse.svg mode change 100755 => 100644 data/img/sidebarwidget/computer.svg mode change 100755 => 100644 data/img/sidebarwidget/control.svg mode change 100755 => 100644 data/img/sidebarwidget/fixed.svg mode change 100755 => 100644 data/img/sidebarwidget/fullusericon.png mode change 100755 => 100644 data/img/sidebarwidget/function.svg mode change 100755 => 100644 data/img/sidebarwidget/letter.svg mode change 100755 => 100644 data/img/sidebarwidget/lock.svg mode change 100755 => 100644 data/img/sidebarwidget/max.svg mode change 100755 => 100644 data/img/sidebarwidget/min.svg mode change 100755 => 100644 data/img/sidebarwidget/personal.svg mode change 100755 => 100644 data/img/sidebarwidget/rightarrow.svg mode change 100755 => 100644 data/img/sidebarwidget/setting.svg mode change 100755 => 100644 data/img/sidebarwidget/shutdown.svg mode change 100755 => 100644 data/img/sidebarwidget/trash.svg mode change 100755 => 100644 data/img/sidebarwidget/unfixed.svg mode change 100755 => 100644 data/img/sidebarwidget/usericon-darkcolor.svg mode change 100755 => 100644 data/img/sidebarwidget/usericon-lightcolor.svg mode change 100755 => 100644 main.cpp mode change 100755 => 100644 man/ukui-menu.1 mode change 100755 => 100644 res.qrc mode change 100755 => 100644 src/BackProcess/DBus/dbus-adaptor.cpp mode change 100755 => 100644 src/BackProcess/DBus/dbus-adaptor.h mode change 100755 => 100644 src/BackProcess/DBus/dbus.cpp mode change 100755 => 100644 src/BackProcess/DBus/dbus.h mode change 100755 => 100644 src/BackProcess/DBus/org.ukui.menu.xml mode change 100755 => 100644 src/BackProcess/FileWatcher/convert_winid_to_desktop.cpp mode change 100755 => 100644 src/BackProcess/FileWatcher/convert_winid_to_desktop.h mode change 100755 => 100644 src/BackProcess/FileWatcher/desktop_watcher.cpp mode change 100755 => 100644 src/BackProcess/FileWatcher/desktop_watcher.h mode change 100755 => 100644 src/BackProcess/FileWatcher/directory_changed_thread.cpp mode change 100755 => 100644 src/BackProcess/FileWatcher/directory_changed_thread.h mode change 100755 => 100644 src/BackProcess/FileWatcher/software_database_update_thread.cpp mode change 100755 => 100644 src/BackProcess/FileWatcher/software_database_update_thread.h mode change 100755 => 100644 src/BackProcess/FileWatcher/tablet_directorychanged_thread.cpp mode change 100755 => 100644 src/BackProcess/FileWatcher/tablet_directorychanged_thread.h mode change 100755 => 100644 src/BackProcess/Interface/currenttime_interface.cpp mode change 100755 => 100644 src/BackProcess/Interface/currenttime_interface.h mode change 100755 => 100644 src/BackProcess/Interface/ukui_chineseletter.cpp mode change 100755 => 100644 src/BackProcess/Interface/ukui_chineseletter.h mode change 100755 => 100644 src/BackProcess/Interface/ukuimenuinterface.cpp mode change 100755 => 100644 src/BackProcess/Interface/ukuimenuinterface.h mode change 100755 => 100644 src/BackProcess/Search/file-utils.cpp mode change 100755 => 100644 src/BackProcess/Search/file-utils.h mode change 100755 => 100644 src/BackProcess/Search/pinyinWithTone.txt mode change 100755 => 100644 src/BackProcess/Search/pinyinWithoutTone.txt mode change 100755 => 100644 src/BackProcess/Search/searchappthread.cpp mode change 100755 => 100644 src/BackProcess/Search/searchappthread.h mode change 100755 => 100644 src/BackProcess/XEventMonitor/xeventmonitor.cpp mode change 100755 => 100644 src/BackProcess/XEventMonitor/xeventmonitor.h mode change 100755 => 100644 src/BackProcess/backprocess.pri mode change 100755 => 100644 src/BackProcess/tablet/getmodeldata.cpp mode change 100755 => 100644 src/BackProcess/tablet/getmodeldata.h mode change 100755 => 100644 src/BackProcess/tablet/pagemanager.cpp mode change 100755 => 100644 src/BackProcess/tablet/pagemanager.h mode change 100755 => 100644 src/QtSingleApplication/QtLockedFile mode change 100755 => 100644 src/QtSingleApplication/QtSingleApplication mode change 100755 => 100644 src/QtSingleApplication/qtlocalpeer.cpp mode change 100755 => 100644 src/QtSingleApplication/qtlocalpeer.h mode change 100755 => 100644 src/QtSingleApplication/qtlockedfile.cpp mode change 100755 => 100644 src/QtSingleApplication/qtlockedfile.h mode change 100755 => 100644 src/QtSingleApplication/qtlockedfile_unix.cpp mode change 100755 => 100644 src/QtSingleApplication/qtlockedfile_win.cpp mode change 100755 => 100644 src/QtSingleApplication/qtsingleapplication.cpp mode change 100755 => 100644 src/QtSingleApplication/qtsingleapplication.h mode change 100755 => 100644 src/QtSingleApplication/qtsingleapplication.pri mode change 100755 => 100644 src/QtSingleApplication/qtsinglecoreapplication.cpp mode change 100755 => 100644 src/QtSingleApplication/qtsinglecoreapplication.h mode change 100755 => 100644 src/QtSingleApplication/qtsinglecoreapplication.pri mode change 100755 => 100644 src/UserInterface/Button/function_classify_button.cpp mode change 100755 => 100644 src/UserInterface/Button/function_classify_button.h mode change 100755 => 100644 src/UserInterface/Button/letter_classify_button.cpp mode change 100755 => 100644 src/UserInterface/Button/letter_classify_button.h mode change 100755 => 100644 src/UserInterface/Button/tool_button.cpp mode change 100755 => 100644 src/UserInterface/Button/tool_button.h mode change 100755 => 100644 src/UserInterface/ListView/fulllistview.cpp mode change 100755 => 100644 src/UserInterface/ListView/fulllistview.h mode change 100755 => 100644 src/UserInterface/ListView/klistview.cpp mode change 100755 => 100644 src/UserInterface/ListView/klistview.h mode change 100755 => 100644 src/UserInterface/ListView/listview.cpp mode change 100755 => 100644 src/UserInterface/ListView/listview.h mode change 100755 => 100644 src/UserInterface/ListView/rightlistview.cpp mode change 100755 => 100644 src/UserInterface/ListView/rightlistview.h mode change 100755 => 100644 src/UserInterface/ListView/tabletlistview.cpp mode change 100755 => 100644 src/UserInterface/ListView/tabletlistview.h mode change 100755 => 100644 src/UserInterface/Other/classify_btn_scrollarea.cpp mode change 100755 => 100644 src/UserInterface/Other/classify_btn_scrollarea.h mode change 100755 => 100644 src/UserInterface/Other/lettertooltip.cpp mode change 100755 => 100644 src/UserInterface/Other/lettertooltip.h mode change 100755 => 100644 src/UserInterface/Other/scrollarea.cpp mode change 100755 => 100644 src/UserInterface/Other/scrollarea.h mode change 100755 => 100644 src/UserInterface/RightClickMenu/menubox.cpp mode change 100755 => 100644 src/UserInterface/RightClickMenu/menubox.h mode change 100755 => 100644 src/UserInterface/RightClickMenu/rightclickmenu.cpp mode change 100755 => 100644 src/UserInterface/RightClickMenu/rightclickmenu.h mode change 100755 => 100644 src/UserInterface/RightClickMenu/tabletrightclickmenu.cpp mode change 100755 => 100644 src/UserInterface/RightClickMenu/tabletrightclickmenu.h mode change 100755 => 100644 src/UserInterface/ViewItem/full_item_delegate.cpp mode change 100755 => 100644 src/UserInterface/ViewItem/full_item_delegate.h mode change 100755 => 100644 src/UserInterface/ViewItem/itemdelegate.cpp mode change 100755 => 100644 src/UserInterface/ViewItem/itemdelegate.h mode change 100755 => 100644 src/UserInterface/ViewItem/kitemdelegate.cpp mode change 100755 => 100644 src/UserInterface/ViewItem/kitemdelegate.h mode change 100755 => 100644 src/UserInterface/ViewItem/recent_item_delegate.cpp mode change 100755 => 100644 src/UserInterface/ViewItem/recent_item_delegate.h mode change 100755 => 100644 src/UserInterface/ViewItem/right_item_delegate.cpp mode change 100755 => 100644 src/UserInterface/ViewItem/right_item_delegate.h mode change 100755 => 100644 src/UserInterface/ViewItem/tablet_full_itemdelegate.cpp mode change 100755 => 100644 src/UserInterface/ViewItem/tablet_full_itemdelegate.h mode change 100755 => 100644 src/UserInterface/Widget/animationpage.cpp mode change 100755 => 100644 src/UserInterface/Widget/animationpage.h mode change 100755 => 100644 src/UserInterface/Widget/full_commonuse_widget.cpp mode change 100755 => 100644 src/UserInterface/Widget/full_commonuse_widget.h mode change 100755 => 100644 src/UserInterface/Widget/full_function_widget.cpp mode change 100755 => 100644 src/UserInterface/Widget/full_function_widget.h mode change 100755 => 100644 src/UserInterface/Widget/full_letter_widget.cpp mode change 100755 => 100644 src/UserInterface/Widget/full_letter_widget.h mode change 100755 => 100644 src/UserInterface/Widget/full_searchresult_widget.cpp mode change 100755 => 100644 src/UserInterface/Widget/full_searchresult_widget.h mode change 100755 => 100644 src/UserInterface/Widget/function_Widget.cpp mode change 100755 => 100644 src/UserInterface/Widget/function_Widget.h mode change 100755 => 100644 src/UserInterface/Widget/function_button_widget.cpp mode change 100755 => 100644 src/UserInterface/Widget/function_button_widget.h mode change 100755 => 100644 src/UserInterface/Widget/letter_button_widget.cpp mode change 100755 => 100644 src/UserInterface/Widget/letter_button_widget.h mode change 100755 => 100644 src/UserInterface/Widget/main_view_widget.cpp mode change 100755 => 100644 src/UserInterface/Widget/main_view_widget.h mode change 100755 => 100644 src/UserInterface/Widget/plugin_widget.cpp mode change 100755 => 100644 src/UserInterface/Widget/plugin_widget.h mode change 100755 => 100644 src/UserInterface/Widget/splitbar_frame.cpp mode change 100755 => 100644 src/UserInterface/Widget/splitbar_frame.h mode change 100755 => 100644 src/UserInterface/Widget/tabview_widget.cpp mode change 100755 => 100644 src/UserInterface/Widget/tabview_widget.h mode change 100755 => 100644 src/UserInterface/full_mainwindow.cpp mode change 100755 => 100644 src/UserInterface/full_mainwindow.h mode change 100755 => 100644 src/UserInterface/mainwindow.cpp mode change 100755 => 100644 src/UserInterface/mainwindow.h mode change 100755 => 100644 src/UserInterface/tabletwindow.cpp mode change 100755 => 100644 src/UserInterface/tabletwindow.h mode change 100755 => 100644 src/UserInterface/userinterface.pri mode change 100755 => 100644 src/UtilityFunction/AbstractInterface.h mode change 100755 => 100644 src/UtilityFunction/KySmallPluginInterface.h mode change 100755 => 100644 src/UtilityFunction/Style/style.cpp mode change 100755 => 100644 src/UtilityFunction/Style/style.h mode change 100755 => 100644 src/UtilityFunction/abstractInterface.h mode change 100755 => 100644 src/UtilityFunction/thumbnail.cpp mode change 100755 => 100644 src/UtilityFunction/thumbnail.h mode change 100755 => 100644 src/UtilityFunction/utility.cpp mode change 100755 => 100644 src/UtilityFunction/utility.h mode change 100755 => 100644 src/UtilityFunction/utilityfunction.pri mode change 100755 => 100644 translations/ukui-menu_bo.qm mode change 100755 => 100644 translations/ukui-menu_bo.ts mode change 100755 => 100644 translations/ukui-menu_tr.qm mode change 100755 => 100644 translations/ukui-menu_tr.ts mode change 100755 => 100644 translations/ukui-menu_zh_CN.qm mode change 100755 => 100644 translations/ukui-menu_zh_CN.ts mode change 100755 => 100644 ukui-menu.desktop mode change 100755 => 100644 ukui-menu.ini mode change 100755 => 100644 ukui-menu.pro create mode 100644 ukui-menu.pro.user diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml old mode 100755 new mode 100644 diff --git a/COPYING b/COPYING old mode 100755 new mode 100644 diff --git a/NEWS b/NEWS old mode 100755 new mode 100644 diff --git a/README.md b/README.md old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/.DS_Store b/data/img/mainviewwidget/.DS_Store old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/DM-all-2x.png b/data/img/mainviewwidget/DM-all-2x.png old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/DM-all.png b/data/img/mainviewwidget/DM-all.png old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/DM-all.svg b/data/img/mainviewwidget/DM-all.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/DM-arrow-2x.png b/data/img/mainviewwidget/DM-arrow-2x.png old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/DM-arrow.png b/data/img/mainviewwidget/DM-arrow.png old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/DM-arrow.svg b/data/img/mainviewwidget/DM-arrow.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/DM-close-2x.png b/data/img/mainviewwidget/DM-close-2x.png old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/DM-close.png b/data/img/mainviewwidget/DM-close.png old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/DM-close.svg b/data/img/mainviewwidget/DM-close.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/DM-function-2x.png b/data/img/mainviewwidget/DM-function-2x.png old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/DM-function.png b/data/img/mainviewwidget/DM-function.png old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/DM-function.svg b/data/img/mainviewwidget/DM-function.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/DM-icon-check.png b/data/img/mainviewwidget/DM-icon-check.png old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/DM-icon-check.svg b/data/img/mainviewwidget/DM-icon-check.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/DM-icon-check@2x.png b/data/img/mainviewwidget/DM-icon-check@2x.png old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/DM-icon-选项.svg b/data/img/mainviewwidget/DM-icon-option.svg old mode 100755 new mode 100644 similarity index 100% rename from data/img/mainviewwidget/DM-icon-选项.svg rename to data/img/mainviewwidget/DM-icon-option.svg diff --git a/data/img/mainviewwidget/DM-icon-search.png b/data/img/mainviewwidget/DM-icon-search.png old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/DM-icon-search.svg b/data/img/mainviewwidget/DM-icon-search.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/DM-icon-search@2x.png b/data/img/mainviewwidget/DM-icon-search@2x.png old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/DM-icon-返回.png b/data/img/mainviewwidget/DM-icon-返回.png old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/DM-icon-返回.svg b/data/img/mainviewwidget/DM-icon-返回.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/DM-icon-返回@2x.png b/data/img/mainviewwidget/DM-icon-返回@2x.png old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/DM-icon-选项.png b/data/img/mainviewwidget/DM-icon-选项.png old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/DM-icon-选项@2x.png b/data/img/mainviewwidget/DM-icon-选项@2x.png old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/DM-letter-2x.png b/data/img/mainviewwidget/DM-letter-2x.png old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/DM-letter.png b/data/img/mainviewwidget/DM-letter.png old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/DM-letter.svg b/data/img/mainviewwidget/DM-letter.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/DM-max-2x.png b/data/img/mainviewwidget/DM-max-2x.png old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/DM-max.png b/data/img/mainviewwidget/DM-max.png old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/DM-max.svg b/data/img/mainviewwidget/DM-max.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/Development-Checked.svg b/data/img/mainviewwidget/Development-Checked.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/Development-Disabled.svg b/data/img/mainviewwidget/Development-Disabled.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/Development-Enabled.svg b/data/img/mainviewwidget/Development-Enabled.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/Development-Normal.svg b/data/img/mainviewwidget/Development-Normal.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/Education-Checked.svg b/data/img/mainviewwidget/Education-Checked.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/Education-Disabled.svg b/data/img/mainviewwidget/Education-Disabled.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/Education-Enabled.svg b/data/img/mainviewwidget/Education-Enabled.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/Education-Normal.svg b/data/img/mainviewwidget/Education-Normal.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/Game-Checked.svg b/data/img/mainviewwidget/Game-Checked.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/Game-Disabled.svg b/data/img/mainviewwidget/Game-Disabled.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/Game-Enabled.svg b/data/img/mainviewwidget/Game-Enabled.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/Game-Normal.svg b/data/img/mainviewwidget/Game-Normal.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/Image-Checked.svg b/data/img/mainviewwidget/Image-Checked.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/Image-Disabled.svg b/data/img/mainviewwidget/Image-Disabled.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/Image-Enabled.svg b/data/img/mainviewwidget/Image-Enabled.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/Image-Normal.svg b/data/img/mainviewwidget/Image-Normal.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/Internet-Checked.svg b/data/img/mainviewwidget/Internet-Checked.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/Internet-Disabled.svg b/data/img/mainviewwidget/Internet-Disabled.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/Internet-Enabled.svg b/data/img/mainviewwidget/Internet-Enabled.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/Internet-Normal.svg b/data/img/mainviewwidget/Internet-Normal.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/Mobile-Checked.svg b/data/img/mainviewwidget/Mobile-Checked.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/Mobile-Disabled.svg b/data/img/mainviewwidget/Mobile-Disabled.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/Mobile-Enabled.svg b/data/img/mainviewwidget/Mobile-Enabled.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/Mobile-Normal.svg b/data/img/mainviewwidget/Mobile-Normal.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/Office-Checked.svg b/data/img/mainviewwidget/Office-Checked.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/Office-Disabled.svg b/data/img/mainviewwidget/Office-Disabled.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/Office-Enabled.svg b/data/img/mainviewwidget/Office-Enabled.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/Office-Normal.svg b/data/img/mainviewwidget/Office-Normal.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/Others-Checked.svg b/data/img/mainviewwidget/Others-Checked.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/Others-Disabled.svg b/data/img/mainviewwidget/Others-Disabled.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/Others-Enabled.svg b/data/img/mainviewwidget/Others-Enabled.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/Others-Normal.svg b/data/img/mainviewwidget/Others-Normal.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/Social-Checked.svg b/data/img/mainviewwidget/Social-Checked.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/Social-Disabled.svg b/data/img/mainviewwidget/Social-Disabled.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/Social-Enabled.svg b/data/img/mainviewwidget/Social-Enabled.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/Social-Normal.svg b/data/img/mainviewwidget/Social-Normal.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/System-Checked.svg b/data/img/mainviewwidget/System-Checked.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/System-Disabled.svg b/data/img/mainviewwidget/System-Disabled.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/System-Enabled.svg b/data/img/mainviewwidget/System-Enabled.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/System-Normal.svg b/data/img/mainviewwidget/System-Normal.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/Video-Checked.svg b/data/img/mainviewwidget/Video-Checked.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/Video-Disabled.svg b/data/img/mainviewwidget/Video-Disabled.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/Video-Enabled.svg b/data/img/mainviewwidget/Video-Enabled.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/Video-Normal.svg b/data/img/mainviewwidget/Video-Normal.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/all-2x.png b/data/img/mainviewwidget/all-2x.png old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/all.png b/data/img/mainviewwidget/all.png old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/all.svg b/data/img/mainviewwidget/all.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/attributeaction.svg b/data/img/mainviewwidget/attributeaction.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/close-2x.png b/data/img/mainviewwidget/close-2x.png old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/close.png b/data/img/mainviewwidget/close.png old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/close.svg b/data/img/mainviewwidget/close.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/downarrow-pressed.svg b/data/img/mainviewwidget/downarrow-pressed.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/downarrow.svg b/data/img/mainviewwidget/downarrow.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/drop-down-2x.png b/data/img/mainviewwidget/drop-down-2x.png old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/drop-down.png b/data/img/mainviewwidget/drop-down.png old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/drop-down.svg b/data/img/mainviewwidget/drop-down.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/fixed.svg b/data/img/mainviewwidget/fixed.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/full-all-2x.png b/data/img/mainviewwidget/full-all-2x.png old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/full-close-2x.png b/data/img/mainviewwidget/full-close-2x.png old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/full-close.png b/data/img/mainviewwidget/full-close.png old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/full-close.svg b/data/img/mainviewwidget/full-close.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/full-drop-down-2x.png b/data/img/mainviewwidget/full-drop-down-2x.png old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/full-drop-down.png b/data/img/mainviewwidget/full-drop-down.png old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/full-drop-down.svg b/data/img/mainviewwidget/full-drop-down.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/full-function-2x.png b/data/img/mainviewwidget/full-function-2x.png old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/full-function.png b/data/img/mainviewwidget/full-function.png old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/full-function.svg b/data/img/mainviewwidget/full-function.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/full-letter-2x.png b/data/img/mainviewwidget/full-letter-2x.png old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/full-letter.png b/data/img/mainviewwidget/full-letter.png old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/full-letter.svg b/data/img/mainviewwidget/full-letter.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/full-min-2x.png b/data/img/mainviewwidget/full-min-2x.png old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/full-min.png b/data/img/mainviewwidget/full-min.png old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/full-min.svg b/data/img/mainviewwidget/full-min.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/full-search-2x.png b/data/img/mainviewwidget/full-search-2x.png old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/full-search.png b/data/img/mainviewwidget/full-search.png old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/full-search.svg b/data/img/mainviewwidget/full-search.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/fullicon-all.png b/data/img/mainviewwidget/fullicon-all.png old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/fullicon-all.svg b/data/img/mainviewwidget/fullicon-all.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/function-2x.png b/data/img/mainviewwidget/function-2x.png old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/function.png b/data/img/mainviewwidget/function.png old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/function.svg b/data/img/mainviewwidget/function.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/icon- search-2x.png b/data/img/mainviewwidget/icon- search-2x.png old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/icon- search.png b/data/img/mainviewwidget/icon- search.png old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/icon- search.svg b/data/img/mainviewwidget/icon- search.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/icon- 返回.png b/data/img/mainviewwidget/icon- 返回.png old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/icon- 返回.svg b/data/img/mainviewwidget/icon- 返回.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/icon- 返回@2x.png b/data/img/mainviewwidget/icon- 返回@2x.png old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/icon- 选项.png b/data/img/mainviewwidget/icon- 选项.png old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/icon- 选项.svg b/data/img/mainviewwidget/icon- 选项.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/icon- 选项@2x.png b/data/img/mainviewwidget/icon- 选项@2x.png old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/icon-check.png b/data/img/mainviewwidget/icon-check.png old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/icon-check.svg b/data/img/mainviewwidget/icon-check.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/icon-check@2x.png b/data/img/mainviewwidget/icon-check@2x.png old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/leftarrow-hover.svg b/data/img/mainviewwidget/leftarrow-hover.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/leftarrow.svg b/data/img/mainviewwidget/leftarrow.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/letter-2x.png b/data/img/mainviewwidget/letter-2x.png old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/letter.png b/data/img/mainviewwidget/letter.png old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/letter.svg b/data/img/mainviewwidget/letter.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/lock-fs.svg b/data/img/mainviewwidget/lock-fs.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/lock.svg b/data/img/mainviewwidget/lock.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/max-2x.png b/data/img/mainviewwidget/max-2x.png old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/max.png b/data/img/mainviewwidget/max.png old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/max.svg b/data/img/mainviewwidget/max.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/power-2x.png b/data/img/mainviewwidget/power-2x.png old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/power.png b/data/img/mainviewwidget/power.png old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/power.svg b/data/img/mainviewwidget/power.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/recent-disabled.svg b/data/img/mainviewwidget/recent-disabled.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/recent-enabled.svg b/data/img/mainviewwidget/recent-enabled.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/recent-gray.svg b/data/img/mainviewwidget/recent-gray.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/recent.svg b/data/img/mainviewwidget/recent.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/rightarrow-hover.svg b/data/img/mainviewwidget/rightarrow-hover.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/rightarrow.svg b/data/img/mainviewwidget/rightarrow.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/search.svg b/data/img/mainviewwidget/search.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/select.svg b/data/img/mainviewwidget/select.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/selected.svg b/data/img/mainviewwidget/selected.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/ukui-search-blue.svg b/data/img/mainviewwidget/ukui-search-blue.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/ukui-search.svg b/data/img/mainviewwidget/ukui-search.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/unfixed.svg b/data/img/mainviewwidget/unfixed.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/uninstall.svg b/data/img/mainviewwidget/uninstall.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/uparrow-pressed.svg b/data/img/mainviewwidget/uparrow-pressed.svg old mode 100755 new mode 100644 diff --git a/data/img/mainviewwidget/uparrow.svg b/data/img/mainviewwidget/uparrow.svg old mode 100755 new mode 100644 diff --git a/data/img/sidebarwidget/commonuse.svg b/data/img/sidebarwidget/commonuse.svg old mode 100755 new mode 100644 diff --git a/data/img/sidebarwidget/computer.svg b/data/img/sidebarwidget/computer.svg old mode 100755 new mode 100644 diff --git a/data/img/sidebarwidget/control.svg b/data/img/sidebarwidget/control.svg old mode 100755 new mode 100644 diff --git a/data/img/sidebarwidget/fixed.svg b/data/img/sidebarwidget/fixed.svg old mode 100755 new mode 100644 diff --git a/data/img/sidebarwidget/fullusericon.png b/data/img/sidebarwidget/fullusericon.png old mode 100755 new mode 100644 diff --git a/data/img/sidebarwidget/function.svg b/data/img/sidebarwidget/function.svg old mode 100755 new mode 100644 diff --git a/data/img/sidebarwidget/letter.svg b/data/img/sidebarwidget/letter.svg old mode 100755 new mode 100644 diff --git a/data/img/sidebarwidget/lock.svg b/data/img/sidebarwidget/lock.svg old mode 100755 new mode 100644 diff --git a/data/img/sidebarwidget/max.svg b/data/img/sidebarwidget/max.svg old mode 100755 new mode 100644 diff --git a/data/img/sidebarwidget/min.svg b/data/img/sidebarwidget/min.svg old mode 100755 new mode 100644 diff --git a/data/img/sidebarwidget/personal.svg b/data/img/sidebarwidget/personal.svg old mode 100755 new mode 100644 diff --git a/data/img/sidebarwidget/rightarrow.svg b/data/img/sidebarwidget/rightarrow.svg old mode 100755 new mode 100644 diff --git a/data/img/sidebarwidget/setting.svg b/data/img/sidebarwidget/setting.svg old mode 100755 new mode 100644 diff --git a/data/img/sidebarwidget/shutdown.svg b/data/img/sidebarwidget/shutdown.svg old mode 100755 new mode 100644 diff --git a/data/img/sidebarwidget/trash.svg b/data/img/sidebarwidget/trash.svg old mode 100755 new mode 100644 diff --git a/data/img/sidebarwidget/unfixed.svg b/data/img/sidebarwidget/unfixed.svg old mode 100755 new mode 100644 diff --git a/data/img/sidebarwidget/usericon-darkcolor.svg b/data/img/sidebarwidget/usericon-darkcolor.svg old mode 100755 new mode 100644 diff --git a/data/img/sidebarwidget/usericon-lightcolor.svg b/data/img/sidebarwidget/usericon-lightcolor.svg old mode 100755 new mode 100644 diff --git a/main.cpp b/main.cpp old mode 100755 new mode 100644 diff --git a/man/ukui-menu.1 b/man/ukui-menu.1 old mode 100755 new mode 100644 diff --git a/res.qrc b/res.qrc old mode 100755 new mode 100644 index 3a10c26..47d0ea3 --- a/res.qrc +++ b/res.qrc @@ -27,7 +27,6 @@ data/img/mainviewwidget/DM-icon-返回.svg data/img/mainviewwidget/DM-icon-返回@2x.png data/img/mainviewwidget/DM-icon-选项.png - data/img/mainviewwidget/DM-icon-选项.svg data/img/mainviewwidget/DM-icon-选项@2x.png data/img/mainviewwidget/DM-icon-check.png data/img/mainviewwidget/DM-icon-check.svg @@ -171,5 +170,6 @@ data/img/sidebarwidget/usericon-lightcolor.svg src/BackProcess/Search/pinyinWithoutTone.txt src/BackProcess/Search/pinyinWithTone.txt + data/img/mainviewwidget/DM-icon-option.svg diff --git a/src/BackProcess/DBus/dbus-adaptor.cpp b/src/BackProcess/DBus/dbus-adaptor.cpp old mode 100755 new mode 100644 diff --git a/src/BackProcess/DBus/dbus-adaptor.h b/src/BackProcess/DBus/dbus-adaptor.h old mode 100755 new mode 100644 diff --git a/src/BackProcess/DBus/dbus.cpp b/src/BackProcess/DBus/dbus.cpp old mode 100755 new mode 100644 diff --git a/src/BackProcess/DBus/dbus.h b/src/BackProcess/DBus/dbus.h old mode 100755 new mode 100644 diff --git a/src/BackProcess/DBus/org.ukui.menu.xml b/src/BackProcess/DBus/org.ukui.menu.xml old mode 100755 new mode 100644 diff --git a/src/BackProcess/FileWatcher/convert_winid_to_desktop.cpp b/src/BackProcess/FileWatcher/convert_winid_to_desktop.cpp old mode 100755 new mode 100644 diff --git a/src/BackProcess/FileWatcher/convert_winid_to_desktop.h b/src/BackProcess/FileWatcher/convert_winid_to_desktop.h old mode 100755 new mode 100644 diff --git a/src/BackProcess/FileWatcher/desktop_watcher.cpp b/src/BackProcess/FileWatcher/desktop_watcher.cpp old mode 100755 new mode 100644 diff --git a/src/BackProcess/FileWatcher/desktop_watcher.h b/src/BackProcess/FileWatcher/desktop_watcher.h old mode 100755 new mode 100644 diff --git a/src/BackProcess/FileWatcher/directory_changed_thread.cpp b/src/BackProcess/FileWatcher/directory_changed_thread.cpp old mode 100755 new mode 100644 diff --git a/src/BackProcess/FileWatcher/directory_changed_thread.h b/src/BackProcess/FileWatcher/directory_changed_thread.h old mode 100755 new mode 100644 diff --git a/src/BackProcess/FileWatcher/software_database_update_thread.cpp b/src/BackProcess/FileWatcher/software_database_update_thread.cpp old mode 100755 new mode 100644 diff --git a/src/BackProcess/FileWatcher/software_database_update_thread.h b/src/BackProcess/FileWatcher/software_database_update_thread.h old mode 100755 new mode 100644 diff --git a/src/BackProcess/FileWatcher/tablet_directorychanged_thread.cpp b/src/BackProcess/FileWatcher/tablet_directorychanged_thread.cpp old mode 100755 new mode 100644 diff --git a/src/BackProcess/FileWatcher/tablet_directorychanged_thread.h b/src/BackProcess/FileWatcher/tablet_directorychanged_thread.h old mode 100755 new mode 100644 diff --git a/src/BackProcess/Interface/currenttime_interface.cpp b/src/BackProcess/Interface/currenttime_interface.cpp old mode 100755 new mode 100644 diff --git a/src/BackProcess/Interface/currenttime_interface.h b/src/BackProcess/Interface/currenttime_interface.h old mode 100755 new mode 100644 diff --git a/src/BackProcess/Interface/ukui_chineseletter.cpp b/src/BackProcess/Interface/ukui_chineseletter.cpp old mode 100755 new mode 100644 diff --git a/src/BackProcess/Interface/ukui_chineseletter.h b/src/BackProcess/Interface/ukui_chineseletter.h old mode 100755 new mode 100644 diff --git a/src/BackProcess/Interface/ukuimenuinterface.cpp b/src/BackProcess/Interface/ukuimenuinterface.cpp old mode 100755 new mode 100644 index 50e4f9a..0f7386c --- a/src/BackProcess/Interface/ukuimenuinterface.cpp +++ b/src/BackProcess/Interface/ukuimenuinterface.cpp @@ -576,8 +576,6 @@ QVector UkuiMenuInterface::createAppInfoVector() sql.exec(QString("select name_zh from appCategory where app_name=\"%1\" ").arg(desktopfpExecName)); if (sql.next()) { - myDebug() << "数据库执行成功"; - for (int j = 0; j < vector.size(); j++) { if (vector.at(j).contains(sql.value(0).toString())) { appInfoList.append(QString::number(j)); diff --git a/src/BackProcess/Interface/ukuimenuinterface.h b/src/BackProcess/Interface/ukuimenuinterface.h old mode 100755 new mode 100644 diff --git a/src/BackProcess/Search/file-utils.cpp b/src/BackProcess/Search/file-utils.cpp old mode 100755 new mode 100644 diff --git a/src/BackProcess/Search/file-utils.h b/src/BackProcess/Search/file-utils.h old mode 100755 new mode 100644 diff --git a/src/BackProcess/Search/pinyinWithTone.txt b/src/BackProcess/Search/pinyinWithTone.txt old mode 100755 new mode 100644 diff --git a/src/BackProcess/Search/pinyinWithoutTone.txt b/src/BackProcess/Search/pinyinWithoutTone.txt old mode 100755 new mode 100644 diff --git a/src/BackProcess/Search/searchappthread.cpp b/src/BackProcess/Search/searchappthread.cpp old mode 100755 new mode 100644 diff --git a/src/BackProcess/Search/searchappthread.h b/src/BackProcess/Search/searchappthread.h old mode 100755 new mode 100644 diff --git a/src/BackProcess/XEventMonitor/xeventmonitor.cpp b/src/BackProcess/XEventMonitor/xeventmonitor.cpp old mode 100755 new mode 100644 diff --git a/src/BackProcess/XEventMonitor/xeventmonitor.h b/src/BackProcess/XEventMonitor/xeventmonitor.h old mode 100755 new mode 100644 diff --git a/src/BackProcess/backprocess.pri b/src/BackProcess/backprocess.pri old mode 100755 new mode 100644 diff --git a/src/BackProcess/tablet/getmodeldata.cpp b/src/BackProcess/tablet/getmodeldata.cpp old mode 100755 new mode 100644 diff --git a/src/BackProcess/tablet/getmodeldata.h b/src/BackProcess/tablet/getmodeldata.h old mode 100755 new mode 100644 diff --git a/src/BackProcess/tablet/pagemanager.cpp b/src/BackProcess/tablet/pagemanager.cpp old mode 100755 new mode 100644 diff --git a/src/BackProcess/tablet/pagemanager.h b/src/BackProcess/tablet/pagemanager.h old mode 100755 new mode 100644 diff --git a/src/QtSingleApplication/QtLockedFile b/src/QtSingleApplication/QtLockedFile old mode 100755 new mode 100644 diff --git a/src/QtSingleApplication/QtSingleApplication b/src/QtSingleApplication/QtSingleApplication old mode 100755 new mode 100644 diff --git a/src/QtSingleApplication/qtlocalpeer.cpp b/src/QtSingleApplication/qtlocalpeer.cpp old mode 100755 new mode 100644 diff --git a/src/QtSingleApplication/qtlocalpeer.h b/src/QtSingleApplication/qtlocalpeer.h old mode 100755 new mode 100644 diff --git a/src/QtSingleApplication/qtlockedfile.cpp b/src/QtSingleApplication/qtlockedfile.cpp old mode 100755 new mode 100644 diff --git a/src/QtSingleApplication/qtlockedfile.h b/src/QtSingleApplication/qtlockedfile.h old mode 100755 new mode 100644 diff --git a/src/QtSingleApplication/qtlockedfile_unix.cpp b/src/QtSingleApplication/qtlockedfile_unix.cpp old mode 100755 new mode 100644 diff --git a/src/QtSingleApplication/qtlockedfile_win.cpp b/src/QtSingleApplication/qtlockedfile_win.cpp old mode 100755 new mode 100644 diff --git a/src/QtSingleApplication/qtsingleapplication.cpp b/src/QtSingleApplication/qtsingleapplication.cpp old mode 100755 new mode 100644 diff --git a/src/QtSingleApplication/qtsingleapplication.h b/src/QtSingleApplication/qtsingleapplication.h old mode 100755 new mode 100644 diff --git a/src/QtSingleApplication/qtsingleapplication.pri b/src/QtSingleApplication/qtsingleapplication.pri old mode 100755 new mode 100644 diff --git a/src/QtSingleApplication/qtsinglecoreapplication.cpp b/src/QtSingleApplication/qtsinglecoreapplication.cpp old mode 100755 new mode 100644 diff --git a/src/QtSingleApplication/qtsinglecoreapplication.h b/src/QtSingleApplication/qtsinglecoreapplication.h old mode 100755 new mode 100644 diff --git a/src/QtSingleApplication/qtsinglecoreapplication.pri b/src/QtSingleApplication/qtsinglecoreapplication.pri old mode 100755 new mode 100644 diff --git a/src/UserInterface/Button/function_classify_button.cpp b/src/UserInterface/Button/function_classify_button.cpp old mode 100755 new mode 100644 index f9b58ef..2494be4 --- a/src/UserInterface/Button/function_classify_button.cpp +++ b/src/UserInterface/Button/function_classify_button.cpp @@ -89,8 +89,22 @@ void FunctionClassifyButton::paintEvent(QPaintEvent *e) painter.setPen(Qt::NoPen); if (!m_fullscreen) { - QColor color = option.palette.color(QPalette::Text); - color.setAlphaF(0.15); + QColor color; + + if (option.state & QStyle::State_Selected) { + if (g_curStyle == "ukui-dark") { + color.setNamedColor("#33FFFFFF"); + } else { + color.setNamedColor("#D1FFFFFF"); + } + } else { + if (g_curStyle == "ukui-dark") { + color.setNamedColor("#1AFFFFFF"); + } else { + color.setNamedColor("#8CFFFFFF"); + } + } + painter.setBrush(color); } else { painter.setOpacity(0.15); diff --git a/src/UserInterface/Button/function_classify_button.h b/src/UserInterface/Button/function_classify_button.h old mode 100755 new mode 100644 diff --git a/src/UserInterface/Button/letter_classify_button.cpp b/src/UserInterface/Button/letter_classify_button.cpp old mode 100755 new mode 100644 index 8fb9340..5bc882f --- a/src/UserInterface/Button/letter_classify_button.cpp +++ b/src/UserInterface/Button/letter_classify_button.cpp @@ -19,6 +19,7 @@ #include "letter_classify_button.h" #include #include +#include "utility.h" LetterClassifyButton::LetterClassifyButton(QWidget *parent, bool fullscreen, @@ -55,8 +56,22 @@ void LetterClassifyButton::paintEvent(QPaintEvent *e) painter.setPen(Qt::NoPen); if (!m_fullscreen) { - QColor color = option.palette.color(QPalette::Text); - color.setAlphaF(0.15); + QColor color; + + if (option.state & QStyle::State_Selected) { + if (g_curStyle == "ukui-dark") { + color.setNamedColor("#33FFFFFF"); + } else { + color.setNamedColor("#D1FFFFFF"); + } + } else { + if (g_curStyle == "ukui-dark") { + color.setNamedColor("#1AFFFFFF"); + } else { + color.setNamedColor("#8CFFFFFF"); + } + } + painter.setBrush(color); } else { painter.setOpacity(0.15); @@ -81,10 +96,13 @@ void LetterClassifyButton::paintEvent(QPaintEvent *e) QStyleOptionButton subopt = option; subopt.rect = painter.style()->subElementRect(QStyle::SE_PushButtonContents, &option, this); - // if(m_fullscreen) - // subopt.palette.setBrush(QPalette::ButtonText, QColor(Qt::white)); - // else - // subopt.palette.setBrush(QPalette::HighlightedText, subopt.palette.text()); + + if (m_fullscreen) { + subopt.palette.setBrush(QPalette::ButtonText, QColor(Qt::white)); + } else { + subopt.palette.setBrush(QPalette::HighlightedText, subopt.palette.text()); + } + painter.style()->drawControl(QStyle::CE_PushButtonLabel, &subopt, &painter, this); return; } diff --git a/src/UserInterface/Button/letter_classify_button.h b/src/UserInterface/Button/letter_classify_button.h old mode 100755 new mode 100644 diff --git a/src/UserInterface/Button/tool_button.cpp b/src/UserInterface/Button/tool_button.cpp old mode 100755 new mode 100644 diff --git a/src/UserInterface/Button/tool_button.h b/src/UserInterface/Button/tool_button.h old mode 100755 new mode 100644 diff --git a/src/UserInterface/ListView/fulllistview.cpp b/src/UserInterface/ListView/fulllistview.cpp old mode 100755 new mode 100644 diff --git a/src/UserInterface/ListView/fulllistview.h b/src/UserInterface/ListView/fulllistview.h old mode 100755 new mode 100644 diff --git a/src/UserInterface/ListView/klistview.cpp b/src/UserInterface/ListView/klistview.cpp old mode 100755 new mode 100644 diff --git a/src/UserInterface/ListView/klistview.h b/src/UserInterface/ListView/klistview.h old mode 100755 new mode 100644 diff --git a/src/UserInterface/ListView/listview.cpp b/src/UserInterface/ListView/listview.cpp old mode 100755 new mode 100644 index 9bd82c4..b034145 --- a/src/UserInterface/ListView/listview.cpp +++ b/src/UserInterface/ListView/listview.cpp @@ -129,8 +129,14 @@ void ListView::paintEvent(QPaintEvent *e) { //滚动条 QPalette p = this->verticalScrollBar()->palette(); - QColor color(255, 255, 255); - color.setAlphaF(0.25); + QColor color; + + if (g_curStyle == "ukui-dark") { + color = QColor("#26FFFFFF"); + } else { + color = QColor("#1A000000"); + } + p.setColor(QPalette::Active, QPalette::Button, color); this->verticalScrollBar()->setPalette(p); QListView::paintEvent(e); diff --git a/src/UserInterface/ListView/listview.h b/src/UserInterface/ListView/listview.h old mode 100755 new mode 100644 diff --git a/src/UserInterface/ListView/rightlistview.cpp b/src/UserInterface/ListView/rightlistview.cpp old mode 100755 new mode 100644 index a70a58f..e8dec33 --- a/src/UserInterface/ListView/rightlistview.cpp +++ b/src/UserInterface/ListView/rightlistview.cpp @@ -39,7 +39,9 @@ RightListView::~RightListView() void RightListView::initWidget() { + setAttribute(Qt::WA_TranslucentBackground); viewport()->setAttribute(Qt::WA_TranslucentBackground); + viewport()->setAutoFillBackground(false); this->setSelectionMode(QAbstractItemView::SingleSelection); this->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff); this->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff); @@ -62,10 +64,10 @@ void RightListView::dropEvent(QDropEvent *event) RightListView *source = qobject_cast(event->source()); if (source && source == this) { - dropPos = event->pos(); + m_dropPos = event->pos(); - if (this->indexAt(dropPos).isValid()) { - QVariant var = listmodel->data(indexAt(dropPos), Qt::DisplayRole); + if (this->indexAt(m_dropPos).isValid()) { + QVariant var = listmodel->data(indexAt(m_dropPos), Qt::DisplayRole); QString desktopfp = var.value(); QFileInfo fileInfo(desktopfp); QString desktopfn = fileInfo.fileName(); @@ -88,6 +90,11 @@ void RightListView::selectFirstItem() } } +void RightListView::paintEvent(QPaintEvent *e) +{ + QListView::paintEvent(e); +} + void RightListView::keyPressEvent(QKeyEvent *e) { if (e->type() == QEvent::KeyPress) { @@ -106,6 +113,11 @@ void RightListView::keyPressEvent(QKeyEvent *e) } } +void RightListView::changeStyleColor(const QColor &color) +{ + m_styleColor = color; +} + void RightListView::enterEvent(QEvent *e) { Q_UNUSED(e); diff --git a/src/UserInterface/ListView/rightlistview.h b/src/UserInterface/ListView/rightlistview.h old mode 100755 new mode 100644 index e85e07c..c75e0cc --- a/src/UserInterface/ListView/rightlistview.h +++ b/src/UserInterface/ListView/rightlistview.h @@ -26,12 +26,14 @@ protected: void keyPressEvent(QKeyEvent *e); void dropEvent(QDropEvent *event); void enterEvent(QEvent *e); + void paintEvent(QPaintEvent *e); private: RightClickMenu *menu = nullptr; //右键菜单 QStringList data; QGSettings *gsetting; - QPoint dropPos; + QPoint m_dropPos; + QColor m_styleColor; // bool inCurView; @@ -39,6 +41,7 @@ public Q_SLOTS: // void rightClickedSlot(const QPoint &pos);//右键菜单 void selectFirstItem(); + void changeStyleColor(const QColor &color); Q_SIGNALS: diff --git a/src/UserInterface/ListView/tabletlistview.cpp b/src/UserInterface/ListView/tabletlistview.cpp old mode 100755 new mode 100644 diff --git a/src/UserInterface/ListView/tabletlistview.h b/src/UserInterface/ListView/tabletlistview.h old mode 100755 new mode 100644 diff --git a/src/UserInterface/Other/classify_btn_scrollarea.cpp b/src/UserInterface/Other/classify_btn_scrollarea.cpp old mode 100755 new mode 100644 diff --git a/src/UserInterface/Other/classify_btn_scrollarea.h b/src/UserInterface/Other/classify_btn_scrollarea.h old mode 100755 new mode 100644 diff --git a/src/UserInterface/Other/lettertooltip.cpp b/src/UserInterface/Other/lettertooltip.cpp old mode 100755 new mode 100644 diff --git a/src/UserInterface/Other/lettertooltip.h b/src/UserInterface/Other/lettertooltip.h old mode 100755 new mode 100644 diff --git a/src/UserInterface/Other/scrollarea.cpp b/src/UserInterface/Other/scrollarea.cpp old mode 100755 new mode 100644 diff --git a/src/UserInterface/Other/scrollarea.h b/src/UserInterface/Other/scrollarea.h old mode 100755 new mode 100644 diff --git a/src/UserInterface/RightClickMenu/menubox.cpp b/src/UserInterface/RightClickMenu/menubox.cpp old mode 100755 new mode 100644 diff --git a/src/UserInterface/RightClickMenu/menubox.h b/src/UserInterface/RightClickMenu/menubox.h old mode 100755 new mode 100644 diff --git a/src/UserInterface/RightClickMenu/rightclickmenu.cpp b/src/UserInterface/RightClickMenu/rightclickmenu.cpp old mode 100755 new mode 100644 diff --git a/src/UserInterface/RightClickMenu/rightclickmenu.h b/src/UserInterface/RightClickMenu/rightclickmenu.h old mode 100755 new mode 100644 diff --git a/src/UserInterface/RightClickMenu/tabletrightclickmenu.cpp b/src/UserInterface/RightClickMenu/tabletrightclickmenu.cpp old mode 100755 new mode 100644 diff --git a/src/UserInterface/RightClickMenu/tabletrightclickmenu.h b/src/UserInterface/RightClickMenu/tabletrightclickmenu.h old mode 100755 new mode 100644 diff --git a/src/UserInterface/ViewItem/full_item_delegate.cpp b/src/UserInterface/ViewItem/full_item_delegate.cpp old mode 100755 new mode 100644 diff --git a/src/UserInterface/ViewItem/full_item_delegate.h b/src/UserInterface/ViewItem/full_item_delegate.h old mode 100755 new mode 100644 diff --git a/src/UserInterface/ViewItem/itemdelegate.cpp b/src/UserInterface/ViewItem/itemdelegate.cpp old mode 100755 new mode 100644 index 69f6631..aa7f169 --- a/src/UserInterface/ViewItem/itemdelegate.cpp +++ b/src/UserInterface/ViewItem/itemdelegate.cpp @@ -20,7 +20,7 @@ #include #include #include -#include "src/UtilityFunction/utility.h" +#include "utility.h" ItemDelegate::ItemDelegate(QObject *parent, int module): KItemDelegate(parent) @@ -58,8 +58,22 @@ void ItemDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option, painter->setRenderHint(QPainter::Antialiasing); if ((option.state & QStyle::State_MouseOver) || (option.state & QStyle::State_HasFocus)) { - QColor color = option.palette.text().color(); - color.setAlphaF(0.15); + QColor color; + + if (option.state & QStyle::State_Selected) { + if (g_curStyle == "ukui-dark") { + color.setNamedColor("#33FFFFFF"); + } else { + color.setNamedColor("#D1FFFFFF"); + } + } else { + if (g_curStyle == "ukui-dark") { + color.setNamedColor("#1AFFFFFF"); + } else { + color.setNamedColor("#8CFFFFFF"); + } + } + painter->save(); painter->setPen(QPen(Qt::NoPen)); painter->setBrush(color); @@ -153,10 +167,13 @@ void ItemDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option, // QRect textRect=QRect(rect.x()+11,rect.y()+12,rect.width(),rect.height()); QRect textRect = QRect(rect.x() + 11, rect.y(), rect.width(), rect.height()); painter->drawText(textRect, Qt::AlignVCenter, strlist.at(0)); - painter->setRenderHint(QPainter::Antialiasing, true); - painter->setPen(QPen(QColor(option.palette.text().color()), 1)); - painter->setOpacity(0.1); - painter->drawLine(QPoint(5, rect.bottom()), QPoint(rect.right(), rect.bottom())); + painter->setRenderHints(QPainter::SmoothPixmapTransform, true); + QPixmap pixmap = getCurIcon(":/data/img/mainviewwidget/DM-icon-option.svg", true).pixmap(QSize(16, 16)); + + if ((option.state & QStyle::State_MouseOver) || (option.state & QStyle::State_HasFocus)) { + painter->drawPixmap(rect.width() - 25, rect.y() + 15, pixmap); + } + painter->restore(); } } else if (module == -1) { @@ -279,7 +296,7 @@ void ItemDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option, QString desktopfn = fileInfo.fileName(); if (checkIfLocked(desktopfn)) { - QIcon icon(QString(":/data/img/mainviewwidget/lock.svg")); + QIcon icon = getCurIcon(":/data/img/mainviewwidget/lock.svg", true); icon.paint(painter, QRect(rect.topRight().x() - 22, rect.y() + (rect.height() - 16) / 2, 16, 16)); } diff --git a/src/UserInterface/ViewItem/itemdelegate.h b/src/UserInterface/ViewItem/itemdelegate.h old mode 100755 new mode 100644 diff --git a/src/UserInterface/ViewItem/kitemdelegate.cpp b/src/UserInterface/ViewItem/kitemdelegate.cpp old mode 100755 new mode 100644 diff --git a/src/UserInterface/ViewItem/kitemdelegate.h b/src/UserInterface/ViewItem/kitemdelegate.h old mode 100755 new mode 100644 diff --git a/src/UserInterface/ViewItem/recent_item_delegate.cpp b/src/UserInterface/ViewItem/recent_item_delegate.cpp old mode 100755 new mode 100644 diff --git a/src/UserInterface/ViewItem/recent_item_delegate.h b/src/UserInterface/ViewItem/recent_item_delegate.h old mode 100755 new mode 100644 diff --git a/src/UserInterface/ViewItem/right_item_delegate.cpp b/src/UserInterface/ViewItem/right_item_delegate.cpp old mode 100755 new mode 100644 index c463c4a..a67a6ca --- a/src/UserInterface/ViewItem/right_item_delegate.cpp +++ b/src/UserInterface/ViewItem/right_item_delegate.cpp @@ -1,5 +1,5 @@ #include "right_item_delegate.h" -#include "src/UtilityFunction/utility.h" +#include "utility.h" #include RightItemDelegate::RightItemDelegate(QObject *parent): @@ -37,16 +37,27 @@ void RightItemDelegate::paint(QPainter *painter, const QStyleOptionViewItem &opt painter->setRenderHint(QPainter::Antialiasing); painter->save(); painter->setPen(QPen(Qt::NoPen)); - painter->setBrush(option.palette.base().color()); if ((option.state & QStyle::State_MouseOver) || (option.state & QStyle::State_HasFocus)) { if (option.state & QStyle::State_Selected) { - painter->setOpacity(0.8); + if (g_curStyle == "ukui-dark") { + painter->setBrush(QColor("#7A000000")); + } else { + painter->setBrush(QColor("#BFFFFFFF")); + } } else { - painter->setOpacity(0.6); + if (g_curStyle == "ukui-dark") { + painter->setBrush(QColor("#66000000")); + } else { + painter->setBrush(QColor("#99FFFFFF")); + } } } else { - painter->setOpacity(0.4); + if (g_curStyle == "ukui-dark") { + painter->setBrush(QColor("#40000000")); + } else { + painter->setBrush(QColor("#66FFFFFF")); + } } painter->drawPath(path); diff --git a/src/UserInterface/ViewItem/right_item_delegate.h b/src/UserInterface/ViewItem/right_item_delegate.h old mode 100755 new mode 100644 diff --git a/src/UserInterface/ViewItem/tablet_full_itemdelegate.cpp b/src/UserInterface/ViewItem/tablet_full_itemdelegate.cpp old mode 100755 new mode 100644 diff --git a/src/UserInterface/ViewItem/tablet_full_itemdelegate.h b/src/UserInterface/ViewItem/tablet_full_itemdelegate.h old mode 100755 new mode 100644 diff --git a/src/UserInterface/Widget/animationpage.cpp b/src/UserInterface/Widget/animationpage.cpp old mode 100755 new mode 100644 diff --git a/src/UserInterface/Widget/animationpage.h b/src/UserInterface/Widget/animationpage.h old mode 100755 new mode 100644 diff --git a/src/UserInterface/Widget/full_commonuse_widget.cpp b/src/UserInterface/Widget/full_commonuse_widget.cpp old mode 100755 new mode 100644 diff --git a/src/UserInterface/Widget/full_commonuse_widget.h b/src/UserInterface/Widget/full_commonuse_widget.h old mode 100755 new mode 100644 diff --git a/src/UserInterface/Widget/full_function_widget.cpp b/src/UserInterface/Widget/full_function_widget.cpp old mode 100755 new mode 100644 diff --git a/src/UserInterface/Widget/full_function_widget.h b/src/UserInterface/Widget/full_function_widget.h old mode 100755 new mode 100644 diff --git a/src/UserInterface/Widget/full_letter_widget.cpp b/src/UserInterface/Widget/full_letter_widget.cpp old mode 100755 new mode 100644 diff --git a/src/UserInterface/Widget/full_letter_widget.h b/src/UserInterface/Widget/full_letter_widget.h old mode 100755 new mode 100644 diff --git a/src/UserInterface/Widget/full_searchresult_widget.cpp b/src/UserInterface/Widget/full_searchresult_widget.cpp old mode 100755 new mode 100644 diff --git a/src/UserInterface/Widget/full_searchresult_widget.h b/src/UserInterface/Widget/full_searchresult_widget.h old mode 100755 new mode 100644 diff --git a/src/UserInterface/Widget/function_Widget.cpp b/src/UserInterface/Widget/function_Widget.cpp old mode 100755 new mode 100644 diff --git a/src/UserInterface/Widget/function_Widget.h b/src/UserInterface/Widget/function_Widget.h old mode 100755 new mode 100644 diff --git a/src/UserInterface/Widget/function_button_widget.cpp b/src/UserInterface/Widget/function_button_widget.cpp old mode 100755 new mode 100644 index f23f976..cd7b8f8 --- a/src/UserInterface/Widget/function_button_widget.cpp +++ b/src/UserInterface/Widget/function_button_widget.cpp @@ -48,9 +48,8 @@ void FunctionButtonWidget::initUi() { this->setWindowFlags(Qt::CustomizeWindowHint | Qt::FramelessWindowHint); this->setAttribute(Qt::WA_StyledBackground, true); - this->resize(Style::LeftBtnWidth * 2 + 5, Style::LeftBtnHeight * 6 + 25); QGridLayout *gridLayout = new QGridLayout; - gridLayout->setContentsMargins(0, 0, 0, 0); + gridLayout->setContentsMargins(40, 80, 40, 80); gridLayout->setSpacing(5); this->setLayout(gridLayout); diff --git a/src/UserInterface/Widget/function_button_widget.h b/src/UserInterface/Widget/function_button_widget.h old mode 100755 new mode 100644 diff --git a/src/UserInterface/Widget/letter_button_widget.cpp b/src/UserInterface/Widget/letter_button_widget.cpp old mode 100755 new mode 100644 index f68a685..68e3a74 --- a/src/UserInterface/Widget/letter_button_widget.cpp +++ b/src/UserInterface/Widget/letter_button_widget.cpp @@ -35,9 +35,8 @@ void LetterButtonWidget::initUi() this->setWindowFlags(Qt::CustomizeWindowHint | Qt::FramelessWindowHint); this->setAttribute(Qt::WA_StyledBackground, true); this->setFocusPolicy(Qt::NoFocus); - this->resize(235, 366); QGridLayout *gridLayout = new QGridLayout; - gridLayout->setContentsMargins(0, 0, 0, 0); + gridLayout->setContentsMargins(35, 80, 35, 80); gridLayout->setSpacing(5); this->setLayout(gridLayout); QStringList letterlist; @@ -51,13 +50,13 @@ void LetterButtonWidget::initUi() letterlist.append("&&"); letterlist.append("#"); - for (int row = 0; row < 7; row++) { - for (int col = 0; col < 4; col++) { - if (row * 4 + col < letterlist.size()) { - LetterClassifyButton *btn = new LetterClassifyButton(this, false, letterlist.at(row * 4 + col)); + for (int row = 0; row < 6; row++) { + for (int col = 0; col < 5; col++) { + if (row * 5 + col < letterlist.size()) { + LetterClassifyButton *btn = new LetterClassifyButton(this, false, letterlist.at(row * 5 + col)); btn->setFlat(true); btn->setCheckable(false); - btn->setFixedSize(55, 48); + btn->setFixedSize(38, 38); gridLayout->addWidget(btn, row, col); connect(btn, &LetterClassifyButton::buttonClicked, this, &LetterButtonWidget::letterBtnClickedSlot); } else { diff --git a/src/UserInterface/Widget/letter_button_widget.h b/src/UserInterface/Widget/letter_button_widget.h old mode 100755 new mode 100644 diff --git a/src/UserInterface/Widget/main_view_widget.cpp b/src/UserInterface/Widget/main_view_widget.cpp old mode 100755 new mode 100644 index 4cf9778..8a883d8 --- a/src/UserInterface/Widget/main_view_widget.cpp +++ b/src/UserInterface/Widget/main_view_widget.cpp @@ -42,9 +42,20 @@ MainViewWidget::~MainViewWidget() { } +void MainViewWidget::styleChangeSlot(const QString &style) +{ + m_curStyle = style; + + if (style == "ukui-dark") { + m_backColor.setNamedColor("#800D0D0D"); + } else { + m_backColor.setNamedColor("#94FFFFFF"); + } +} + void MainViewWidget::paintEvent(QPaintEvent *event) { - double transparency = getTransparency(); +// double transparency = getTransparency(); QRect rect = this->rect(); QPainterPath path; QPainter painter(this); @@ -60,11 +71,8 @@ void MainViewWidget::paintEvent(QPaintEvent *event) path.quadTo(rect.bottomRight(), rect.bottomRight() + QPointF(0, -radius)); path.lineTo(rect.topRight() + QPointF(0, radius)); path.quadTo(rect.topRight(), rect.topRight() + QPointF(-radius, -0)); - painter.setBrush(this->palette().base()); painter.setPen(Qt::transparent); - painter.setOpacity(transparency + 0.1); - painter.fillPath(path, this->palette().base()); - // setProperty("blurRegion", QRegion(path.toFillPolygon().toPolygon())); - // KWindowEffects::enableBlurBehind(this->winId(), true, QRegion(path.toFillPolygon().toPolygon())); + painter.setOpacity(0.58); + painter.fillPath(path, m_backColor); QWidget::paintEvent(event); } diff --git a/src/UserInterface/Widget/main_view_widget.h b/src/UserInterface/Widget/main_view_widget.h old mode 100755 new mode 100644 index 6926777..ebebf5a --- a/src/UserInterface/Widget/main_view_widget.h +++ b/src/UserInterface/Widget/main_view_widget.h @@ -55,12 +55,16 @@ protected: void paintEvent(QPaintEvent *event); public Q_SLOTS: + void styleChangeSlot(const QString &style); Q_SIGNALS: void directoryChangedSignal(); void sendDirectoryPath(); +private: + QString m_curStyle; + QColor m_backColor; }; #endif // MAINVIEWWIDGET_H diff --git a/src/UserInterface/Widget/plugin_widget.cpp b/src/UserInterface/Widget/plugin_widget.cpp old mode 100755 new mode 100644 diff --git a/src/UserInterface/Widget/plugin_widget.h b/src/UserInterface/Widget/plugin_widget.h old mode 100755 new mode 100644 diff --git a/src/UserInterface/Widget/splitbar_frame.cpp b/src/UserInterface/Widget/splitbar_frame.cpp old mode 100755 new mode 100644 diff --git a/src/UserInterface/Widget/splitbar_frame.h b/src/UserInterface/Widget/splitbar_frame.h old mode 100755 new mode 100644 diff --git a/src/UserInterface/Widget/tabview_widget.cpp b/src/UserInterface/Widget/tabview_widget.cpp old mode 100755 new mode 100644 diff --git a/src/UserInterface/Widget/tabview_widget.h b/src/UserInterface/Widget/tabview_widget.h old mode 100755 new mode 100644 diff --git a/src/UserInterface/full_mainwindow.cpp b/src/UserInterface/full_mainwindow.cpp old mode 100755 new mode 100644 index 9b37d38..5cf9707 --- a/src/UserInterface/full_mainwindow.cpp +++ b/src/UserInterface/full_mainwindow.cpp @@ -41,7 +41,7 @@ FullMainWindow::FullMainWindow(QWidget *parent) : queryWidLayout->setSpacing(5); m_queryWid->setLayout(queryWidLayout); char style[200]; - QPixmap pixmap = loadSvg(QString(":/data/img/mainviewwidget/search.svg"), 16); + QPixmap pixmap = loadSvg(QString(":/data/img/mainviewwidget/full-search.svg"), 16); if (QGSettings::isSchemaInstalled(QString("org.ukui.style").toLocal8Bit())) { QGSettings *gsetting = new QGSettings("org.ukui.style", QByteArray(), this); diff --git a/src/UserInterface/full_mainwindow.h b/src/UserInterface/full_mainwindow.h old mode 100755 new mode 100644 diff --git a/src/UserInterface/mainwindow.cpp b/src/UserInterface/mainwindow.cpp old mode 100755 new mode 100644 index 8d7f369..7060f62 --- a/src/UserInterface/mainwindow.cpp +++ b/src/UserInterface/mainwindow.cpp @@ -50,18 +50,18 @@ MainWindow::MainWindow(QWidget *parent) : m_viewWidget = new MainViewWidget(m_centralwidget); m_mainLeftVerticalLayout = new QVBoxLayout(m_viewWidget); m_mainLeftVerticalLayout->setSpacing(0); - m_mainLeftVerticalLayout->setContentsMargins(8, 8, 0, 0); + m_mainLeftVerticalLayout->setContentsMargins(8, 4, 0, 0); //搜索框部分 m_topStackedWidget = new QStackedWidget(m_viewWidget); m_topStackedWidget->setFixedHeight(48); //搜索框收起页 m_minMenuPage = new QWidget(); - m_minMenuPage->setMinimumSize(QSize(0, 48)); + m_minMenuPage->setMinimumSize(QSize(0, 40)); m_letfTopSelectHorizontalLayout = new QHBoxLayout(m_minMenuPage); - m_letfTopSelectHorizontalLayout->setSpacing(8); - m_letfTopSelectHorizontalLayout->setContentsMargins(8, 0, 8, 12); + m_letfTopSelectHorizontalLayout->setSpacing(2); + m_letfTopSelectHorizontalLayout->setContentsMargins(8, 0, 4, 12); m_minSelectTextLabel = new QLabel(m_minMenuPage); - m_horizontalSpacer = new QSpacerItem(68, 10, QSizePolicy::Expanding, QSizePolicy::Minimum); + m_horizontalSpacer = new QSpacerItem(58, 10, QSizePolicy::Expanding, QSizePolicy::Minimum); m_searchPushButton = new QPushButton(m_minMenuPage); // m_searchPushButton->setStyleSheet(m_buttonStyle.arg("QPushButton")); m_searchPushButton->setFixedSize(QSize(26, 26)); @@ -71,20 +71,21 @@ MainWindow::MainWindow(QWidget *parent) : m_minSelectButton->setFixedSize(QSize(26, 26)); m_minSelectButton->setIcon(getCurIcon(":/data/img/mainviewwidget/DM-all.svg", true)); m_minSelectButton->installEventFilter(this); - m_selectMenuButton = new QToolButton(m_minMenuPage); + m_selectMenuButton = new QLabel(m_minMenuPage); + m_selectMenuButton->installEventFilter(this); m_selectMenuButton->setStyleSheet("background: transparent;"); m_selectMenuButton->setFixedSize(QSize(16, 26)); m_selectMenuButton->setAcceptDrops(true); - m_selectMenuButton->setIcon(getCurIcon(":/data/img/mainviewwidget/DM-arrow.svg", true)); - m_selectMenuButton->setPopupMode(QToolButton::InstantPopup); -// m_selectMenuButton->setStyleSheet(QString::fromUtf8("QToolButton::menu-indicator { image: None; }")); + m_selectMenuButton->setFocusPolicy(Qt::StrongFocus); + m_selectMenuButton->setPixmap(getCurIcon(":/data/img/mainviewwidget/downarrow.svg", true) + .pixmap(QSize(Style::miniIconSize, Style::miniIconSize))); //搜索框展开页 m_minSearchPage = new QWidget(); m_leftTopSearchHorizontalLayout = new QHBoxLayout(m_minSearchPage); m_leftTopSearchHorizontalLayout->setContentsMargins(8, 0, 8, 12); m_lineEdit = new QLineEdit(m_minSearchPage); m_lineEdit->setMinimumSize(QSize(30, 26)); - m_lineEdit->setStyleSheet(QString::fromUtf8("border-radius: 13px; border:2px solid rgba(5, 151, 255, 1); background: transparent;")); + m_lineEdit->setStyleSheet(QString::fromUtf8("border-radius: 13px; border:1px solid rgba(5, 151, 255, 1); background: transparent;")); m_lineEdit->setFrame(false); m_lineEdit->setPlaceholderText(tr("Search")); m_cancelSearchPushButton = new QPushButton(m_minSearchPage); @@ -127,19 +128,21 @@ MainWindow::MainWindow(QWidget *parent) : //右侧窗口 m_mainRightVerticalLayout = new QVBoxLayout(); m_mainRightVerticalLayout->setSpacing(0); - m_mainRightVerticalLayout->setContentsMargins(8, 8, 8, 8); + m_mainRightVerticalLayout->setContentsMargins(8, 4, 8, 8); m_mainRightVerticalLayout_1 = new QVBoxLayout(); m_rightTopHorizontalLayout = new QHBoxLayout(); m_rightTopHorizontalLayout->setSpacing(30); - m_rightTopHorizontalLayout->setContentsMargins(8, 0, 10, 0); + m_rightTopHorizontalLayout->setContentsMargins(8, 0, 10, 8); //收藏按键 m_collectPushButton = new QLabel(m_centralwidget); + m_collectPushButton->setFocusPolicy(Qt::StrongFocus); m_collectPushButton->setFixedHeight(34); // m_collectPushButton->setFlat(true); m_collectPushButton->installEventFilter(this); //最近按键 m_recentPushButton = new QLabel(m_centralwidget); m_recentPushButton->setFixedHeight(34); + m_recentPushButton->setFocusPolicy(Qt::StrongFocus); // m_recentPushButton->setFlat(true); m_recentPushButton->installEventFilter(this); m_horizontalSpacer_3 = new QSpacerItem(332, 20, QSizePolicy::Expanding, QSizePolicy::Minimum); @@ -190,15 +193,18 @@ MainWindow::MainWindow(QWidget *parent) : m_rightBottomHorizontalLayout->setSizeConstraint(QLayout::SetDefaultConstraint); m_rightBottomHorizontalLayout->setContentsMargins(0, 0, 8, 0); m_horizontalSpacer_2 = new QSpacerItem(332, 20, QSizePolicy::Expanding, QSizePolicy::Minimum); + m_horizontalSpacer_4 = new QSpacerItem(10, 10, QSizePolicy::Minimum, QSizePolicy::Minimum); m_powerOffButton = new QPushButton(m_centralwidget); - m_powerOffButton->setFixedSize(QSize(24, 24)); + m_powerOffButton->setFixedSize(QSize(32, 32)); m_powerOffButton->setContextMenuPolicy(Qt::CustomContextMenu); m_powerOffButton->setIcon(QIcon(":/data/img/mainviewwidget/power.svg")); + m_powerOffButton->setIconSize(QSize(24, 24)); m_powerOffButton->setFlat(true); m_powerOffButton->installEventFilter(this); m_letfTopSelectHorizontalLayout->addWidget(m_minSelectTextLabel); m_letfTopSelectHorizontalLayout->addItem(m_horizontalSpacer); m_letfTopSelectHorizontalLayout->addWidget(m_searchPushButton); + m_letfTopSelectHorizontalLayout->addItem(m_horizontalSpacer_4); m_letfTopSelectHorizontalLayout->addWidget(m_minSelectButton); m_letfTopSelectHorizontalLayout->addWidget(m_selectMenuButton); m_leftTopSearchHorizontalLayout->addWidget(m_lineEdit); @@ -330,8 +336,9 @@ MainWindow::MainWindow(QWidget *parent) : } } }); - m_maxAnimation = new QPropertyAnimation(&m_animationPage, "geometry"); - m_minAnimation = new QPropertyAnimation(&m_animationPage, "geometry"); + m_animationPage = new AnimationPage(); + m_maxAnimation = new QPropertyAnimation(m_animationPage, "geometry", this); + m_minAnimation = new QPropertyAnimation(m_animationPage, "geometry", this); connect(m_maxAnimation, &QPropertyAnimation::finished, this, &MainWindow::maxAnimationFinished); connect(m_minAnimation, &QPropertyAnimation::finished, this, &MainWindow::minAnimationFinished); connect(m_lineEdit, &QLineEdit::textChanged, this, &MainWindow::searchAppSlot); @@ -340,11 +347,13 @@ MainWindow::MainWindow(QWidget *parent) : connect(m_fullWindow, &FullMainWindow::showNormalWindow, this, &MainWindow::showNormalWindowSlot); connect(m_fullWindow, &FullMainWindow::sendUpdateOtherView, this, &MainWindow::updateMinAllView); connect(m_minSelectButton, &QToolButton::clicked, this, &MainWindow::on_minSelectButton_clicked); - connect(m_selectMenuButton, &QToolButton::triggered, this, &MainWindow::on_selectMenuButton_triggered); + connect(m_dropDownMenu, &MenuBox::triggered, this, &MainWindow::on_selectMenuButton_triggered); + connect(m_dropDownMenu, &MenuBox::sendMainWinActiveSignal, [ = ]() { + m_selectMenuButton->setPixmap(getCurIcon(":/data/img/mainviewwidget/downarrow.svg", true) + .pixmap(QSize(Style::miniIconSize, Style::miniIconSize))); + }); connect(m_powerOffButton, &QPushButton::customContextMenuRequested, this, &MainWindow::on_powerOffButton_customContextMenuRequested); connect(m_powerOffButton, &QPushButton::clicked, this, &MainWindow::on_powerOffButton_clicked); -// connect(m_collectPushButton, &QPushButton::clicked, this, &MainWindow::on_collectPushButton_clicked); -// connect(m_recentPushButton, &QPushButton::clicked, this, &MainWindow::on_recentPushButton_clicked); connect(m_cancelSearchPushButton, &QPushButton::clicked, this, &MainWindow::on_cancelSearchPushButton_clicked); connect(m_searchPushButton, &QPushButton::clicked, this, &MainWindow::on_searchPushButton_clicked); connect(m_minMaxChangeButton, &QPushButton::clicked, this, &MainWindow::on_minMaxChangeButton_clicked); @@ -399,6 +408,11 @@ MainWindow::MainWindow(QWidget *parent) : MainWindow::~MainWindow() { closeDataBase("MainThread"); + + if (m_animationPage != nullptr) { + delete m_animationPage; + m_animationPage = nullptr; + } } void MainWindow::initUi() @@ -414,21 +428,21 @@ void MainWindow::initUi() m_minLetterListView->addData(m_modaldata->getMinLetterData(), 2); m_collectListView->addData(m_modaldata->getcollectData()); m_recentListView->addData(m_modaldata->getRecentData(), -1); - QMenu *m_menu = new QMenu; - m_allAction = new QAction(m_menu); - m_letterAction = new QAction(m_menu); - m_funcAction = new QAction(m_menu); + m_dropDownMenu = new MenuBox(this); + m_dropDownMenu->setFixedSize(Style::DropMenuWidth, Style::DropMenuHeight); + m_allAction = new QAction(m_dropDownMenu); + m_letterAction = new QAction(m_dropDownMenu); + m_funcAction = new QAction(m_dropDownMenu); m_allAction->setText(tr("All")); m_allAction->setCheckable(true); m_letterAction->setText(tr("Letter")); m_letterAction->setCheckable(true); m_funcAction->setText(tr("Function")); m_funcAction->setCheckable(true); - m_menu->addAction(m_allAction); - m_menu->addAction(m_letterAction); - m_menu->addAction(m_funcAction); + m_dropDownMenu->addAction(m_allAction); + m_dropDownMenu->addAction(m_letterAction); + m_dropDownMenu->addAction(m_funcAction); m_allAction->setChecked(true); - m_selectMenuButton->setMenu(m_menu); m_collectPushButton->setStyleSheet("color:#3790FA;"); // m_collectPushButton->setStyleSheet("border: 1px solid red;"); QColor textColor = this->palette().color(QPalette::Text); @@ -450,6 +464,7 @@ void MainWindow::initUi() connect(m_collectListView, &RightListView::sendCollectViewUpdate, this, &MainWindow::updateCollectView); connect(m_desktopWatcher, &DesktopWatcher::directoryChangedSignal, this, &MainWindow::updateView); connect(m_desktopWatcher, &DesktopWatcher::updateRecentList, this, &MainWindow::updateRecentView); + connect(this, &MainWindow::sendStyleChangeSignal, m_viewWidget, &MainViewWidget::styleChangeSlot); changeStyle(); } @@ -467,10 +482,17 @@ void MainWindow::changeStyle() if (gsetting.keys().contains(QString("styleName"))) { if (gsetting.get("style-name").toString() == "ukui-light" || gsetting.get("style-name").toString() == "ukui-default") { + g_curStyle = "ukui-light"; buttonColorDefault = "rgba(16, 23, 29, 0.06)"; buttonColorHover = "rgba(16, 23, 29, 0.12)"; buttonColorPress = "rgba(16, 23, 29, 0.17)"; + m_windowColor.setNamedColor("#C7E9EEF2"); + Q_EMIT sendStyleChangeSignal("ukui-light"); + m_powerOffButton->setStyleSheet("QPushButton {padding: 0px;}" + "QPushButton:hover {border-radius:16px; background: rgba(255, 255, 255, 0.4);}" + "QPushButton:pressed {border-radius:16px; background: rgba(255, 255, 255, 0.65);}"); } else { + g_curStyle = "ukui-dark"; buttonColor = linePe.color(QPalette::Light); QRgb rgbDefault = qRgba(buttonColor.red(), buttonColor.green(), buttonColor.blue(), 25); buttonColorDefault = "#" + QString::number(rgbDefault, 16); @@ -478,6 +500,11 @@ void MainWindow::changeStyle() buttonColorHover = "#" + QString::number(rgbHover, 16); QRgb rgbPress = qRgba(buttonColor.red(), buttonColor.green(), buttonColor.blue(), 75); buttonColorPress = "#" + QString::number(rgbPress, 16); + m_windowColor.setNamedColor("#FF383838"); + Q_EMIT sendStyleChangeSignal("ukui-dark"); + m_powerOffButton->setStyleSheet("QPushButton {padding: 0px;}" + "QPushButton:hover {border-radius:16px; background: rgba(255, 255, 255, 0.12);}" + "QPushButton:pressed {border-radius:16px; background: rgba(255, 255, 255, 0.25);}"); } } } @@ -488,10 +515,7 @@ void MainWindow::changeStyle() m_searchPushButton->setStyleSheet(m_buttonStyle.arg("QPushButton")); m_minSelectButton->setStyleSheet(m_buttonStyle.arg("QPushButton")); m_cancelSearchPushButton->setStyleSheet(m_buttonStyle.arg("QPushButton")); - m_powerOffButton->setStyleSheet("QPushButton {padding: 0px;}" - "QPushButton:hover {border-radius:12px; background: rgba(255, 255, 255, 0.2);}" - "QPushButton:pressed {border-radius:12px; background: rgba(255, 255, 255, 0.3);}"); - m_searchPushButton->setIcon(getCurIcon(":/data/img/mainviewwidget/search.svg", true)); + m_searchPushButton->setIcon(getCurIcon(":/data/img/mainviewwidget/full-search.svg", true)); QAction *lineAction = m_lineEdit->actions().at(0); if (lineAction != nullptr) { @@ -501,7 +525,7 @@ void MainWindow::changeStyle() } QAction *action = new QAction(); - action->setIcon(getCurIcon(":/data/img/mainviewwidget/DM-icon-search.svg", true)); + action->setIcon(getCurIcon(":/data/img/mainviewwidget/full-search.svg", true)); m_lineEdit->addAction(action, QLineEdit::LeadingPosition); m_cancelSearchPushButton->setIcon(getCurIcon(":/data/img/mainviewwidget/DM-close-2x.png", true)); @@ -533,7 +557,7 @@ void MainWindow::paintEvent(QPaintEvent *event) path.quadTo(rect.bottomRight(), rect.bottomRight() + QPointF(0, -radius)); path.lineTo(rect.topRight() + QPointF(0, radius)); path.quadTo(rect.topRight(), rect.topRight() + QPointF(-radius, -0)); - painter.setBrush(this->palette().base()); + painter.setBrush(m_windowColor); painter.setPen(Qt::transparent); painter.setOpacity(transparency); painter.drawPath(path); @@ -581,7 +605,7 @@ bool MainWindow::event(QEvent *event) if (m_minSelectButton->hasFocus()) { m_minSelectButton->click(); } else if (m_selectMenuButton->hasFocus()) { - m_selectMenuButton->click(); + QApplication::postEvent(m_selectMenuButton, new QEvent(QEvent::MouseButtonPress)); } if (m_lineEdit->hasFocus()) { @@ -611,7 +635,7 @@ void MainWindow::minAnimationFinished() QEventLoop loop; QTimer::singleShot(100, &loop, SLOT(quit())); loop.exec(); - m_animationPage.hide(); + m_animationPage->hide(); } void MainWindow::maxAnimationFinished() { @@ -621,7 +645,7 @@ void MainWindow::maxAnimationFinished() QEventLoop loop; QTimer::singleShot(100, &loop, SLOT(quit())); loop.exec(); - m_animationPage.hide(); + m_animationPage->hide(); } void MainWindow::resetLetterPage() { @@ -745,6 +769,13 @@ bool MainWindow::eventFilter(QObject *target, QEvent *event) on_collectPushButton_clicked(); return false; } + + if (target == m_selectMenuButton) { + m_selectMenuButton->setPixmap(getCurIcon(":/data/img/mainviewwidget/uparrow.svg", true) + .pixmap(QSize(Style::miniIconSize, Style::miniIconSize))); + m_dropDownMenu->raise(); + m_dropDownMenu->exec(this->mapToGlobal(QPoint(m_selectMenuButton->x() - 105, m_selectMenuButton->y() + 50))); + } } if (event->type() == QEvent::KeyPress) { @@ -929,13 +960,12 @@ void MainWindow::searchAppSlot(QString arg) } void MainWindow::on_selectMenuButton_triggered(QAction *arg1) { - qDebug() << "void MainWindow::on_selectMenuButton_triggered(QAction *arg1)" << m_allAction << arg1; + m_selectMenuButton->setPixmap(getCurIcon(":/data/img/mainviewwidget/downarrow.svg", true).pixmap(QSize(Style::miniIconSize, Style::miniIconSize))); if (arg1 == m_allAction) { m_leftStackedWidget->setCurrentIndex(0); m_state = 0; m_minSelectButton->setIcon(getCurIcon(":/data/img/mainviewwidget/DM-all.svg", true)); -// m_minSelectButton->setIcon(QIcon(":/data/img/mainviewwidget/DM-all.svg")); m_minSelectTextLabel->setText(tr("All")); m_allAction->setChecked(true); m_letterAction->setChecked(false); @@ -1026,10 +1056,10 @@ void MainWindow::on_minMaxChangeButton_clicked() { m_canHide = true; m_isFullScreen = true; - m_animationPage.setGeometry(this->x(), this->y(), Style::minw, Style::minh); - m_animationPage.show(); - m_animationPage.raise(); - m_animationPage.repaint(); + m_animationPage->setGeometry(this->x(), this->y(), Style::minw, Style::minh); + m_animationPage->show(); + m_animationPage->raise(); + m_animationPage->repaint(); QEventLoop loop; QTimer::singleShot(100, &loop, SLOT(quit())); loop.exec(); @@ -1095,10 +1125,10 @@ void MainWindow::repaintWidget() void MainWindow::showNormalWindowSlot() { myDebug() << "Style::m_availableScreenWidth" << Style::m_availableScreenWidth << "Style::m_availableScreenHeight" << Style::m_availableScreenHeight; - m_animationPage.setGeometry(0, 0, Style::m_availableScreenWidth, Style::m_availableScreenHeight); - m_animationPage.show(); - m_animationPage.raise(); - myDebug() << m_animationPage.rect(); + m_animationPage->setGeometry(0, 0, Style::m_availableScreenWidth, Style::m_availableScreenHeight); + m_animationPage->show(); + m_animationPage->raise(); + myDebug() << m_animationPage->rect(); QEventLoop loop; QTimer::singleShot(100, &loop, SLOT(quit())); loop.exec(); diff --git a/src/UserInterface/mainwindow.h b/src/UserInterface/mainwindow.h old mode 100755 new mode 100644 index b551565..4e55abb --- a/src/UserInterface/mainwindow.h +++ b/src/UserInterface/mainwindow.h @@ -106,6 +106,7 @@ Q_SIGNALS: void sendClassificationbtnList(); void sendLetterClassificationList(QStringList list); void sendSetFullWindowItemHide(bool flag); + void sendStyleChangeSignal(QString style); public Q_SLOTS: void updateCollectView(); @@ -160,7 +161,7 @@ private: QSpacerItem *m_horizontalSpacer = nullptr; QPushButton *m_searchPushButton = nullptr; QPushButton *m_minSelectButton = nullptr; - QToolButton *m_selectMenuButton = nullptr; + QLabel *m_selectMenuButton = nullptr; QWidget *m_minSearchPage = nullptr; QHBoxLayout *m_leftTopSearchHorizontalLayout = nullptr; QLineEdit *m_lineEdit = nullptr; @@ -192,8 +193,10 @@ private: QSpacerItem *m_verticalSpacer_2 = nullptr; QHBoxLayout *m_rightBottomHorizontalLayout = nullptr; QSpacerItem *m_horizontalSpacer_2 = nullptr; + QSpacerItem *m_horizontalSpacer_4 = nullptr; QPushButton *m_powerOffButton = nullptr; - AnimationPage m_animationPage; + AnimationPage *m_animationPage = nullptr; + MenuBox *m_dropDownMenu = nullptr; bool m_canHide = true; bool m_isFullScreen = false; @@ -218,6 +221,7 @@ private: FunctionButtonWidget *m_functionBtnWid = nullptr; LetterButtonWidget *m_letterBtnWid = nullptr; SoftwareDatabaseUpdateThread *m_softwareDbThread = nullptr; + QColor m_windowColor; }; #endif // MAINWINDOW_H diff --git a/src/UserInterface/tabletwindow.cpp b/src/UserInterface/tabletwindow.cpp old mode 100755 new mode 100644 index 45f3152..aaaab25 --- a/src/UserInterface/tabletwindow.cpp +++ b/src/UserInterface/tabletwindow.cpp @@ -98,28 +98,6 @@ void TabletWindow::initUi() initStatusManager(); initTransparency(); registDbusService(); - /*//备用待窗管修改后启用 - connect(m_dbus, &DBus::winKeyResponseSignal, this, [ = ] { - if (QGSettings::isSchemaInstalled(QString("org.ukui.session").toLocal8Bit())) - { - QGSettings gsetting(QString("org.ukui.session").toLocal8Bit()); - if (gsetting.keys().contains("winKeyRelease")) { - if (gsetting.get(QString("winKeyRelease")).toBool()) { - return; - } - } - } - if (QApplication::activeWindow() == this) - { - myDebug() << "win键触发窗口隐藏事件"; - this->hide(); - } else - { - myDebug() << "win键触发窗口显示事件"; - this->showPCMenu(); - } - }); - */ ways(); buttonWidgetShow(); connect(m_leftWidget, &FunctionWidget::hideTabletWindow, this, &TabletWindow::recvHideMainWindowSlot); @@ -232,15 +210,13 @@ void TabletWindow::setBackground() void TabletWindow::registDbusService() { - m_dbus = new DBus; - new MenuAdaptor(m_dbus); - QDBusConnection con = QDBusConnection::sessionBus(); - - if (!con.registerService("org.ukui.menu") || - !con.registerObject("/org/ukui/menu", m_dbus)) { - qDebug() << "error:" << con.lastError().message(); - } - +// m_dbus = new DBus; +// new MenuAdaptor(m_dbus); +// QDBusConnection con = QDBusConnection::sessionBus(); +// if (!con.registerService("org.ukui.menu") || +// !con.registerObject("/org/ukui/menu", m_dbus)) { +// qDebug() << "error:" << con.lastError().message(); +// } // connect(m_dbus, &DBus::winKeyResponseSignal, this, [ = ] { // if (QGSettings::isSchemaInstalled(QString("org.ukui.session").toLocal8Bit())) // { @@ -261,21 +237,6 @@ void TabletWindow::registDbusService() // this->showPCMenu(); // } // }); - ways(); - buttonWidgetShow(); -// connect(this,&TabletWindow::pagenumchanged,this,&TabletWindow::pageNumberChanged); - connect(m_leftWidget, &FunctionWidget::hideTabletWindow, this, &TabletWindow::recvHideMainWindowSlot); - - if (checkapplist()) { - directoryChangedSlot();//更新应用列表 - } - - //pc下鼠标功能 - XEventMonitor::instance()->start(); - connect(XEventMonitor::instance(), SIGNAL(keyRelease(QString)), - this, SLOT(XkbEventsRelease(QString))); - connect(XEventMonitor::instance(), SIGNAL(keyPress(QString)), - this, SLOT(XkbEventsPress(QString))); } bool TabletWindow::checkapplist() @@ -413,6 +374,8 @@ void TabletWindow::showPCMenu() this->raise(); this->activateWindow(); g_menuStatus = true; + menuStatusChange(); + myDebug() << "showMenu显示开始菜单"; } //改变搜索框及工具栏透明度 @@ -560,9 +523,10 @@ bool TabletWindow::event(QEvent *event) //if(QEvent::WindowDeactivate == event->type())//窗口停用 { if (QApplication::activeWindow() != this) { - qDebug() << " * 鼠标点击窗口外部事件"; + myDebug() << " * 鼠标点击窗口外部事件"; this->hide(); g_menuStatus = false; + menuStatusChange(); } } @@ -576,6 +540,7 @@ bool TabletWindow::event(QEvent *event) if (!(m_scrollAnimation->state() == QPropertyAnimation::Running)) { this->hide(); g_menuStatus = false; + myDebug() << "鼠标点击事件触发隐藏"; } } @@ -674,19 +639,17 @@ void TabletWindow::execApplication(QString desktopfp) return; } - QString exe = execnamestr; + QString exe = execnamestr.simplified(); QStringList parameters; if (exe.indexOf("%") != -1) { exe = exe.left(exe.indexOf("%") - 1); - //qDebug()<<"=====dd====="<setWindowFlags(Qt::CustomizeWindowHint | Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint); this->hide(); g_menuStatus = false; + myDebug() << "信号触发隐藏窗口"; } void TabletWindow::btnGroupClickedSlot(int prePageNum, int pageNum) @@ -1080,7 +1044,7 @@ void TabletWindow::winKeyReleaseSlot(const QString &key) if (QGSettings::isSchemaInstalled(QString("org.ukui.session").toLocal8Bit())) { QGSettings gsetting(QString("org.ukui.session").toLocal8Bit()); - if (gsetting.keys().contains("winKeyRelease")) + if (gsetting.keys().contains("winKeyRelease")) { if (gsetting.get(QString("winKeyRelease")).toBool()) { disconnect(XEventMonitor::instance(), SIGNAL(keyRelease(QString)), this, SLOT(xkbEventsRelease(QString))); @@ -1092,7 +1056,16 @@ void TabletWindow::winKeyReleaseSlot(const QString &key) connect(XEventMonitor::instance(), SIGNAL(keyPress(QString)), this, SLOT(xkbEventsPress(QString))); } + } } } } +void TabletWindow::menuStatusChange() +{ + QDBusMessage message = QDBusMessage::createSignal("/com/ukui/menu", "com.ukui.menu", "statusChangeSignal"); + //给信号赋值 + message << g_menuStatus; + //发射 + QDBusConnection::sessionBus().send(message); +} diff --git a/src/UserInterface/tabletwindow.h b/src/UserInterface/tabletwindow.h old mode 100755 new mode 100644 index efb1a2d..7b6a03d --- a/src/UserInterface/tabletwindow.h +++ b/src/UserInterface/tabletwindow.h @@ -46,8 +46,6 @@ #include "tabletlistview.h" #include "pagemanager.h" #include "tablet_directorychanged_thread.h" -#include "dbus.h" -#include "dbus-adaptor.h" class TabletWindow : public QWidget { @@ -123,8 +121,9 @@ private: QFileSystemWatcher *m_configFileWatcher = nullptr; TabletDirectoryChangedThread *m_directoryChangedThread = nullptr; QSettings *m_disableAppSet = nullptr; - DBus *m_dbus = nullptr; + QLabel m_animationPage; +// DBus *m_dbus = nullptr; protected: /** @@ -183,6 +182,8 @@ protected: bool checkapplist(); + void menuStatusChange(); + public Q_SLOTS: /** * @brief Open the application diff --git a/src/UserInterface/userinterface.pri b/src/UserInterface/userinterface.pri old mode 100755 new mode 100644 diff --git a/src/UtilityFunction/AbstractInterface.h b/src/UtilityFunction/AbstractInterface.h old mode 100755 new mode 100644 diff --git a/src/UtilityFunction/KySmallPluginInterface.h b/src/UtilityFunction/KySmallPluginInterface.h old mode 100755 new mode 100644 diff --git a/src/UtilityFunction/Style/style.cpp b/src/UtilityFunction/Style/style.cpp old mode 100755 new mode 100644 index dcc3831..2832bc6 --- a/src/UtilityFunction/Style/style.cpp +++ b/src/UtilityFunction/Style/style.cpp @@ -100,6 +100,10 @@ int Style::ButtonWidgetWidth = 56; int Style::ToolWidgetLeft = 24; bool Style::IsWideScreen = false; +int Style::DropMenuWidth = 0; +int Style::DropMenuHeight = 0; +int Style::miniIconSize = 0; + void Style::initWidStyle() { if (!g_projectCodeName.contains("V10SP1-edu")) { @@ -121,10 +125,12 @@ void Style::initWidStyle() if (m_availableScreenWidth == 800 && m_availableScreenHeight == 600) { minw = 320; minh = 500; + leftPageWidth = 300; + leftPageHeight = 517; } else { minw = 652; minh = 590; - leftPageWidth = 292; + leftPageWidth = 300; leftPageHeight = 517; } @@ -194,11 +200,14 @@ void Style::initWidStyle() AppSpaceBetweenIconText = 14; } - LeftBtnWidth = 100 + 5 * len; - LeftBtnHeight = 43; + LeftBtnWidth = 68 + 5 * len; + LeftBtnHeight = 34; QueryLineEditHeight = 30; LeftLetterBtnHeight = 25; LeftIconSize = 19; + DropMenuWidth = 128; + DropMenuHeight = 112; + miniIconSize = 8; LeftSpaceIconText = 14; m_applistWidWidth = m_availableScreenWidth / 1.25; m_applistWidWidth = m_applistWidWidth - (m_applistWidWidth % m_applistGridSizeWidth) + 1; diff --git a/src/UtilityFunction/Style/style.h b/src/UtilityFunction/Style/style.h old mode 100755 new mode 100644 index 09ab7dd..0a46ea4 --- a/src/UtilityFunction/Style/style.h +++ b/src/UtilityFunction/Style/style.h @@ -169,7 +169,9 @@ public: static int WideAppListItemSizeHeight; static int WideAppViewLeftMargin; static bool IsWideScreen; - + static int DropMenuWidth; + static int DropMenuHeight; + static int miniIconSize; }; diff --git a/src/UtilityFunction/abstractInterface.h b/src/UtilityFunction/abstractInterface.h old mode 100755 new mode 100644 diff --git a/src/UtilityFunction/thumbnail.cpp b/src/UtilityFunction/thumbnail.cpp old mode 100755 new mode 100644 diff --git a/src/UtilityFunction/thumbnail.h b/src/UtilityFunction/thumbnail.h old mode 100755 new mode 100644 diff --git a/src/UtilityFunction/utility.cpp b/src/UtilityFunction/utility.cpp old mode 100755 new mode 100644 index c7e4521..a524fb2 --- a/src/UtilityFunction/utility.cpp +++ b/src/UtilityFunction/utility.cpp @@ -32,6 +32,7 @@ #define DATABASENAME QDir::homePath()+"/.config/ukui/"+"UkuiMenu.db" QString g_projectCodeName = "V10SP1"; bool g_menuStatus = false; +QString g_curStyle = ""; const QPixmap loadSvg(const QString &fileName, const int size) { diff --git a/src/UtilityFunction/utility.h b/src/UtilityFunction/utility.h old mode 100755 new mode 100644 index 75c43e7..f5e9a2e --- a/src/UtilityFunction/utility.h +++ b/src/UtilityFunction/utility.h @@ -87,6 +87,7 @@ enum PanelPositon { extern QString g_projectCodeName; extern bool g_menuStatus; +extern QString g_curStyle; #endif // UTILITY_H diff --git a/src/UtilityFunction/utilityfunction.pri b/src/UtilityFunction/utilityfunction.pri old mode 100755 new mode 100644 diff --git a/translations/ukui-menu_bo.qm b/translations/ukui-menu_bo.qm old mode 100755 new mode 100644 diff --git a/translations/ukui-menu_bo.ts b/translations/ukui-menu_bo.ts old mode 100755 new mode 100644 diff --git a/translations/ukui-menu_tr.qm b/translations/ukui-menu_tr.qm old mode 100755 new mode 100644 diff --git a/translations/ukui-menu_tr.ts b/translations/ukui-menu_tr.ts old mode 100755 new mode 100644 diff --git a/translations/ukui-menu_zh_CN.qm b/translations/ukui-menu_zh_CN.qm old mode 100755 new mode 100644 diff --git a/translations/ukui-menu_zh_CN.ts b/translations/ukui-menu_zh_CN.ts old mode 100755 new mode 100644 diff --git a/ukui-menu.desktop b/ukui-menu.desktop old mode 100755 new mode 100644 diff --git a/ukui-menu.ini b/ukui-menu.ini old mode 100755 new mode 100644 diff --git a/ukui-menu.pro b/ukui-menu.pro old mode 100755 new mode 100644 diff --git a/ukui-menu.pro.user b/ukui-menu.pro.user new file mode 100644 index 0000000..6d1e613 --- /dev/null +++ b/ukui-menu.pro.user @@ -0,0 +1,314 @@ + + + + + + EnvironmentId + {b9d686e0-ada0-41c1-ad9c-96f1279f7707} + + + ProjectExplorer.Project.ActiveTarget + 0 + + + ProjectExplorer.Project.EditorSettings + + true + false + true + + Cpp + + CppGlobal + + + + QmlJS + + QmlJSGlobal + + + 2 + UTF-8 + false + 4 + false + 80 + true + true + 1 + true + false + 0 + true + true + 0 + 8 + true + 1 + true + true + true + false + + + + ProjectExplorer.Project.PluginSettings + + + + ProjectExplorer.Project.Target.0 + + 桌面 + 桌面 + {9d9f9a2c-403b-48c4-83ee-e52b4e889b83} + 0 + 0 + 0 + + /home/ztz/ukui-menu3.1/build-ukui-menu-unknown-Debug + + + true + QtProjectManager.QMakeBuildStep + true + + false + false + false + + + true + Qt4ProjectManager.MakeStep + + false + + + false + + 2 + Build + Build + ProjectExplorer.BuildSteps.Build + + + + true + Qt4ProjectManager.MakeStep + + true + clean + + false + + 1 + Clean + Clean + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Debug + Qt4ProjectManager.Qt4BuildConfiguration + 2 + + + /home/ztz/ukui-menu3.1/build-ukui-menu-unknown-Release + + + true + QtProjectManager.QMakeBuildStep + false + + false + false + true + + + true + Qt4ProjectManager.MakeStep + + false + + + false + + 2 + Build + Build + ProjectExplorer.BuildSteps.Build + + + + true + Qt4ProjectManager.MakeStep + + true + clean + + false + + 1 + Clean + Clean + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Release + Qt4ProjectManager.Qt4BuildConfiguration + 0 + + + /home/ztz/ukui-menu3.1/build-ukui-menu-unknown-Profile + + + true + QtProjectManager.QMakeBuildStep + true + + false + true + true + + + true + Qt4ProjectManager.MakeStep + + false + + + false + + 2 + Build + Build + ProjectExplorer.BuildSteps.Build + + + + true + Qt4ProjectManager.MakeStep + + true + clean + + false + + 1 + Clean + Clean + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Profile + Qt4ProjectManager.Qt4BuildConfiguration + 0 + + 3 + + + 0 + Deploy + Deploy + ProjectExplorer.BuildSteps.Deploy + + 1 + ProjectExplorer.DefaultDeployConfiguration + + 1 + + + dwarf + + cpu-cycles + + + 250 + + -e + cpu-cycles + --call-graph + dwarf,4096 + -F + 250 + + -F + true + 4096 + false + false + 1000 + + true + + false + false + false + false + true + 0.01 + 10 + true + kcachegrind + 1 + 25 + + 1 + true + false + true + valgrind + + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + + 2 + + Qt4ProjectManager.Qt4RunConfiguration:/home/ztz/ukui-menu3.1/ukui-menu/ukui-menu.pro + /home/ztz/ukui-menu3.1/ukui-menu/ukui-menu.pro + + false + + false + true + true + false + false + true + + /home/ztz/ukui-menu3.1/build-ukui-menu-unknown-Debug + + 1 + + + + ProjectExplorer.Project.TargetCount + 1 + + + ProjectExplorer.Project.Updater.FileVersion + 22 + + + Version + 22 + +