588 Commits

Author SHA1 Message Date
justforlxz
2e7a4e6fa9
refactor(power): use onBattery to replace batteryState to check is used battery 2019-06-13 15:08:24 +08:00
justforlxz
95aad7e387
fix(overlay): disable overlay failed
taskID=5196
2019-05-28 16:55:31 +08:00
justforlxz
e902ba4cc1
fix(tray): cannot click indicator
taskID=5449
2019-05-28 14:18:22 +08:00
justforlxz
f1441cc1e7
fix(overlay): polkit dialog not translation message 2019-05-22 18:02:01 +08:00
Hualet Wang
c94a4d69a5 fix: typos 2019-05-19 20:22:32 +08:00
justforlxz
2840c86844
fix(tray): indicator click is invalid 2019-05-17 16:22:40 +08:00
justforlxz
4ff0cfba0d
refactor(power): use systemDaemon replace upower dbus interface 2019-05-17 16:18:20 +08:00
justforlxz
6725976464
update ts add add refresh tips data 2019-05-17 16:18:20 +08:00
justforlxz
0a71b340ac
fix(tray): Adding a keyboard layout for the first time will crash
https://pms.deepin.cn/index.php?m=task&f=view&taskID=5131
2019-05-14 13:11:33 +08:00
Carlo Alberto Barbano
4dfd6cabc4 Fix battery icon not updating when charging
Use property BatteryState instead of OnBattery which does not update
when the battery is plugged into a power source (tried on a Matebook D
14).
Battery is considered charging if BatteryState is 1 (charging) or
4 (fully charged).

Change-Id: I5a0cf7bf8ee4cd313af885322d1edb67868c555a
2019-05-06 12:19:28 +02:00
Carlo Alberto Barbano
b6fa4335eb Add remaining time to battery indicator
Add a QDBusConnection to org.freedesktop.UPower to DBusPower in
dbuspower.cpp.

Add a QDBusInterface (m_uPowerInter) to PowerPlugin in powerplugin.h to
retrieve the correct battery device (calling 'EnumerateDevices'). Add a
QDBusInterface (m_uBatteryDeviceInter) to PowerPlugin in powerplugin.h
to gather battery time to empty and to fully recharged, and display it
in the power widget tip.

Add BatteryState enum in powerplugin.h to replace BATTERY_DISCHARED and
BATTERY_FULL macros, and add support for all the battery states provided
by UPower.

Change-Id: Ia4677298a1d13cab1e1a03035dbe4a2e660f994b
2019-05-06 12:19:28 +02:00
justforlxz
73b39e6846
fix(network): refresh loading icon not align center 2019-05-06 16:49:58 +08:00
justforlxz
de0fac5409
fix(network): refresh loading icon not align center
https://github.com/linuxdeepin/internal-discussion/issues/1411
2019-04-28 10:10:42 +08:00
justforlxz
55c4c74a82
refactor: use QWidget::devicePixelRatio to replace QApplication::devicePixelRatio
插入新屏幕后,新屏幕的缩放是1,切换为复制模式后如果继续使用QApplication::devicePixelRatio会导致
显示错误,统一换成QWidget::devicePixelRatio或QScreen::devicePixelRatio。
2019-04-23 18:27:40 +08:00
listenerri
6c205f3750 fix: translation of polkit message of overlayroot-disable in stable system 2019-04-18 13:11:09 +08:00
zccrs
b9679f6c3d
Merge pull request #164 from listenerri/daemon-plugin-settings
Daemon plugin settings
2019-04-09 09:09:46 +08:00
listenerri
5c010dcf80 update translations 2019-04-08 15:47:39 +08:00
listenerri
f4cbe1d2c8 Merge branch 'dev/daemon-plugin-settings' into daemon-plugin-settings 2019-04-04 17:42:37 +08:00
listenerri
8829a84b96 Update plugins/plugin-guide/plugins-developer-guide.md
Co-Authored-By: PikachuHy <2931408816@qq.com>
2019-04-03 16:26:13 +08:00
PikachuHy
2470d7e981 docs(plugins-developer-guide.md): disambiguate 2019-04-03 16:26:13 +08:00
justforlxz
cd04dea635
fix(arm): disable power module 2019-04-01 11:25:59 +08:00
listenerri
d1642d1f62 fix: exec pkexec failed cause the Polkit dbus is not startup when just login 2019-03-28 10:02:17 +08:00
listenerri
10ae2022b2 fix: cmdline read failed 2019-03-27 16:27:57 +08:00
listenerri
da3b42a85e feat: add overlay warning plugin
https://github.com/linuxdeepin/internal-discussion/issues/1126
2019-03-27 15:45:06 +08:00
listenerri
cb33eb9f49 disable power options for arm
https://tower.im/members/fe996d0d13b642a7867fb2d84080a5a8/?me=1vb
2019-03-25 13:38:12 +08:00
listenerri
e4ba1463ff fix: not detect hotspot enabled
https://github.com/linuxdeepin/internal-discussion/issues/1106

Change-Id: I1f02188c5e124ba63176ac5713f7af6afd04e4ca
2019-03-20 15:49:41 +08:00
listenerri
daed0fc57e refactor: the item key which can identify tray items
https://github.com/linuxdeepin/internal-discussion/issues/1072

https://github.com/linuxdeepin/developer-center/issues/885

