Skip to content

Commit

Permalink
add icons to trending tab (FreeTubeApp#6239)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChunkyProgrammer authored and JL committed Dec 7, 2024
1 parent 24137ec commit b30efce
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 2 deletions.
6 changes: 6 additions & 0 deletions src/renderer/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,12 @@ import {
faFileDownload,
faFileImage,
faFileVideo,
faFilm,
faFilter,
faFlask,
faFire,
faForward,
faGamepad,
faGauge,
faGlobe,
faGrip,
Expand All @@ -72,6 +74,7 @@ import {
faLocationDot,
faLock,
faMoneyCheckDollar,
faMusic,
faNetworkWired,
faNewspaper,
faPalette,
Expand Down Expand Up @@ -166,10 +169,12 @@ library.add(
faFileDownload,
faFileImage,
faFileVideo,
faFilm,
faFilter,
faFlask,
faFire,
faForward,
faGamepad,
faGauge,
faGlobe,
faGrip,
Expand All @@ -186,6 +191,7 @@ library.add(
faLocationDot,
faLock,
faMoneyCheckDollar,
faMusic,
faNetworkWired,
faNewspaper,
faPalette,
Expand Down
6 changes: 5 additions & 1 deletion src/renderer/views/Trending/Trending.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
.tab {
text-align: center;
padding: 15px;
font-size: 15px;
font-size: 1.1em;
cursor: pointer;
align-self: flex-end;
}
Expand All @@ -32,6 +32,10 @@
font-weight: bold;
}

.trendingIcon {
color: var(--primary-color);
}

@media only screen and (width <= 680px) {
.card {
inline-size: 90%;
Expand Down
29 changes: 28 additions & 1 deletion src/renderer/views/Trending/Trending.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,14 @@
v-else
class="card"
>
<h2>{{ $t("Trending.Trending") }}</h2>
<h2>
<font-awesome-icon
:icon="['fas', 'fire']"
class="trendingIcon"
fixed-width
/>
{{ $t("Trending.Trending") }}
</h2>
<ft-flex-box
class="trendingInfoTabs"
role="tablist"
Expand All @@ -28,6 +35,11 @@
@keydown.left="focusTab($event, 'movies')"
@keydown.right="focusTab($event, 'music')"
>
<font-awesome-icon
:icon="['fas', 'fire']"
class="trendingIcon"
fixed-width
/>
{{ $t("Trending.Default").toUpperCase() }}
</div>
<!-- eslint-disable-next-line vuejs-accessibility/interactive-supports-focus -->
Expand All @@ -44,6 +56,11 @@
@keydown.left="focusTab($event, 'default')"
@keydown.right="focusTab($event, 'gaming')"
>
<font-awesome-icon
:icon="['fas', 'music']"
class="trendingIcon"
fixed-width
/>
{{ $t("Trending.Music").toUpperCase() }}
</div>
<!-- eslint-disable-next-line vuejs-accessibility/interactive-supports-focus -->
Expand All @@ -60,6 +77,11 @@
@keydown.left="focusTab($event, 'music')"
@keydown.right="focusTab($event, 'movies')"
>
<font-awesome-icon
:icon="['fas', 'gamepad']"
class="trendingIcon"
fixed-width
/>
{{ $t("Trending.Gaming").toUpperCase() }}
</div>
<!-- eslint-disable-next-line vuejs-accessibility/interactive-supports-focus -->
Expand All @@ -76,6 +98,11 @@
@keydown.left="focusTab($event, 'gaming')"
@keydown.right="focusTab($event, 'default')"
>
<font-awesome-icon
:icon="['fas', 'film']"
class="trendingIcon"
fixed-width
/>
{{ $t("Trending.Movies").toUpperCase() }}
</div>
</ft-flex-box>
Expand Down

0 comments on commit b30efce

Please sign in to comment.