aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/components/SkipNoticeComponent.tsx
diff options
context:
space:
mode:
authorAjay Ramachandran <[email protected]>2021-08-19 22:32:28 -0400
committerAjay Ramachandran <[email protected]>2021-08-19 22:32:28 -0400
commit36aec560ca06774322d6b1b7219dac28da3cfc11 (patch)
treee3913d9e589920b1a8d6366d47a6f70425c0c857 /src/components/SkipNoticeComponent.tsx
parente8a106d36bc95e5baf794b78095d0f87c69484ee (diff)
downloadSponsorBlock-36aec560ca06774322d6b1b7219dac28da3cfc11.tar.gz
SponsorBlock-36aec560ca06774322d6b1b7219dac28da3cfc11.zip
Add options for smaller and faded notice
Diffstat (limited to 'src/components/SkipNoticeComponent.tsx')
-rw-r--r--src/components/SkipNoticeComponent.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/components/SkipNoticeComponent.tsx b/src/components/SkipNoticeComponent.tsx
index b3231404..0af1efad 100644
--- a/src/components/SkipNoticeComponent.tsx
+++ b/src/components/SkipNoticeComponent.tsx
@@ -1,7 +1,7 @@
import * as React from "react";
import * as CompileConfig from "../../config.json";
import Config from "../config"
-import { Category, ContentContainer, CategoryActionType, SponsorHideType, SponsorTime } from "../types";
+import { Category, ContentContainer, CategoryActionType, SponsorHideType, SponsorTime, NoticeVisbilityMode } from "../types";
import NoticeComponent from "./NoticeComponent";
import NoticeTextSelectionComponent from "./NoticeTextSectionComponent";
@@ -156,7 +156,8 @@ class SkipNoticeComponent extends React.Component<SkipNoticeProps, SkipNoticeSta
showInSecondSlot={this.showInSecondSlot}
idSuffix={this.idSuffix}
fadeIn={true}
- startFaded={false}
+ startFaded={Config.config.noticeVisibilityMode >= NoticeVisbilityMode.FadedForAll
+ || (Config.config.noticeVisibilityMode >= NoticeVisbilityMode.FadedForAutoSkip && this.autoSkip)}
timed={true}
maxCountdownTime={this.state.maxCountdownTime}
videoSpeed={() => this.contentContainer().v?.playbackRate}