Commit graph

26 commits

Author SHA1 Message Date
Niels De Graef
fb9cfae3f6 printers-entry: Mark labels with a mnemonic widget
This commit adds the "mnemonic-widget" property to some of the labels in
the `CcPrinterEntry` template. One of the advantages is that this also
automatically adds a "labelled-by" a11y relationship between them.
2024-01-18 11:54:50 +00:00
Automeris naranja
3feeb4c6f0 printer-entry: Add tooltip to the ellipsis button 2023-11-29 10:12:30 +00:00
Alice Mikhaylenko
5436dc024f printers: Make adaptive 2023-08-25 08:00:43 +00:00
Alice Mikhaylenko
49a0bf2f33 printers: Use a regular clamped boxed list for printers 2023-08-25 08:00:43 +00:00
Alice Mikhaylenko
3a94c78aad printers: Port the printer menu to GMenuModel 2023-08-25 08:00:43 +00:00
Alice Mikhaylenko
a597ba706d printers: Slightly modernize the entry layout 2023-08-25 08:00:43 +00:00
Alice Mikhaylenko
232d4e6ff5 printer-entry: Use a card for the printer rows 2023-08-02 12:51:48 +00:00
Bilal Elmoussaoui
bb86c36147 panels: Use icon-name property instead
Don't embed a custom GtkImage as that would lack the appropriate style
classes
that GtkButton/GtkMenuButton would automatically add for us
2022-07-20 14:15:57 +02:00
Marek Kasik
cc75a07a69 printers: Fix blurred icons of printers
Change align of the printers icons to CENTER from FILL so that the icons
are not stretched.

Issue #1587
2022-02-11 13:18:15 +01:00
Marek Kasik
52fdf0435e printers: Expand PpPrinterEntry when window resizes
A regression from the GTK4 port.
2022-02-04 17:15:53 +01:00
Georges Basile Stavracas Neto
8141af469c printers: Port to GTK4
Fortunately for us GtkTreeView still operates pretty
much exactly like in GTK3. Other than that, it's a
dense junction of all that we've done so far to port
other panels.
2021-12-14 22:34:21 -03:00
Robert Ancell
7fb336e17b printers: Make printers panel have a smaller minimum width.
Allow the ink-level to overlap with the buttons.
2020-11-19 23:24:31 +00:00
Philip Chimento
8c08abd0a3 printers: Give printer name fewer characters in width
At the default window size, the printer name label is too wide and
collapses the UI into phone mode. (This is the only panel that shows up
in phone mode by default.) Giving the printer name fewer characters
avoids this.
2019-09-17 07:15:28 +00:00
Felipe Borges
5d4cb8ea9c printer: Don't show the supply level bar by default
We were checking for the ink supply level at the callback of the
supply bar "draw" signal. This way we were making the the widget
visible, causing it to allocate vertical space even when it isn't
desired.

Now we check for the supply level before setting the visiblity of
the supply level widget.

https://bugzilla.gnome.org/show_bug.cgi?id=790667
2017-11-21 17:28:15 +01:00
Felipe Borges
950ca7f5cc printers: Allow printer name and location labels to hexpand
Since the main control-center window can now be resized, there's
no reason for us to constrain the printer name and location labels
from expanding horizontally.

https://bugzilla.gnome.org/show_bug.cgi?id=790665
2017-11-21 17:18:56 +01:00
Felipe Borges
fb43d37899 printers: Set default text and sensitivity for the Jobs button
This way we make sure that the right size is allocated at the
creation time and no undesirable resizes occur after a refresh.

https://bugzilla.gnome.org/show_bug.cgi?id=790663
2017-11-21 17:12:15 +01:00
Alexandre Franke
9db096e6e6 Add translator comment 2017-08-27 14:19:50 +02:00
Felipe Borges
0d0b42eb50 printers: Hide supply level bar when there is no inklevel data
https://bugzilla.gnome.org/show_bug.cgi?id=779702
2017-06-15 15:39:22 +02:00
Felipe Borges
e26756d7e3 printers: Make printers-list a GtkListBox
By making the printers list a GtkListBox instead of a GtkBox, we
can use listbox's capabilities for sorting and filter.

https://bugzilla.gnome.org/show_bug.cgi?id=779656
2017-05-09 15:47:04 +02:00
Mario Sanchez Prada
b742936970 printers: Expose the newly added 'Clean' maintenance command to users
Add an extra button "Clean Print Heads" that will be shown when the relevant
maintenance command is available for a printer, to bring this feature back.

Additionally, this commit adds a 'parameters' attribute to PpMaintenanceCommand,
which is needed as the "Clean" command requires to at least be passed "all" as
its single parameter: https://www.cups.org/doc/spec-command.html#Clean

https://bugzilla.gnome.org/show_bug.cgi?id=764620
2017-03-23 13:30:22 +00:00
Allan Day
aa2b98b0ea printers: improve panel layout
Increase spacing in various places and reduce the icon size. This
makes spacing more even and makes the rows feels more open.

https://bugzilla.gnome.org/show_bug.cgi?id=779700
2017-03-10 16:22:08 +01:00
Georges Basile Stavracas Neto
726dcfee91 printers: Allow printer model label to ellipsize
In the Printers panel, the model label of a given printer
may be a long string, specially when it's composed of the
versioning and specifics of the printer.

Because the model label doesn't ellipsize, we may have very
long labels, making the entire Control Center very wide and
unresizeable.

Fix that by making the model label ellipsize.

https://bugzilla.gnome.org/show_bug.cgi?id=779376
2017-02-28 18:57:31 +01:00
Felipe Borges
2c7fc8653d printers: Tweak the printer supply level bar
Make the supply level bar size, margin, border, background, and
saturation match the mockups at
https://wiki.gnome.org/Design/SystemSettings/Printers#Guidelines

Even though we would obtain primary colors by querying the printer
supply info, it is more eye-candy to desaturate (tone down) the
colors in the UI.

https://bugzilla.gnome.org/show_bug.cgi?id=779075
2017-02-26 12:52:29 +01:00
Felipe Borges
1de145a10b printers: Ellipsize the "location" in the printer entry
Long location names were causing the whole dialog to expand
horizontally.

This patch ellipsizes the "location" string just like the
other fields of a printer entry.

https://bugzilla.gnome.org/show_bug.cgi?id=779071
2017-02-26 12:50:03 +01:00
Felipe Borges
7e3d89e13a printers: Introduce PpDetailsDialog
This dialog handles the editing of printer properties such as
name, location, automatic discovery of driver, manual selection
of printer driver, and manual selection of ppd file.

https://bugzilla.gnome.org/show_bug.cgi?id=767600
2017-02-13 19:40:09 +01:00
Felipe Borges
37e37961e5 printers: introduce PpPrinterEntry widget
This commit introduces the following regressions:
- no possibility of renaming properties such as printer names,
location, or changing model/driver. This issue is going to be
solved nextly by the introduction of the PpDetailsDialog.

https://bugzilla.gnome.org/show_bug.cgi?id=767600
2017-02-13 19:27:49 +01:00