summaryrefslogtreecommitdiff
path: root/wikipedia/widgets
Commit message (Collapse)AuthorAge
* Category button sizing for gtk 3.10Matt Watson2013-12-05
| | | | | | | | Another one. This one for gtk 3.10. With the new Gtk version, overriding get_preferred_width to handle overlong titles can mess up the height allocation when labels wrap. Specifying width for height management for the button fixed this [endlessm/eos-sdk#376]
* Fix wiki apps title category button sizingMatt Watson2013-12-05
| | | | | | | | | | | | | | | Before this the size request of the title category button is set based on the toplevels allocation. This broke when EosWindow's size request was fixed. Having some sort of container or bind constraint that allocated things based on percentages is the eventual solution here. For now I used a column homogeneous grid where each column was a percentage of the allocation. A little gross, but works fine, and our wiki apps handle resizing much better than they did before now [endlessm/eos-sdk#376] [endlessm/eos-sdk#376]
* Add category button mouseover arrow in overlayMatt Watson2013-12-04
| | | | | | | | No longer set the arrow images opacity, which seemed to be the root a visual bug. The overlay also means the arrow will always appear in the right of the category button and not be cut off even if the label is overlong [endlessm/eos-sdk#407]
* Simplified category buttonMatt Watson2013-12-04
| | | | | | Subclass button, so we don't need our own event boxes and event handling [endlessm/eos-sdk#407]
* Freed cairo context for BoxWithBg widgetMatt Watson2013-11-18
| | | | | | | This widget was used on the category page. Without the call to $dispose there's a large memory leak each time the category page is displayed on screen. [endlessm/eos-sdk#408]
* Dispose cairo context in vfunc_drawMatt Watson2013-11-15
| | | | | | For our category buttons, otherwise the context and all associated resources are never freed [endlessm/eos-sdk#403]
* Revert quick fix for memory leakMatt Watson2013-11-14
| | | | This reverts commit e7dc5aa70b27f3251ef82ce91d05dea770a0e7ac.
* Partly revert "Only load category button images when needed"Philip Chimento2013-11-12
| | | | | | | This reverts part of commit [ddcbb17]. It is a workaround for a GJS bug and should itself be reverted later. [endlessm/eos-sdk#399]
* Add word wrap widths to the front page categoriesPhilip Chimento2013-11-07
| | | | | | | | | | - Fonts are changed to be 150px and 48px for ODROID's 1920x1080 resolution - Word-wrapping widths are set to approximately reproduce the deck [endlessm/eos-sdk#394] [endlessm/eos-sdk#394]
* Only load category button images when neededMatt Watson2013-11-06
| | | | | | | | Before we were loading them every time size_allocate was called, even if the widget was not even realized. Now just check during draw if the pixbuf needs to be reloaded. Also draw the pixbuf directly with cairo which cuts down on widget hierarchy. [endlessm/eos-sdk#349]
* wiki: Add documentation for all new and changed APIPhilip Chimento2013-10-23
| | | | | | | For good code hygiene, let's make sure we document all new and changed APIs. [endlessm/eos-sdk#367]
* wiki: Functionality unchanged with new JSON formatPhilip Chimento2013-10-23
| | | | | | | | | Reorganizes the various models, presenters, and views, so that the wiki apps work unchanged with the new JSON export format. Also refactors so that there is less linkage between models, presenters, and views, so further updates will hopefully be less extensive. [endlessm/eos-sdk#367]
* wikipedia: Use Lato fontsPhilip Chimento2013-10-18
| | | | | | | | | Fonts are changed according to the conversion table. It turns out that what we thought was the "Benton Sans correction" does not only apply to Benton Sans - I think it is due to GTK's lack of baseline alignment, something that has been rectified in GTK 3.10. [endlessm/eos-sdk#361]
* Arrow on sidebar button is always there.Rory MacQueen2013-10-11
| | | | | | | | Previously, the arrow on the sidebar back button for the article page would only appear on hover. Now it appears always, as per design request. [endlessm/eos-sdk#352]
* Styled top bar back buttonRory MacQueen2013-10-01
| | | | | | | | | | Previously, the back button on the top window bar was not styled correctly according to designs. This commit changes the BackButton widget to now suclass Endless Asset Button and have the right styling. [endlessm/eos-sdk#301]
* Added back button to categories pageRory MacQueen2013-09-26
| | | | | | | | | Designers wanted a back button the categories page to make it easier for users to navigate back to the home page. This button is an asset button from our SDK. [endlessm/eos-sdk#270]
* Renamed TextButton to ListTextButton so that we can have other textbuttonsRory MacQueen2013-09-26
|
* Reorganized widget layout for the category pageRory MacQueen2013-09-26
| | | | | | | | | | | We were encountering a bizarre bug where the textview would enlarge when you click the button on the category page. It seems to be due to the set_size_request call on the textview or containing widget. To correct, I took out that set_size_request call and instead subclassed the textview to override the get_preferred_width function. The button image is a placeholder till we get the right asset from design.
* Removed HTML related codeRory MacQueen2013-08-30
| | | | [endlessm/eos-sdk#279]
* Word-wrap overly long category titlePhilip Chimento2013-08-29
| | | | | | | Turn word-wrapping on in the GtkLabel. Set the arrow button's valign to be END, and add a Benton Sans correction to the arrow button. [endlessm/eos-sdk#255]
* Can add articles to the main category.Nick Isaacs2013-08-21
| | | | | | | | If there are articles for an app's main category, then it becomes clickable and acts like any other category. If there are no articles for a category, it isn't cilckable and has no hover animations. We no longer use the Title Label View since the main category is now a category button like any other. [endlessm/eos-sdk#259]
* Reorganized import pathsRory MacQueen2013-08-15
Moved all widgets into widgets directory. Changed Endless Wikipedia file to expose wikipedia web view [endlessm/eos-sdk#260]