summaryrefslogtreecommitdiff
path: root/wikipedia/widgets/category_button.js
Commit message (Collapse)AuthorAge
* Fix for making arrow hover states correct in NUCRory MacQueen2014-02-04
| | | | | | | | | For some reason, on the NUC, we can't set opacity for hover state in CSS. So this commit instead makes it so that we set the opacity in Gtk. Note that this problem was only reproducible on a NUC so this commit may eventually need to be reverted. [endlessm/eos-sdk#540]
* Move and realign category buttonPhilip Chimento2014-01-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The category "go" arrow should never overlap the label text, so this moves it out of its overlay and puts it in the same layer as the label. The label now uses baseline alignment, and we can get rid of the hacky extra padding in the CSS. Currently, the innards of the category button look like this: +---------------------------------------+ | Grid, hexpand: TRUE, halign: FILL | | +------------------+ +--------------+ | | | Label | | Arrow button | | | | halign: START | | halign: END | | | | valign: BASELINE | | valign: END | | | +------------------+ +--------------+ | +---------------------------------------+ The arrow button does not have valign BASELINE, because that would align it so it was even with the first line of the label if the label was wrapped over two lines: (GOOD) (BAD) HISTORY HISTORY > & POLITICS > & POLITICS Also, I have removed the "width-chars" property of the label, because, as in the programming app in a commit which I cannot now find, when the label wraps, the width-chars property makes it request a very odd size. [endlessm/eos-sdk#505]
* Change the category button to a CompositeButtonPhilip Chimento2014-01-22
| | | | | | This allows the arrow fade-in and fade-out to be specified in the CSS. [endlessm/eos-sdk#505]
* Replace category arrow assetPhilip Chimento2014-01-22
| | | | | | Replace the old PNG asset with an SVG asset. [endlessm/eos-sdk#505]
* 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]
* 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]
* 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]
* 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]