-
-
Notifications
You must be signed in to change notification settings - Fork 265
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make player container ("cinema") background match terminal background…
… color
- Loading branch information
Showing
10 changed files
with
56 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
lib/asciinema_web/controllers/live_stream_html/head_for_show.html.heex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<%= if @stream.visibility != :public do %> | ||
<meta name="robots" content="noindex, nofollow" /> | ||
<meta name="referrer" content="origin" /> | ||
<% end %> | ||
|
||
<.theme_style theme={theme(@stream)} /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
lib/asciinema_web/controllers/live_stream_html/theme_style.html.heex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<style> | ||
section.cinema, div.ap-player { | ||
--term-color-foreground: <%= @theme.fg %>; | ||
--term-color-background: <%= @theme.bg %>; | ||
|
||
<%= for {c, i} <- Enum.with_index(Tuple.to_list(@theme.palette)) do %> | ||
--term-color-<%= i %>: <%= c %>; | ||
<% end %> | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 0 additions & 12 deletions
12
lib/asciinema_web/controllers/recording_html/original_theme_style.html.heex
This file was deleted.
Oops, something went wrong.
10 changes: 10 additions & 0 deletions
10
lib/asciinema_web/controllers/recording_html/theme_style.html.heex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<style> | ||
section.cinema, div.ap-player { | ||
--term-color-foreground: <%= @theme.fg %>; | ||
--term-color-background: <%= @theme.bg %>; | ||
|
||
<%= for {c, i} <- Enum.with_index(Tuple.to_list(@theme.palette)) do %> | ||
--term-color-<%= i %>: <%= c %>; | ||
<% end %> | ||
} | ||
</style> |