Renamed and moved NPill to BarPill.
Pill should not be used outside of the Bar as they rely on bar settings.
This commit is contained in:
parent
3a6bf8d299
commit
a92b4b311a
11 changed files with 26 additions and 16 deletions
|
|
@ -5,6 +5,7 @@ import QtQuick.Layouts
|
|||
import qs.Commons
|
||||
import qs.Services
|
||||
import qs.Widgets
|
||||
import qs.Modules.Bar.Extras
|
||||
|
||||
Item {
|
||||
id: root
|
||||
|
|
@ -81,11 +82,11 @@ Item {
|
|||
}
|
||||
}
|
||||
|
||||
NPill {
|
||||
BarPill {
|
||||
id: pill
|
||||
|
||||
compact: (Settings.data.bar.density === "compact")
|
||||
rightOpen: BarWidgetRegistry.getNPillDirection(root)
|
||||
rightOpen: BarWidgetRegistry.getPillDirection(root)
|
||||
icon: testMode ? BatteryService.getIcon(testPercent, testCharging, true) : BatteryService.getIcon(percent, charging, isReady)
|
||||
text: (isReady || testMode) ? Math.round(percent) : "-"
|
||||
suffix: "%"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue