Commit graph

39 commits

Author SHA1 Message Date
Bastien Nocera
3a3408040f power: Add configuration for Power Button
When running on something other than a VM or a tablet, which have
hard-coded actions when the power button is pressed, offer to configure
the power button to either suspend (default), hibernate, or do nothing.

https://bugzilla.gnome.org/show_bug.cgi?id=757880
2015-11-13 16:21:36 +01:00
Bastien Nocera
008d7c1468 power: Remove "When battery power is critical" label
With UPower 1.0, the critical action to take when the battery level
is too low isn't in the hands of the user anymore, but in the hands
of the system.

It's now handled by UPower directly, through the CriticalPowerAction
configuration option. Instead of asking logind whether the system
supports hibernation, remove the action label altogether.

https://bugzilla.gnome.org/show_bug.cgi?id=749436
2015-05-18 14:47:20 +02:00
Yosef Or Boczko
2f18d2c282 power: Use header bar in the automatic suspend dialog
https://bugzilla.gnome.org/show_bug.cgi?id=724299
2014-04-28 17:29:17 +03:00
Yosef Or Boczko
e7efdbc7ff power: Use margin-start/end instead of margin-left/right
https://bugzilla.gnome.org/show_bug.cgi?id=712661
2013-11-19 22:28:13 +02:00
Matthias Clasen
fc60c1ae0d Fix automatic suspend popup sizing issues
There was a stray resize-mode setting which broke things,
and the combo boxes had unnecessary extra margins.

https://bugzilla.gnome.org/show_bug.cgi?id=711856
2013-11-16 17:10:47 -05:00
Rui Matos
7c58167899 power: Remove unused toplevel window from .ui file
https://bugzilla.gnome.org/show_bug.cgi?id=708286
2013-10-01 10:05:03 +02:00
Yosef Or Boczko
56aa021341 power: Adding more padding to top of panel
adding 12px of padding

https://bugzilla.gnome.org/show_bug.cgi?id=698202
2013-07-30 21:17:18 +03:00
Bastien Nocera
431b89f176 power: Expand the "Automatic suspend" dialogue's layout
The dialog looks rather squashed along the horizontal. The spacing
should make the connection between the switches and the delay comboboxes
a bit clearer.

Also make sure that the "Delay" labels don't intersect the labels above.

https://bugzilla.gnome.org/show_bug.cgi?id=694042
2013-02-18 14:54:05 +01:00
Bastien Nocera
4300935968 power: Split lines in auto-suspend dialogue 2013-02-12 14:51:29 +01:00
Bastien Nocera
89c3863a7c power: Make 15 mins < suspend idle time < 2h
So that the suspend idle time is always higher than the blank
idle time, from a minimum of 15 minutes up to 2 hours.
2013-02-12 14:38:08 +01:00
Bastien Nocera
a1848fb70a power: Make 0 < idle-time < 15 minutes 2013-02-12 14:34:11 +01:00
Jeremy Bicha
b7b8cd056a power: Add missing mnemonic_widget relations
Works better in Orca

https://bugzilla.gnome.org/show_bug.cgi?id=693436
2013-02-08 12:36:53 -05:00
Bastien Nocera
cca93d0fc5 power: Add idle-delay configuration
https://bugzilla.gnome.org/show_bug.cgi?id=691582
2013-01-17 11:06:03 +01:00
Matthias Clasen
b40734beb4 Power: Implement the new power panel design
The design can be found here:
https://live.gnome.org/Design/SystemSettings/Power

https://bugzilla.gnome.org/show_bug.cgi?id=689614
2013-01-04 15:17:35 +01:00
Bastien Nocera
28ea296f09 Revert "Power: Implement the new power panel design"
This reverts commit a9683772d9.
2012-12-20 09:36:06 +01:00
Matthias Clasen
a9683772d9 Power: Implement the new power panel design
The design can be found here:
https://live.gnome.org/Design/SystemSettings/Power

https://bugzilla.gnome.org/show_bug.cgi?id=689614
2012-12-20 09:20:48 +01:00
Cosimo Cecchi
b05591b165 power: port to GtkLevelBar
https://bugzilla.gnome.org/show_bug.cgi?id=679984
2012-07-16 11:29:25 +01:00
Allan Day
24af6576da power - fix text flow
The labels on the left should be more prominent so they lead
users into the dialog. Make them dark and the upper labels smaller.

https://bugzilla.gnome.org/show_bug.cgi?id=670269
2012-02-17 11:01:21 +01:00
Richard Hughes
603341a984 power: Re-fix the right hand side combobox alignment 2012-02-15 18:51:46 +00:00
Cosimo Cecchi
240faca3e0 power: hide "When power is critical" elements when there's no batteries
As for the mockups

https://bugzilla.gnome.org/show_bug.cgi?id=670107
2012-02-15 11:12:51 -05:00
Cosimo Cecchi
02e5cb7f70 power: port main box to GtkGrid
Instead of a box of boxes; this way we can easily align labels without
an additional GtkSizeGroup using halign.

https://bugzilla.gnome.org/show_bug.cgi?id=670107
2012-02-15 11:12:51 -05:00
Cosimo Cecchi
4093f9eae4 power: set dim-label style classes on left labels
To be consistent with other panels.

https://bugzilla.gnome.org/show_bug.cgi?id=670107
2012-02-15 11:12:23 -05:00
Richard Hughes
a0e2935376 power: Fix up the header labels to be aligned with the comboboxes
Resolves: https://bugzilla.gnome.org/show_bug.cgi?id=670121
2012-02-15 09:59:49 +00:00
Richard Hughes
31c9d27b51 power: Expand out the combo-boxes to align to the progress bar
This makes the UI match the latest mockup.
2012-02-14 17:00:24 +00:00
Richard Hughes
cef4e593bb power: Use CcStrengthBar for battery level to get closer to the new design 2012-02-14 17:00:24 +00:00
Richard Hughes
0ea3d7dd3c power: Fix up the power glade file to minimize merge conflicts 2012-02-14 17:00:24 +00:00
Richard Hughes
ee36b0df91 power: Make the panel match the new mockups 2012-02-14 17:00:24 +00:00
Matthias Clasen
b5acac3bf5 power: Add some labelled-by relations for a11y 2011-11-03 14:06:08 -04:00
Bastien Nocera
ada3a05386 power: Use "Power off" instead of "Shutdown"
(1) The correct verb is "Shut down". (2) It doesn't matter
because the preferred term is "Power off", verified with the
design team.

Spotted by Shaun McCance <shaunm@gnome.org>

https://bugzilla.gnome.org/show_bug.cgi?id=661559
2011-10-13 10:19:43 +01:00
Bastien Nocera
c703944fc5 power: Remove unused ListStore definitions 2011-10-13 10:18:55 +01:00
Richard Hughes
a735193250 power: Update the UI to reflect the new mockup 2011-09-02 17:23:45 +01:00
Bastien Nocera
4a7190004a power: Don't shrink the panel on desktops
During a split second we see some garbage on the screen on
desktop systems that don't have UPSes. Better to grow than to
shrink (though we shouldn't do either), so start with the battery
information hidden.
2011-08-27 13:06:19 +01:00
Bastien Nocera
6ed654694d power: Remove power and suspend buttons config
As mentioned in the discussion in:
https://bugzilla.gnome.org/show_bug.cgi?id=652183
https://bugzilla.gnome.org/show_bug.cgi?id=657068

And implemented in the future for the power panel:
https://live.gnome.org/Design/SystemSettings/Power/
2011-08-27 12:54:58 +01:00
Richard Hughes
4f08a32570 power: Make insensitive any sleep actions the hardware cannot do 2011-07-19 14:32:09 +01:00
Matthias Clasen
b7f82e98ff Fix a11y/keynav issues in power panel
Add mnemonics to all items. We may need to revisit this and set
labeled-by relations for the combo boxes where the labels are
checkboxes (in that case, the mnemonic automatism doesn't really
work, I think).

Part of bug 650132
2011-05-15 14:50:17 -04:00
Richard Hughes
e0f0cee9a2 power: Fix up some of the wording to actually be translatable. Fixes #640119 2011-02-01 13:51:08 +00:00
Matthias Clasen
f61bf9fa91 power: Fix sizing issues in the power panel 2010-11-19 11:34:03 -05:00
Richard Hughes
0ce60e84cb Add a 'Power' panel that matches the mockups 2010-11-18 19:20:35 +00:00
Richard Hughes
1444735b6e Add the first cut of the UI of the power panel, based on a mockup by Alan Day 2010-11-18 14:46:33 +00:00