pstream is dead; long live pstream taciturnaxolotl.github.io/pstream-ng/
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

update subtitle defaults

Pas 0ed041fe 66f0a3b9

+23 -20
+2 -2
src/assets/locales/en.json
··· 1159 1159 "title": "Subtitles", 1160 1160 "textBoldLabel": "Bold text", 1161 1161 "verticalPositionLabel": "Vertical position", 1162 - "default": "Default", 1163 - "low": "Low", 1162 + "high": "High", 1163 + "low": "Default", 1164 1164 "textStyle": { 1165 1165 "title": "Text style", 1166 1166 "default": "Default",
+12 -9
src/components/player/atoms/settings/CaptionSettingsView.tsx
··· 12 12 import { usePlayerStore } from "@/stores/player/store"; 13 13 import { usePreferencesStore } from "@/stores/preferences"; 14 14 import { SubtitleStyling, useSubtitleStore } from "@/stores/subtitles"; 15 + import { isFirefox } from "@/utils/detectFeatures"; 15 16 16 17 export function ColorOption(props: { 17 18 color: string; ··· 423 424 const resetSubStyling = () => { 424 425 subtitleStore.updateStyling({ 425 426 color: "#ffffff", 426 - backgroundOpacity: 0.5, 427 - size: 1, 428 - backgroundBlur: 0.5, 427 + backgroundOpacity: 0.25, 428 + size: 0.75, 429 + backgroundBlur: 0.25, 430 + backgroundBlurEnabled: !isFirefox, 429 431 bold: false, 432 + verticalPosition: 1, 430 433 fontStyle: "default", 431 434 borderThickness: 1, 432 435 }); ··· 639 642 type="button" 640 643 className={classNames( 641 644 "px-3 py-1 rounded transition-colors duration-100", 642 - styling.verticalPosition === 3 645 + styling.verticalPosition === 1 643 646 ? "bg-video-context-buttonFocus" 644 647 : "bg-video-context-buttonFocus bg-opacity-0 hover:bg-opacity-50", 645 648 )} 646 649 onClick={() => 647 650 handleStylingChange({ 648 651 ...styling, 649 - verticalPosition: 3, 652 + verticalPosition: 1, 650 653 }) 651 654 } 652 655 > 653 - {t("settings.subtitles.default")} 656 + {t("settings.subtitles.low")} 654 657 </button> 655 658 <button 656 659 type="button" 657 660 className={classNames( 658 661 "px-3 py-1 rounded transition-colors duration-100", 659 - styling.verticalPosition === 1 662 + styling.verticalPosition === 3 660 663 ? "bg-video-context-buttonFocus" 661 664 : "bg-video-context-buttonFocus bg-opacity-0 hover:bg-opacity-50", 662 665 )} 663 666 onClick={() => 664 667 handleStylingChange({ 665 668 ...styling, 666 - verticalPosition: 1, 669 + verticalPosition: 3, 667 670 }) 668 671 } 669 672 > 670 - {t("settings.subtitles.low")} 673 + {t("settings.subtitles.high")} 671 674 </button> 672 675 </div> 673 676 </div>
+7 -7
src/pages/parts/settings/CaptionsPart.tsx
··· 116 116 backgroundBlur: 0.5, 117 117 backgroundBlurEnabled: !isFirefox, 118 118 bold: false, 119 - verticalPosition: 3, 119 + verticalPosition: 1, 120 120 fontStyle: "default", 121 121 borderThickness: 1, 122 122 }); ··· 331 331 type="button" 332 332 className={classNames( 333 333 "px-3 py-1 rounded transition-colors duration-100", 334 - props.styling.verticalPosition === 3 334 + props.styling.verticalPosition === 1 335 335 ? "bg-video-context-buttonFocus" 336 336 : "bg-video-context-buttonFocus bg-opacity-0 hover:bg-opacity-50", 337 337 )} 338 338 onClick={() => 339 339 handleStylingChange({ 340 340 ...props.styling, 341 - verticalPosition: 3, 341 + verticalPosition: 1, 342 342 }) 343 343 } 344 344 > 345 - {t("settings.subtitles.default")} 345 + {t("settings.subtitles.low")} 346 346 </button> 347 347 <button 348 348 type="button" 349 349 className={classNames( 350 350 "px-3 py-1 rounded transition-colors duration-100", 351 - props.styling.verticalPosition === 1 351 + props.styling.verticalPosition === 3 352 352 ? "bg-video-context-buttonFocus" 353 353 : "bg-video-context-buttonFocus bg-opacity-0 hover:bg-opacity-50", 354 354 )} 355 355 onClick={() => 356 356 handleStylingChange({ 357 357 ...props.styling, 358 - verticalPosition: 1, 358 + verticalPosition: 3, 359 359 }) 360 360 } 361 361 > 362 - {t("settings.subtitles.low")} 362 + {t("settings.subtitles.high")} 363 363 </button> 364 364 </div> 365 365 </div>
+2 -2
src/stores/subtitles/index.ts
··· 94 94 backgroundBlur: 0.5, 95 95 backgroundBlurEnabled: !isFirefox, 96 96 bold: false, 97 - verticalPosition: 3, 97 + verticalPosition: 1, 98 98 fontStyle: "default", 99 99 borderThickness: 1, 100 100 }, ··· 147 147 backgroundBlur: 0.5, 148 148 backgroundBlurEnabled: !isFirefox, 149 149 bold: false, 150 - verticalPosition: 3, 150 + verticalPosition: 1, 151 151 fontStyle: "default", 152 152 borderThickness: 1, 153 153 };