Themeing text view paywall.

This commit is contained in:
Samuel Clay 2017-11-15 17:11:44 -08:00
parent 098f2ca780
commit 055e8f0352
4 changed files with 16 additions and 2 deletions

View file

@ -378,7 +378,7 @@
NSUserDefaults *userPreferences = [NSUserDefaults standardUserDefaults];
NSString *premiumTextString = [NSString stringWithFormat:@"<div class=\"NB-feed-story-premium-only-divider\"></div>"
"<div class=\"NB-feed-story-premium-only-text\">The full Text view is a <a href=\"http://ios.newsblur.com/premium\">premium feature</a>.</div>"];
"<div class=\"NB-feed-story-premium-only-text\">The full Text view is a <a href=\"http://ios.newsblur.com/premium\">premium feature</a></div>"];
fontStyleClass = [userPreferences stringForKey:@"fontStyle"];
if (!fontStyleClass) {

View file

@ -244,4 +244,10 @@ a:active {
-webkit-box-shadow: inset 0px 1px 1px rgba(0, 0, 0, .1);
}
.NB-text-view-premium-only {
background-color: #202020;
}
.NB-text-view-premium-only .NB-feed-story-premium-only-divider {
filter: invert(100%);
}

View file

@ -245,4 +245,10 @@ a:active {
-webkit-box-shadow: inset 0px 2px 1px #818181;
}
.NB-text-view-premium-only {
background-color: gray;
}
.NB-text-view-premium-only .NB-feed-story-premium-only-divider {
filter: invert(100%);
}

View file

@ -237,4 +237,6 @@ a:active {
-webkit-box-shadow: inset 0px 1px 1px rgba(0, 0, 0, .1);
}
.NB-text-view-premium-only {
background-color: #FFFEE5;
}