Show Channel: grayscale and colorized of one channel replace each other
Alt+1 after Alt+Shift+1 shows the red channel in grayscale instead of going back to RGB (and the other way round). The same key again is still RGB. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
dfff9ba2dc
commit
498dbc0c71
@@ -408,6 +408,14 @@ fn fast_previews_and_show_channel_modes_have_default_keys() {
|
||||
assert_eq!((s.state.viewer.channel.id(), s.state.viewer.colorized), ("green", false));
|
||||
s.execute("view.channel.green", json!({})).unwrap();
|
||||
assert_eq!(s.state.viewer.channel.id(), "rgb");
|
||||
// Grayscale and colorized of one channel replace each other; the same again is RGB.
|
||||
s.execute("view.channel.redColorized", json!({})).unwrap();
|
||||
s.execute("view.channel.red", json!({})).unwrap();
|
||||
assert_eq!((s.state.viewer.channel.id(), s.state.viewer.colorized), ("red", false));
|
||||
s.execute("view.channel.redColorized", json!({})).unwrap();
|
||||
assert_eq!((s.state.viewer.channel.id(), s.state.viewer.colorized), ("red", true));
|
||||
s.execute("view.channel.redColorized", json!({})).unwrap();
|
||||
assert_eq!(s.state.viewer.channel.id(), "rgb");
|
||||
}
|
||||
|
||||
/// Default keys for commands and menu entries that had none.
|
||||
|
||||
Reference in New Issue
Block a user