diff --git a/go.mod b/go.mod index 3c97f7eb..5079f43e 100644 --- a/go.mod +++ b/go.mod @@ -8,7 +8,7 @@ require ( github.com/boggydigital/atomus v0.1.9 github.com/boggydigital/backups v0.1.3 github.com/boggydigital/clo v1.0.4 - github.com/boggydigital/compton v0.2.21 + github.com/boggydigital/compton v0.2.22 github.com/boggydigital/coost v0.3.9 github.com/boggydigital/dolo v0.2.18 github.com/boggydigital/issa v0.1.19 diff --git a/go.sum b/go.sum index d72180b2..41cedc7e 100644 --- a/go.sum +++ b/go.sum @@ -72,6 +72,8 @@ github.com/boggydigital/compton v0.2.20 h1:5NXQ42sWpeCxN9ed5Jm4fcG3RyMoHde64Y9Er github.com/boggydigital/compton v0.2.20/go.mod h1:dj/yZ2cCfts6+heUS60Favateu+gNTIsoxfX6yNZWLg= github.com/boggydigital/compton v0.2.21 h1:ZziFb3MYG9HJxRWyf9ai4lxbOMDyARN3AAe0fQAeBH8= github.com/boggydigital/compton v0.2.21/go.mod h1:dj/yZ2cCfts6+heUS60Favateu+gNTIsoxfX6yNZWLg= +github.com/boggydigital/compton v0.2.22 h1:8XFjEXDEoin3u0t4rKq4xVv07m6Gl+rX9BM2FV0+1DY= +github.com/boggydigital/compton v0.2.22/go.mod h1:dj/yZ2cCfts6+heUS60Favateu+gNTIsoxfX6yNZWLg= github.com/boggydigital/coost v0.3.9 h1:lMfR5PyexBDR4xDOQp0zWZWUk/Dqlrx7gw7i7XdsC4c= github.com/boggydigital/coost v0.3.9/go.mod h1:w7ChGaah1DKsBIXb9ANdILg2pe2Jp7JkNpnK2R6rBec= github.com/boggydigital/dolo v0.2.18 h1:aN/Bq55e0/9VgmVTNw0ru3aoS6lpZJI59ho5YQlFbDE= diff --git a/rest/compton_fragments/steam_news_item.go b/rest/compton_fragments/steam_news_item.go index 9f3899b5..c9283bff 100644 --- a/rest/compton_fragments/steam_news_item.go +++ b/rest/compton_fragments/steam_news_item.go @@ -26,7 +26,10 @@ func SteamNewsItem(r compton.Registrar, item steam_integration.NewsItem, open bo } } - fr := compton.Frow(r).Heading(title).PropVal("Posted", EpochDate(item.Date)) + fr := compton.Frow(r). + FontSize(size.Small). + Heading(title). + PropVal("Posted", EpochDate(item.Date)) if item.Author != "" { fr.PropVal("Author", item.Author) diff --git a/rest/compton_fragments/steam_review.go b/rest/compton_fragments/steam_review.go index 2abafd8b..42c9c8b6 100644 --- a/rest/compton_fragments/steam_review.go +++ b/rest/compton_fragments/steam_review.go @@ -26,7 +26,9 @@ func SteamReview(r compton.Registrar, review steam_integration.Review) compton.E container.Append(compton.H3Text(votedTitle)) - topFr := compton.Frow(r).CircleIconColor(votedColor).Heading("Author") + topFr := compton.Frow(r). + FontSize(size.Small). + IconColor(compton.Circle, votedColor).Heading("Author") if review.Author.NumGamesOwned > 0 { topFr.PropVal("Games", strconv.Itoa(review.Author.NumGamesOwned)) @@ -84,7 +86,9 @@ func SteamReview(r compton.Registrar, review steam_integration.Review) compton.E reviewContainer.Append(compton.PreText(review.Review)) if review.VotesUp > 0 || review.VotesFunny > 0 { - bottomFr := compton.Frow(r).Heading("Votes") + bottomFr := compton.Frow(r). + FontSize(size.Small). + Heading("Votes") if review.VotesUp > 0 { bottomFr.PropVal("Helpful", strconv.Itoa(review.VotesUp)) } diff --git a/rest/compton_fragments/video_origin_link.go b/rest/compton_fragments/video_origin_link.go index b069801e..4fd807bf 100644 --- a/rest/compton_fragments/video_origin_link.go +++ b/rest/compton_fragments/video_origin_link.go @@ -46,7 +46,9 @@ func VideoOriginLink(r compton.Registrar, videoId, videoTitle, videoDuration str linkColumn.Append(linkText) if dur, err := strconv.ParseInt(videoDuration, 10, 64); err == nil { - frow := compton.Frow(r).PropVal("Duration", formatSeconds(dur)) + frow := compton.Frow(r). + FontSize(size.Small). + PropVal("Duration", formatSeconds(dur)) linkColumn.Append(compton.FICenter(r, frow)) } diff --git a/rest/compton_pages/downloads.go b/rest/compton_pages/downloads.go index 7d1ba8aa..a33b64c6 100644 --- a/rest/compton_pages/downloads.go +++ b/rest/compton_pages/downloads.go @@ -161,7 +161,8 @@ func operatingSystemHeading(r compton.Registrar, os vangogh_local_data.Operating func downloadVariant(r compton.Registrar, dv *DownloadVariant) compton.Element { fr := compton.Frow(r). - CircleIconColor(downloadTypesColors[dv.dlType]). + FontSize(size.Small). + IconColor(compton.Circle, downloadTypesColors[dv.dlType]). Heading(downloadTypesStrings[dv.dlType]) if dv.langCode != "" { @@ -211,7 +212,9 @@ func downloadLink(r compton.Registrar, dl vangogh_local_data.Download) compton.E FontWeight(font_weight.Bolder) linkColumn.Append(linkTitle) - sizeFr := compton.Frow(r).PropVal("Size", fmtBytes(dl.EstimatedBytes)) + sizeFr := compton.Frow(r). + FontSize(size.Small). + PropVal("Size", fmtBytes(dl.EstimatedBytes)) linkColumn.Append(sizeFr) link.Append(linkColumn) diff --git a/rest/compton_pages/product.go b/rest/compton_pages/product.go index 0796376a..8c996dc9 100644 --- a/rest/compton_pages/product.go +++ b/rest/compton_pages/product.go @@ -70,7 +70,8 @@ func Product(id string, rdx kevlar.ReadableRedux, hasSections []string) compton. properties, values := compton_fragments.SummarizeProductProperties(id, rdx) osSymbols := make([]compton.Symbol, 0, 2) - summaryRow := compton.Frow(p) + summaryRow := compton.Frow(p). + FontSize(size.Small) for _, p := range properties { switch p {