rich custom gui with glade and css
play

Rich custom GUI with Glade and CSS by Juan Pablo Ugarte GU ADEC - PowerPoint PPT Presentation

Rich custom GUI with Glade and CSS by Juan Pablo Ugarte GU ADEC 2013 Brno, Czech Republic August 1 - 8 TM Conference The GNOME GUADEC Graphical User Intefaces Graphical User Intefaces GNOME 2.10 screenshot showing Rhythmbox,


  1. Rich custom GUI with Glade and CSS by Juan Pablo Ugarte GU ADEC 2013 Brno, Czech Republic August 1 - 8 TM Conference The GNOME ● GUADEC ●

  2. Graphical User Intefaces Graphical User Intefaces GNOME 2.10 screenshot showing Rhythmbox, GThumb, gedit and Nautilus

  3. Graphical User Intefaces Graphical User Intefaces XMMS/Audacious Winamp classic interface Audacious Gtk Interface

  4. SyncTV Desktop Player - Mockup SyncTV Desktop Player - Mockup SyncTV artist design

  5. SyncTV Desktop Player - Gtk 2.0 SyncTV Desktop Player - Gtk 2.0

  6. SyncTV Desktop Player - Gtk 2.0 SyncTV Desktop Player - Gtk 2.0

  7. Rich custom GUI with Glade and CSS Rich custom GUI with Glade and CSS Enough with the screenshots! ∙ Case Study: Baccarat display for Casinos ∙ Artist mockup ∙ CSS implementation ∙ Final Product

  8. Baccarat Mockup Baccarat Mockup << Min/Max Bet Frame Use images for: ∙ Logo ∙ Backgrounds ∙ Icons CSS for: ∙ all text << Play Grid ∙ custom elements (frames and grid) << Information Frame

  9. Glade and the widget hierarchy Glade and the widget hierarchy

  10. Glade + CSS Glade + CSS

  11. Implementing Bet Frame Implementing Bet Frame .font_bet { color: #47423f; font-size: 44px; font-weight:bold; } + MIN: 10 = GtkFrame.frame_bet { MAX: 50 border: 6px solid; border-color: #c1c0bf; border-radius: 24px; background-color: white; box-shadow: 2px 2px 4px black inset; }

  12. Implementing Info Frame Implementing Info Frame GtkFrame.frame_shadow { border: 0px; padding: 0px 4px 4px 0px; border-radius: 16px; background-color: #47423F; } + Player: 43 GtkFrame.frame_default { Banker:23 = border: 0px; padding: 0px; border-radius: 16px; Tie: 03 background-color: #5c7dbe; } + .font_default { color: white; font-size: 42px; text-shadow: 2px 2px 2px black; }

  13. Implementing the Play Grid Implementing the Play Grid GtkFrame.frame_grid { border: 8px solid #c1c0bf; GtkGrid.frame_grid > GtkImage { border-radius: 32px; box-shadow: 2px 2px 2px grey inset; background-image: -gtk-gradient (linear, } left top, right bottom, GtkImage.grid_child_odd { from(#9d9a99), to(#d6d5d4)); background-color: #ededeb; box-shadow: 2px 2px 2px grey inset; } }

  14. Baccarat CSS/GTK implementation Baccarat CSS/GTK implementation @keyframes player_transition { 0% { background-image: none;} 100% { background-image: url("blue.png");} } GtkImage.grid_top_left { GtkImage.grid_top_right { border-radius: border-radius: 22px 0px 0px 0px; 0px 22px 0px 0px; } } GtkImage.grid_bottom_left { GtkImage.grid_bottom_right { border-radius: border-radius: 0px 0px 0px 22px; 0px 0px 22px 0px; } } GtkGrid.frame_grid > GtkImage.bg_player_anim { animation: player_transition .5s 1 linear; }

  15. Baccarat CSS/GTK implementation Baccarat CSS/GTK implementation Finished Product

  16. To Do List To Do List xjuan@Xjuan:~/sources/glade$ git checkout master xjuan@Xjuan:~/sources/glade$ git rebase css /* * TODO : * * Add a way to disable CSS animations * in the workspace. * * Add <style type="text/css" href="file.css"> * to GtkBuilder?????????? * */ while (slow ()) make_it_faster ();

  17. BTW this presentation was made with Glade and CSS

  18. Thank You Gracias Email: juanpablougarte@gmail.com jpu@gnome.org Blog: blogs.gnome.org/xjuan ██████████████ ██ ██ ██ ██ ██████ ██████████████ IRC: xjuan ██ ██ ████████ ██ ██ ██ ██ ██ ██ ██ ██████ ██ ██████ ██ ██ ██ ██ ██████ ██ ██ ██████ ██ ██████ ████ ████████ ██ ██ ██████ ██ ██ ██████ ██ ██ ████ ██ ██ ██ ██████ ██ ██ ██ ████ ██ ████████ ██ ██ ██████████████ ██ ██ ██ ██ ██ ██ ██ ██████████████ ██ ████████████████ ████████ ██ ██ ██████████████████ ██ ██████ ██ ██ ██ ██ ██ ██ ██ ████ ████████████ ██ ████ ████ ██████████ ██ ██ ████ ██ ████ ██████████ ████████ ████ ██ ████████████ ██ ██ ████ ██ ██████ ████████ ██ ██ ██ ████ ████ ████ ████ ██ ████ ██ ████ ██████ ████████████ ██ ██ ██ ██████ ████████ ████ ██ ██ ██ ██ ██ ██████ ██ ██ ████ ██████████ ██ ██ ██ ██ ████ ██ ██ ████ ██ ██ ████ ██ ██ ██ ████ ██ ██ ██████ ██████ ██████ ██ ██ ██ ████ ██ ██████████ ██████ ██ ████ ██ ██ ████ ████████ ██ ██ ██████ ██████████████ Handout: ██ ██ ██ ██ ██ ██████████ ██████████████ ████ ██████████ ██ ████ ██ ██ ██ ██ ██████████ ██ ██ ██ ████ http://people.gnome.org/~jpu/docs\ ██ ██████ ██ ██ ████ ████ ████████████████ ██ ██████ ██ ██ ████ ██████ ██ ██ ████ ██ ██ ██ ██████ ██ ██ ██ ████ ██████ ██ ██ ██ ██ /2013-GUADEC/ ██ ██ ██████ ██ ██████ ██ ████████ ██ ██████████████ ██ ██ ██ ██████ ██ ██

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend