mirror of
https://github.com/Xinrea/bili-shadowreplay.git
synced 2025-11-24 20:15:34 +08:00
chore: bundle font assets
This commit is contained in:
File diff suppressed because one or more lines are too long
Binary file not shown.
BIN
public/shaka-player/fonts/KFOlCnqEu92Fr1MmEU9vAw.ttf
Normal file
BIN
public/shaka-player/fonts/KFOlCnqEu92Fr1MmEU9vAw.ttf
Normal file
Binary file not shown.
BIN
public/shaka-player/fonts/KFOmCnqEu92Fr1Me5Q.ttf
Normal file
BIN
public/shaka-player/fonts/KFOmCnqEu92Fr1Me5Q.ttf
Normal file
Binary file not shown.
@@ -1,19 +1,19 @@
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-family: "Roboto";
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-display: swap;
|
||||
src: url(https://fonts.gstatic.com/s/roboto/v27/KFOmCnqEu92Fr1Me5Q.ttf) format('truetype');
|
||||
src: url(./fonts/KFOmCnqEu92Fr1Me5Q.ttf) format("truetype");
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-family: "Roboto";
|
||||
font-style: normal;
|
||||
font-weight: 500;
|
||||
font-display: swap;
|
||||
src: url(https://fonts.gstatic.com/s/roboto/v27/KFOlCnqEu92Fr1MmEU9vAw.ttf) format('truetype');
|
||||
src: url(./fonts/KFOlCnqEu92Fr1MmEU9vAw.ttf) format("truetype");
|
||||
}
|
||||
.youtube-theme {
|
||||
font-family: 'Roboto', sans-serif;
|
||||
font-family: "Roboto", sans-serif;
|
||||
}
|
||||
.youtube-theme .shaka-bottom-controls {
|
||||
width: 100%;
|
||||
@@ -59,17 +59,17 @@
|
||||
.youtube-theme .shaka-controls-button-panel > * {
|
||||
margin: 0;
|
||||
padding: 3px 8px;
|
||||
color: #EEE;
|
||||
color: #eee;
|
||||
height: 40px;
|
||||
}
|
||||
.youtube-theme .shaka-controls-button-panel > *:focus {
|
||||
outline: none;
|
||||
-webkit-box-shadow: inset 0 0 0 2px rgba(27, 127, 204, 0.8);
|
||||
box-shadow: inset 0 0 0 2px rgba(27, 127, 204, 0.8);
|
||||
color: #FFF;
|
||||
color: #fff;
|
||||
}
|
||||
.youtube-theme .shaka-controls-button-panel > *:hover {
|
||||
color: #FFF;
|
||||
color: #fff;
|
||||
}
|
||||
.youtube-theme .shaka-controls-button-panel .shaka-volume-bar-container {
|
||||
position: relative;
|
||||
@@ -120,23 +120,25 @@
|
||||
opacity: 1;
|
||||
cursor: pointer;
|
||||
}
|
||||
.youtube-theme .shaka-seek-bar-container input[type=range]::-webkit-slider-thumb {
|
||||
background: #FF0000;
|
||||
.youtube-theme
|
||||
.shaka-seek-bar-container
|
||||
input[type="range"]::-webkit-slider-thumb {
|
||||
background: #ff0000;
|
||||
cursor: pointer;
|
||||
}
|
||||
.youtube-theme .shaka-seek-bar-container input[type=range]::-moz-range-thumb {
|
||||
background: #FF0000;
|
||||
.youtube-theme .shaka-seek-bar-container input[type="range"]::-moz-range-thumb {
|
||||
background: #ff0000;
|
||||
cursor: pointer;
|
||||
}
|
||||
.youtube-theme .shaka-seek-bar-container input[type=range]::-ms-thumb {
|
||||
background: #FF0000;
|
||||
.youtube-theme .shaka-seek-bar-container input[type="range"]::-ms-thumb {
|
||||
background: #ff0000;
|
||||
cursor: pointer;
|
||||
}
|
||||
.youtube-theme .shaka-video-container * {
|
||||
font-family: 'Roboto', sans-serif;
|
||||
font-family: "Roboto", sans-serif;
|
||||
}
|
||||
.youtube-theme .shaka-video-container .material-icons-round {
|
||||
font-family: 'Material Icons Sharp';
|
||||
font-family: "Material Icons Sharp";
|
||||
}
|
||||
.youtube-theme .shaka-overflow-menu,
|
||||
.youtube-theme .shaka-settings-menu {
|
||||
@@ -222,7 +224,7 @@
|
||||
align-items: center;
|
||||
}
|
||||
.youtube-theme .shaka-overflow-menu span + span {
|
||||
color: #FFF;
|
||||
color: #fff;
|
||||
font-weight: 400 !important;
|
||||
font-size: 12px !important;
|
||||
padding-right: 8px;
|
||||
@@ -230,7 +232,7 @@
|
||||
}
|
||||
.youtube-theme .shaka-overflow-menu span + span:after {
|
||||
content: "navigate_next";
|
||||
font-family: 'Material Icons Sharp';
|
||||
font-family: "Material Icons Sharp";
|
||||
font-size: 20px;
|
||||
}
|
||||
.youtube-theme .shaka-overflow-menu .shaka-pip-button span + span {
|
||||
@@ -270,10 +272,10 @@
|
||||
}
|
||||
.youtube-theme .shaka-overflow-menu button,
|
||||
.youtube-theme .shaka-settings-menu button {
|
||||
color: #EEE;
|
||||
color: #eee;
|
||||
}
|
||||
.youtube-theme .shaka-captions-off {
|
||||
color: #BFBFBF;
|
||||
color: #bfbfbf;
|
||||
}
|
||||
.youtube-theme .shaka-overflow-menu-button {
|
||||
font-size: 18px;
|
||||
|
||||
@@ -225,11 +225,6 @@ pub async fn open_live(
|
||||
use std::str::FromStr;
|
||||
|
||||
let platform = PlatformType::from_str(&platform)?;
|
||||
let recorder_info = state
|
||||
.recorder_manager
|
||||
.get_recorder_info(platform, room_id)
|
||||
.await
|
||||
.unwrap();
|
||||
let builder = tauri::WebviewWindowBuilder::new(
|
||||
&state.app_handle,
|
||||
format!("Live:{room_id}:{live_id}"),
|
||||
@@ -243,10 +238,7 @@ pub async fn open_live(
|
||||
.into(),
|
||||
),
|
||||
)
|
||||
.title(format!(
|
||||
"Live[{}] {}",
|
||||
room_id, recorder_info.room_info.room_title
|
||||
))
|
||||
.title(format!("Live[{}] {}", room_id, live_id))
|
||||
.theme(Some(Theme::Light))
|
||||
.inner_size(1200.0, 800.0)
|
||||
.effects(WindowEffectsConfig {
|
||||
|
||||
@@ -455,7 +455,7 @@ impl RecorderManager {
|
||||
.get_account_by_platform(platform.clone().as_str())
|
||||
.await;
|
||||
if platform != PlatformType::Huya && account.is_err() {
|
||||
log::error!("Failed to get account: {}", account.err().unwrap());
|
||||
log::warn!("Failed to find an account for {platform:?} {room_id}");
|
||||
continue;
|
||||
}
|
||||
let account = if let Ok(account) = account {
|
||||
|
||||
Reference in New Issue
Block a user