Skip to content

Commit

Permalink
Bumping compton and updating to the latest changes
Browse files Browse the repository at this point in the history
  • Loading branch information
boggydigital committed Nov 10, 2024
1 parent 2fba784 commit 6a8719a
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 8 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down
5 changes: 4 additions & 1 deletion rest/compton_fragments/steam_news_item.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
8 changes: 6 additions & 2 deletions rest/compton_fragments/steam_review.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -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))
}
Expand Down
4 changes: 3 additions & 1 deletion rest/compton_fragments/video_origin_link.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}

Expand Down
7 changes: 5 additions & 2 deletions rest/compton_pages/downloads.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 != "" {
Expand Down Expand Up @@ -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)
Expand Down
3 changes: 2 additions & 1 deletion rest/compton_pages/product.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 6a8719a

Please sign in to comment.