Change-Id: Ica41815368bacbcc6a163687d329c2a3bda27b2d
2019-03-19 15:04:42 +08:00
listenerri
d55f56c055 refactor: indicator key parse
Change-Id: I9d35bf0211c2b320c0edebd457e897dbe5fa7899
2019-03-18 17:51:50 +08:00
listenerri
be5872e772 improve: plugin document and plugin example
https://github.com/linuxdeepin/internal-discussion/issues/1074

Change-Id: I25c4a52b87de2ef4ff0ce942dd298ac3c8e06f7a
2019-03-15 11:01:09 +08:00
justforlxz
166044e756 chore: change shutdown plugin tips name from Shutdown to Power
see: https://github.com/linuxdeepin/internal-discussion/issues/994

Change-Id: I09b672898fc1139bfbdeac28f0fbe795f194ab1e
2019-03-14 09:23:00 +08:00
listenerri
b1d0fd4ad4 fix: indicator not display
the current connectting indicator of wireless list not display when login to desktop

https://github.com/linuxdeepin/internal-discussion/issues/525

Change-Id: Idc83b3ab765560d3dc999feeac0c083580e8b4b8
2019-03-12 17:47:09 +08:00
listenerri
4cd74405ce fix: added multiple indicator tray of one indicator provider
https://github.com/linuxdeepin/internal-discussion/issues/1071

Change-Id: Id76eafc4914ab06f7e3d6045b4c5d58560fa81da
2019-03-12 14:24:24 +08:00
listenerri
5f11a0134a fix: activating indicator not show when activate a wireless from other place
https://github.com/linuxdeepin/internal-discussion/issues/525

Change-Id: Ifa8b53bf4d6b09a0f04e58e324ca63203a72a842
2019-03-12 10:06:48 +08:00
listenerri
89446d7022 feat: keyboard layout indicator support context menu
https://github.com/linuxdeepin/developer-center/issues/671

Change-Id: I751c48b4c00c9f75a9950b2679374b5562b08109
2019-03-06 17:19:08 +08:00
listenerri
fc06a6a078 feat: trash plugin enable be disable
https://github.com/linuxdeepin/internal-discussion/issues/827

Change-Id: I75c3a27f81df45655b2fe8bd702abc9c7d9bc2c5
2019-02-27 14:24:00 +08:00
listenerri
7de1c08e19 refactor: get sni properties from dbus asynchronouslly
Change-Id: Ie100affe4880a30cfa47c9266ee58ce5e7da282f
2019-02-18 14:58:48 +08:00
listenerri
ecea16f89a fix: wireless item display problem when ssid contains "&"
https://github.com/linuxdeepin/developer-center/issues/880

Change-Id: I44a71eb7e1ffaf0626c4c03805e5fe01fc12bfc2
2019-02-14 16:08:21 +08:00
listenerri
49b84eb0cc fix: fashion tray expand error after double click control widget
https://github.com/linuxdeepin/internal-discussion/issues/932

Change-Id: I1dcd2985955893d42a297d70a865a49e890ee904
2019-02-13 13:54:51 +08:00
listenerri
3962f474e9 feat: optimize plugin guide
Change-Id: I1edb695067e106f2acfd7a8022d4be57dcac3a1a
2019-02-13 11:31:03 +08:00
listenerri
8ae30ec2d1 feat: update all plugins to support take effect in time for Deepin-Sync
Change-Id: I6fec9ab494eede8a4b0f35e62ccd6f4c749ded09
2019-01-30 18:02:18 +08:00
listenerri
aef1fb7f0b fix some merge error
Change-Id: I14d057555c7a1d359e0d1e2526e1800ab88a6832
2019-01-30 15:55:25 +08:00
listenerri
55f5770694 Merge branch 'master' into dev/daemon-plugin-settings
Change-Id: Ifed765c278e0063685916e1f3e01896044f091fc
2019-01-28 17:19:58 +08:00
listenerri
2d39e69ee8 fix: tips widget size not change after system font size changed
https://tower.im/teams/9487/todos/228412/

Change-Id: Ic988face83f759895f8375e4c7954ebdbee6b887
2019-01-22 19:59:21 +08:00
listenerri
acedaeff73 refactor: follow network lib update
https://github.com/linuxdeepin/internal-discussion/issues/730

Change-Id: I3148d8fd86f0ff0e942b7c0037daa715cb36eb0c
2019-01-18 18:17:01 +08:00
listenerri
f190e4de76 update: plugin settings daemon interface
Change-Id: I2157ff9e14a6c878a30810e9ad008593bb61272b
2019-01-16 16:55:01 +08:00
listenerri
2bc2f2e831 refactor: make MainWindow to register sni host instead of tray plugin
Change-Id: I8f6b05ed69ced2d937aac8828a1adb3e77e79b07
2019-01-15 19:54:13 +08:00
listenerri
e96971aecd refactor: delay load XEmbed and SNI trays
Change-Id: Ia9d5684410a57192b228de9478bb3b87025e5b27
2019-01-15 18:14:53 +08:00
listenerri
60b5d9e0c2 feat: shutdown plugin support hibernate
https://github.com/linuxdeepin/internal-discussion/issues/820

Change-Id: Ifa3b35ba6bab8677b5246cd9ecf2279877966891
2019-01-15 16:16:04 +08:00
listenerri
e2a791eb4a remote some debug info
Change-Id: Ib24ae9de3a3ddb9855c0d6832f2366a10fe12596
2019-01-15 16:15:35 +08:00
listenerri
4eaefdb7ef change: plugins dir
Change-Id: I5b504a14294b803ff86a2707ebf6a7c5f0f3e24c
2019-01-15 16:06:48 +08:00