~blaze/+junk/ubiquity

« back to all changes in this revision

Viewing changes to ubiquity/frontend/gtk_ui.py

  • Committer: Mathieu Trudel-Lapierre
  • Date: 2016-07-29 15:57:43 UTC
  • mfrom: (6453.2.3 ubiquity)
  • Revision ID: mathieu.trudel-lapierre@canonical.com-20160729155743-mg7auia18yw4w66m
* debian/control: Depend on gir1.2-gtk-3.0 (>= 3.20).
* ubiquity/frontend/gtk_ui.py: Port style to Gtk 3.20.
* Silence some pyflakes warnings.

Show diffs side-by-side

added added

removed removed

Lines of Context:
256
256
        # Make a thin Progress bar
257
257
        provider = Gtk.CssProvider()
258
258
        provider.load_from_data(b'''\
259
 
            .inline-toolbar.toolbar {
 
259
            toolbar {
260
260
                background: @theme_bg_color;
261
261
                border-color: transparent;
262
262
                border-width: 0px;
263
263
                padding: 0px;
264
264
            }
265
 
            GtkProgressBar {
266
 
              -GtkProgressBar-min-horizontal-bar-height : 10;
267
 
              -GtkProgressBar-min-horizontal-bar-width : 10;
268
 
            }
269
 
            GtkPaned {
270
 
                -GtkPaned-handle-size: 10;
 
265
            progressbar trough {
 
266
              min-height: 10px;
 
267
              min-width: 11px;
 
268
              border: none;
 
269
            }
 
270
            progressbar progress {
 
271
              min-height: 10px;
 
272
              border-radius: 4px;
 
273
              border: none;
 
274
            }
 
275
            paned separator {
 
276
                min-width: 10px;
271
277
            }
272
278
            ''')
273
279
        Gtk.StyleContext.add_provider_for_screen(