Skip to content

Commit cb467ce

Browse files
committed
[*] update normally
1 parent 1fc6fd4 commit cb467ce

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/recorder/src/video_encoder.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ impl VideoEncoder {
188188
// Create x264 encoder with optimized settings for screen recording
189189
let encoder = Encoder::builder()
190190
.fps(fps.to_u32(), 1)
191-
.build(Colorspace::RGB, width as i32, height as i32) // TODO: Colorspace::RGBA
191+
.build(Colorspace::RGB, width as i32, height as i32)
192192
.map_err(|e| {
193193
RecorderError::VideoEncodingFailed(format!(
194194
"Failed to create x264 encoder: {:?}",
@@ -247,7 +247,7 @@ impl VideoEncoder {
247247
}
248248

249249
// Create x264 image from RGB buffer
250-
let image = Image::rgb(self.width as i32, self.height as i32, img.as_raw()); // TODO: rgba
250+
let image = Image::rgb(self.width as i32, self.height as i32, img.as_raw());
251251

252252
// Calculate timestamp in milliseconds (frame_index * 1000 / fps)
253253
let timestamp_ms = (self.frame_index * 1000) / self.fps.to_u32() as u64;

wayshot/ui/panel/desktop/home.slint

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ component ControlPanel inherits HorizontalLayout {
235235

236236
Label {
237237
text: input-audio-slider.value.to-fixed(0) + "%";
238+
color: input-audio-slider.enabled ? Theme.primary-text-color : Theme.disabled-color;
238239
}
239240
}
240241
}
@@ -306,6 +307,7 @@ component ControlPanel inherits HorizontalLayout {
306307

307308
Label {
308309
text: desktop-speaker-slider.value.to-fixed(0) + "%";
310+
color: desktop-speaker-slider.enabled ? Theme.primary-text-color : Theme.disabled-color;
309311
}
310312
}
311313
}

0 commit comments

Comments
 (0)