Merge remote-tracking branch 'upstream/next' into rc-next-regressions

# Conflicts:
#	crates/ui-contract/src/layout/mod.rs
#	crates/ui-shell/tests/it/shell/title_bar.rs
This commit is contained in:
aiongg committed 2026-11-24 13:35:21 +00:00
commit f6290898c4
211 files changed
+2939 -423

No files matched your search

+28 -2
View File
@@ -548,8 +548,12 @@ const MAX_XATTR_TOTAL_BYTES: usize = 64 * 1024 * 1024;
/// binding, quarantine, resource forks) to the stage. The attributes are as untrusted as the
/// bytes, so the reads are bounded; one that cannot be read or written whole, or passes a bound,
/// refuses the save rather than dropping the user's metadata unnoticed. Only a volume without
/// extended attributes (`ENOTSUP`) is skipped. `com.apple.provenance` belongs to macOS, which
/// gives the new file its own. Compression bookkeeping stays hidden (no `XATTR_SHOWCOMPRESSION`).
/// extended attributes (`ENOTSUP`) is skipped. So is a file whose data the user may not read when
/// its attribute names can't be listed either, as with mode 0200: its attributes are dropped, as
/// before attributes were kept, since the user can't read them (or its bytes) at all. One whose
/// data is denied but whose names can be listed (an ACL that denies reading) refuses the save.
/// `com.apple.provenance` belongs to macOS, which gives the new file its own. Compression
/// bookkeeping stays hidden (no `XATTR_SHOWCOMPRESSION`).
#[cfg(target_os = "macos")]
fn copy_xattrs(target: &Path, stage: &File) -> io::Result<()> {
use rustix::fs::{Mode, OFlags, XattrFlags, fgetxattr, fgetxattr_query, flistxattr, fsetxattr, open};
@@ -560,6 +564,7 @@ fn copy_xattrs(target: &Path, stage: &File) -> io::Result<()> {
let source = match open(target, OFlags::RDONLY | OFlags::CLOEXEC | OFlags::NOFOLLOW | OFlags::NONBLOCK, Mode::empty()) {
Ok(fd) => File::from(fd),
Err(Errno::NOENT | Errno::LOOP) => return Ok(()),
Err(Errno::ACCESS) => return unreadable_has_no_attributes(target),
Err(e) => return Err(e.into()),
};
if !source.metadata()?.is_file() {
@@ -595,6 +600,27 @@ fn copy_xattrs(target: &Path, stage: &File) -> io::Result<()> {
Ok(())
}
/// For a target whose data can't be opened for reading: `Ok` when the user can list no extended
/// attribute names on it (none, only `com.apple.provenance`, none supported, or listing is denied too,
/// as for mode 0200, whose attributes are then dropped); otherwise refuse the save, as the attributes
/// can't be copied without opening the file. The names are read without following a link, by path.
#[cfg(target_os = "macos")]
fn unreadable_has_no_attributes(target: &Path) -> io::Result<()> {
use rustix::fs::llistxattr;
use rustix::io::Errno;
let mut names = vec![0u8; MAX_XATTR_NAMES_BYTES];
match llistxattr(target, names.as_mut_slice()) {
Ok(0) | Err(Errno::NOTSUP | Errno::ACCESS | Errno::NOENT) => Ok(()),
Ok(len) if names.get(..len).is_some_and(|names| names.split(|b| *b == 0).all(|name| name.is_empty() || name == b"com.apple.provenance")) => {
Ok(())
}
Ok(_) | Err(Errno::RANGE) => {
Err(io::Error::new(io::ErrorKind::PermissionDenied, "the file can't be read, so its extended attributes can't be copied"))
}
Err(e) => Err(e.into()),
}
}
/// Read one attribute value of `size` bytes (already within the bounds) with `read`, then ask
/// its size again with `query_size`. A read that does not fill `size`, or a size that changed,
/// is refused: a growing resource fork returns the prefix that fits instead of an error.
+46
View File
@@ -99,3 +99,49 @@ fn private_staging_preserves_existing_modes_after_callback() -> io::Result<()> {
assert_no_temp(&d.0);
Ok(())
}
/// Extended attribute names on `path`, read by path.
#[cfg(target_os = "macos")]
fn xattr_names(path: &Path) -> Vec<Vec<u8>> {
let mut names = vec![0u8; 64 * 1024];
let len = rustix::fs::listxattr(path, names.as_mut_slice()).unwrap_or(0);
names.truncate(len);
names.split(|b| *b == 0).filter(|n| !n.is_empty()).map(<[u8]>::to_vec).collect()
}
/// A write-only file (mode 0200) saves: macOS lets its owner neither read its data nor list its
/// attributes, so its attributes are dropped, as before attributes were kept.
#[cfg(target_os = "macos")]
#[test]
fn a_write_only_file_saves_and_drops_the_attributes_it_cannot_read() -> io::Result<()> {
use std::os::unix::fs::PermissionsExt;
let d = TempDir::new("write_only_xattrs");
let p = d.0.join("doc.craft");
std::fs::write(&p, ORIGINAL)?;
rustix::fs::setxattr(&p, "com.craft.t", b"tag", rustix::fs::XattrFlags::empty())?;
std::fs::set_permissions(&p, std::fs::Permissions::from_mode(0o200))?;
atomic_write(&p, b"new")?;
std::fs::set_permissions(&p, std::fs::Permissions::from_mode(0o600))?;
assert_eq!(std::fs::read(&p)?, b"new");
assert!(!xattr_names(&p).iter().any(|n| n == b"com.craft.t"), "the unreadable attribute is dropped");
Ok(())
}
/// A file whose data an ACL denies but whose attribute names can be listed is not replaced: its
/// attributes can't be copied without its data, and the save refuses rather than drop them.
#[cfg(target_os = "macos")]
#[test]
fn an_unreadable_file_with_listable_attributes_is_not_replaced() -> io::Result<()> {
let d = TempDir::new("acl_denied_xattrs");
let p = d.0.join("doc.craft");
std::fs::write(&p, ORIGINAL)?;
rustix::fs::setxattr(&p, "com.craft.t", b"tag", rustix::fs::XattrFlags::empty())?;
let denied = std::process::Command::new("/bin/chmod").arg("+a").arg("everyone deny read").arg(&p).status()?;
assert!(denied.success(), "the ACL is set");
let result = atomic_write(&p, b"new");
let _ = std::process::Command::new("/bin/chmod").arg("-N").arg(&p).status();
assert!(result.is_err(), "the save is refused");
assert_eq!(std::fs::read(&p)?, ORIGINAL, "the original is unchanged");
assert!(xattr_names(&p).iter().any(|n| n == b"com.craft.t"), "and keeps its attribute");
Ok(())
}
+2 -2
View File
@@ -64,8 +64,8 @@ pub use hud::{ColorHud, ColorHudOutput};
pub use info::{InfoColor, InfoMeasure, InfoPanel, InfoReadings, InfoWords};
pub use lut_picker::{LutChoice, LutPicker, LutPickerOutput, LutWords};
pub use paint_chip::{
FillKind, GradientPreview, ImagePreview, Paint, PaintChip, PaintChipOutput, PaintEditor, PaintLink, PaintLinkKind, PaintList, PaintListEvent,
PaintListOptions, PaintListOutput, PaintRow, PaintWords,
FillKind, GradientPreview, ImagePreview, Paint, PaintChip, PaintChipOutput, PaintChipSize, PaintEditor, PaintLink, PaintLinkKind, PaintList,
PaintListEvent, PaintListOptions, PaintListOutput, PaintRow, PaintWords,
};
pub use pair::{DropAccepts, PairWell, SwatchPair, SwatchPairOutput, Well};
pub use palette::{SwatchPalette, SwatchPaletteOutput};
+104 -15
View File
@@ -14,12 +14,13 @@ use craft_behavior::{Axis, EditEvent, EditEvents, Metrics, PartKey};
use craft_cms::convert::CmykConverter;
use craft_keymap::Mods;
use craft_theme::Srgba;
use craft_ui::buttons::Button;
use craft_ui::buttons::{Button, PopupMark};
use craft_ui::choice::{ChoiceWords, RING_SHARE, Segmented, Swatch, SwatchStyle, paint_ring};
use craft_ui::contract::{
Access, Activation, Bind, Common, Component, Cx, DisabledLook, Edit as _, EditResponse, Entry, Meta as _, Outcome, Overlay, OverlayUi,
Overlays as _, Pages, PaintUi, PartsCx, Pointer as _, PopupKind, Props as _, Remember as _, Role, Show as _, ShowContainer as _, WordSetCx as _,
};
use craft_ui::controls::disclosure::DisclosureGlyph;
use craft_ui::layout_components::Row;
use craft_ui::patterns::presets::{DefaultOpen, PresetBrowser, PresetEvent, PresetRowMenu, PresetState};
use craft_ui::primitives::textures::CachedTexture;
@@ -39,8 +40,10 @@ pub(crate) mod stories;
pub use paint_list::{PaintLink, PaintLinkKind, PaintList, PaintListEvent, PaintListOptions, PaintListOutput, PaintRow};
/// The chip is this many control heights wide.
/// A regular chip is this many control heights wide.
const CHIP_WIDTH_IN_HEIGHTS: f32 = 1.5;
/// A swatch chip's side is a rail button's over this, so three to a row fill a one-column rail's cell.
const SWATCHES_PER_RAIL_BUTTON: f32 = 3.0;
/// The most tiles a pattern chip draws; a tile so small that more would fit is drawn as one stretched image.
const MAX_TILES: f32 = 4096.0;
/// The No Color diagonal stops this many control heights short of the chip's edges.
@@ -202,6 +205,21 @@ impl<T> PaintEditor<'_, T> {
}
}
/// How large a [`PaintChip`] is; every size paints the same well.
#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Hash)]
#[non_exhaustive]
pub enum PaintChipSize {
/// A control high and 1.5 times as wide: a panel's or an options bar's chip.
#[default]
Regular,
/// A square well of `size.icon.md` in a slot a control high and `space.gap.item` wider than the well: a chip among
/// a bar's buttons, as a contextual task bar's Fill and Stroke.
Compact,
/// A square a third of `size.rail.button` on a side that opens no popover: a tool rail's Color, Gradient and None,
/// three to a row.
Swatch,
}
/// The style of a paint chip.
#[derive(Clone, Debug, PartialEq, ComponentStyle)]
#[non_exhaustive]
@@ -210,8 +228,10 @@ pub struct PaintChipStyle {
metrics: Metrics,
#[style(focus)]
focus: FocusLook,
/// The chip's height.
height: f32,
/// The well's size.
well: egui::Vec2,
/// The chip's size before the room of its mark: the well's, or for a compact chip the slot round it.
slot: egui::Vec2,
/// The chip's corners.
radius: egui::CornerRadius,
/// The ring on the chip's outline.
@@ -222,6 +242,12 @@ pub struct PaintChipStyle {
none_mark: StyleColor,
/// The swatch look the ring is painted with.
swatch: SwatchStyle,
/// The side of the dropdown arrow a chip with [`PopupMark::Menu`] shows after its well.
arrow: f32,
/// The room the arrow takes after the well: the arrow with a tight gap on each side.
arrow_room: f32,
/// The arrow's colour.
arrow_color: StyleColor,
}
impl PaintChipStyle {
@@ -231,7 +257,7 @@ impl PaintChipStyle {
none_fill: self.none_fill,
none_mark: self.none_mark,
edge: self.edge,
height: self.height,
height: self.well.y,
radius: self.radius,
ring,
swatch: self.swatch.clone(),
@@ -352,7 +378,8 @@ pub(crate) fn paint_well(ui: &mut PaintUi<'_>, cx: &Cx<'_, impl craft_ui::contra
}
}
/// A paint chip, a control high and 1.5 times as wide.
/// A paint chip as large as its [`chip_size`](Self::chip_size) (by default a control high and 1.5 times as wide), with the
/// room of its [`popup_mark`](Self::popup_mark) after it.
///
/// - Look: a solid paint fills the chip over the checkerboard (alpha shows); a gradient is a
/// start-to-end ramp through its stops; No Color is the field fill with a `status.bad` diagonal
@@ -400,6 +427,15 @@ pub struct PaintChip<'a> {
/// The chip draws as a stroke ring through the one ring painter.
#[prop]
ring: bool,
/// The mark after the well that tells the chip opens more than it shows: [`PopupMark::Menu`] draws the shared
/// dropdown arrow, inside the chip's hit area. None by default; a chip has no tool group mark, so
/// [`PopupMark::ToolGroup`] draws none.
#[prop]
popup_mark: PopupMark,
/// How large the chip is; [`PaintChipSize::Regular`] by default.
#[style_key]
#[prop]
chip_size: PaintChipSize,
/// The request of the Color Picker… button, for this pass.
pick_color: Option<ColorRequest>,
/// The modifiers of this pass's click on a chip without a popover.
@@ -426,6 +462,8 @@ impl<'a> PaintChip<'a> {
full_picker: false,
popover: true,
ring: false,
popup_mark: PopupMark::None,
chip_size: PaintChipSize::Regular,
pick_color: None,
clicked: None,
}
@@ -485,6 +523,24 @@ impl<'a> PaintChip<'a> {
self.gradient.as_ref().map(|(default, _)| default)
}
/// The room after the well the mark takes: the arrow's for [`PopupMark::Menu`], none otherwise.
fn mark_room(&self, style: &PaintChipStyle) -> f32 {
if self.popup_mark == PopupMark::Menu { style.arrow_room } else { 0.0 }
}
/// Whether a click opens the popover: on unless [`popover`](Self::popover) is off or the chip is a swatch.
fn opens(&self) -> bool {
self.popover && self.chip_size != PaintChipSize::Swatch
}
/// The well and the mark's room in the chip's `rect`: a compact chip's well is centred in its slot, every other
/// fills it.
fn layout(&self, rect: Rect, style: &PaintChipStyle, rtl: bool) -> (Rect, Rect) {
let (slot, mark) = split_mark(rect, self.mark_room(style), rtl);
let well = if self.chip_size == PaintChipSize::Compact { Rect::from_center_size(slot.center(), style.well) } else { slot };
(well, mark)
}
/// The paint a switch to `kind` sets.
fn switched(&self, kind: FillKind, solid: Srgba) -> Paint {
match kind {
@@ -497,6 +553,13 @@ impl<'a> PaintChip<'a> {
}
}
/// `rect` split into the well and the mark's room, `room` wide at its end edge.
fn split_mark(rect: Rect, room: f32, rtl: bool) -> (Rect, Rect) {
let at = if rtl { rect.left() + room } else { rect.right() - room };
let (left, right) = (Rect::from_min_max(rect.min, pos2(at, rect.max.y)), Rect::from_min_max(pos2(at, rect.min.y), rect.max));
if rtl { (right, left) } else { (left, right) }
}
fn kind_label(words: &PaintWords, kind: FillKind) -> Label {
match kind {
FillKind::None => words.no_color.clone(),
@@ -526,18 +589,37 @@ impl Component for PaintChip<'_> {
type Style = PaintChipStyle;
type Output = PaintChipOutput;
fn style(cx: &StyleCx<'_>, _: PaintChipStyleKey) -> PaintChipStyle {
fn style(cx: &StyleCx<'_>, key: PaintChipStyleKey) -> PaintChipStyle {
let colors = &cx.tokens.color;
let metrics = craft_ui::choice::SwatchMetrics::of(cx);
let arrow = cx.tokens.size.icon.glyph_sm;
let (well, slot) = match key.chip_size {
PaintChipSize::Regular => {
let well = vec2(metrics.side * CHIP_WIDTH_IN_HEIGHTS, metrics.side);
(well, well)
}
PaintChipSize::Compact => {
let well = egui::Vec2::splat(cx.tokens.size.icon.md);
(well, vec2(well.x + cx.tokens.space.gap.item, metrics.side))
}
PaintChipSize::Swatch => {
let well = egui::Vec2::splat(cx.tokens.size.rail.button / SWATCHES_PER_RAIL_BUTTON);
(well, well)
}
};
PaintChipStyle {
metrics: Metrics::new(),
focus: cx.focus_look(),
height: metrics.side,
well,
slot,
radius: metrics.radius,
edge: cx.color(colors.line.control_edge),
none_fill: cx.color(colors.surface.sunken),
none_mark: cx.color(colors.status.bad.solid),
swatch: Swatch::style(cx, Swatch::new(Label::default(), Srgba::BLACK).style_key()),
arrow,
arrow_room: arrow + 2.0 * cx.tokens.space.gap.tight,
arrow_color: cx.color(colors.text.muted),
}
}
@@ -546,12 +628,13 @@ impl Component for PaintChip<'_> {
}
fn measure(&mut self, cx: &craft_ui::contract::MeasureCx<'_, Self>) -> egui::Vec2 {
vec2(cx.style.height * CHIP_WIDTH_IN_HEIGHTS, cx.style.height)
cx.style.slot + vec2(self.mark_room(cx.style), 0.0)
}
fn parts(&mut self, rect: egui::Rect, cx: &mut PartsCx<'_, Self>) {
let part = cx.part(WELL, rect);
if self.popover {
let (well, _) = self.layout(rect, cx.style, cx.flow.is_rtl());
let part = cx.part(WELL, well);
if self.opens() {
let _ = part.toggles("picker");
}
}
@@ -567,7 +650,7 @@ impl Component for PaintChip<'_> {
cx.memory::<LastSolid>().0 = Some(color);
}
let activation = cx.activation().filter(|_: &Activation| cx.resolved.enabled);
if !self.popover {
if !self.opens() {
self.clicked = activation.map(|activation| activation.mods);
return;
}
@@ -583,7 +666,7 @@ impl Component for PaintChip<'_> {
}
fn overlay(&mut self, ui: &mut OverlayUi<'_>, cx: &mut Cx<'_, Self>) {
if !self.popover {
if !self.opens() {
return;
}
let popup = cx.popup("picker");
@@ -694,17 +777,23 @@ impl Component for PaintChip<'_> {
Some(paint) => access.value(value_text(&words, paint)),
None => access.value(cx.words::<ChoiceWords>().swatch_mixed.as_str()),
};
if self.popover {
if self.opens() {
access.has_popup(PopupKind::Dialog);
}
}
fn paint(&mut self, ui: &mut PaintUi<'_>, cx: &Cx<'_, Self>) {
let (well, mark) = self.layout(cx.rect, cx.style, cx.flow.is_rtl());
if self.popup_mark == PopupMark::Menu {
let mut arrow = DisclosureGlyph::dropdown_of(cx.env.get());
arrow.color = Some(cx.style.arrow_color);
ui.draw().icon(Rect::from_center_size(mark.center(), vec2(cx.style.arrow, cx.style.arrow)), &arrow);
}
let Some(paint) = cx.value().cloned() else {
ui.face(WELL, Swatch::new(cx.resolved.label.to_owned(), Mixed::<Srgba>::Mixed));
return;
};
paint_well(ui, cx, cx.rect, &paint, &cx.style.well_look(self.ring));
paint_well(ui, cx, well, &paint, &cx.style.well_look(self.ring));
}
fn finish(self, cx: Cx<'_, Self>) -> PaintChipOutput {
+52 -2
View File
@@ -1,12 +1,13 @@
//! Stories of the paint chip and the paint list.
use super::{GradientPreview, ImagePreview, Paint, PaintChip, PaintLink, PaintLinkKind, PaintList, PaintListOptions, PaintRow};
use super::{GradientPreview, ImagePreview, Paint, PaintChip, PaintChipSize, PaintLink, PaintLinkKind, PaintList, PaintListOptions, PaintRow};
use craft_behavior::Mixed;
use craft_theme::Srgba;
use craft_ui::buttons::PopupMark;
use craft_ui::contract::Role;
use craft_ui::contract::{Bind, Props as _, Show as _, ShowContainer as _, Validity};
use craft_ui::display::{Shade, Text};
use craft_ui::layout_components::Stack;
use craft_ui::layout_components::{Row, Stack};
use craft_ui::patterns::presets::PresetState;
use craft_ui::primitives::FacePaint;
use craft_ui::runtime::env::Message;
@@ -89,6 +90,55 @@ fn paint_chip_ring(ui: &mut Ui, data: &mut StoryData) -> StoryOutput {
first.unwrap_or_default()
}
/// Fill and Stroke chips with the menu mark: the dropdown arrow after the well, inside the chip.
#[story(PaintChip<'static>, covers = [], drive = Drive::Never)]
fn paint_chip_menu_mark(ui: &mut Ui, data: &mut StoryData) -> StoryOutput {
let paints = data.value("paints", [Paint::Solid(BLUE), Paint::Solid(Srgba::rgb(0.1, 0.1, 0.1))]);
let mut first = None;
Stack::new().show(ui, |ui, _| {
for (index, (label, paint)) in ["Fill", "Stroke"].into_iter().zip(paints.iter_mut()).enumerate() {
let shown = PaintChip::new(label, Bind::bound(paint), BLUE).ring(index == 1).popup_mark(PopupMark::Menu).show(ui);
if index == 0 {
first = Some(StoryOutput::from(shown));
}
}
});
first.unwrap_or_default()
}
/// Compact Fill and Stroke chips in a row, as among a task bar's buttons: a small well in a control-high slot.
#[story(PaintChip<'static>, covers = [], drive = Drive::Never)]
fn paint_chip_compact(ui: &mut Ui, data: &mut StoryData) -> StoryOutput {
let paints = data.value("paints", [Paint::Solid(BLUE), Paint::Solid(Srgba::rgb(0.1, 0.1, 0.1))]);
let mut first = None;
Row::new().show(ui, |ui, _| {
for (index, (label, paint)) in ["Fill", "Stroke"].into_iter().zip(paints.iter_mut()).enumerate() {
let shown = PaintChip::new(label, Bind::bound(paint), BLUE).ring(index == 1).chip_size(PaintChipSize::Compact).popover(false).show(ui);
if index == 0 {
first = Some(StoryOutput::from(shown));
}
}
});
first.unwrap_or_default()
}
/// A tool rail's Color, Gradient and None as swatch chips, three in a row; a click opens nothing.
#[story(PaintChip<'static>, covers = [], drive = Drive::Never)]
fn paint_chip_swatches(ui: &mut Ui, data: &mut StoryData) -> StoryOutput {
let gradient = GradientPreview::new(vec![(0.0, Srgba::rgb(1.0, 1.0, 1.0)), (1.0, Srgba::rgb(0.0, 0.0, 0.0))]);
let paints = data.value("paints", [Paint::Solid(BLUE), Paint::Gradient(gradient), Paint::None]);
let mut first = None;
Row::new().show(ui, |ui, _| {
for (index, (label, paint)) in ["Color", "Gradient", "None"].into_iter().zip(paints.iter_mut()).enumerate() {
let shown = PaintChip::new(label, Bind::bound(paint), BLUE).chip_size(PaintChipSize::Swatch).show(ui);
if index == 0 {
first = Some(StoryOutput::from(shown));
}
}
});
first.unwrap_or_default()
}
/// A gradient whose face is the host's painter: one coloured rect over the checker.
#[story(PaintChip<'static>, covers = [], drive = Drive::Never)]
fn paint_chip_gradient_face(ui: &mut Ui, data: &mut StoryData) -> StoryOutput {
+1
View File
@@ -3,6 +3,7 @@
pub(crate) mod area_gamut;
pub(crate) mod color_parts;
pub(crate) mod gradient_bar;
pub(crate) mod paint_chip;
pub(crate) mod paint_list;
pub(crate) mod pair;
pub(crate) mod panels;
+40
View File
@@ -0,0 +1,40 @@
//! `PaintChip`'s menu mark, the arrow after the well that is part of the chip, and its swatch size.
use craft_color_ui::ui::{Paint, PaintChip, PaintChipSize};
use craft_theme::Srgba;
use craft_ui::buttons::PopupMark;
use craft_ui::contract::{Bind, Role, Show as _};
use craft_ui::testing::{Fixture, trial};
use std::cell::Cell;
use std::rc::Rc;
/// A click on the menu mark, past the well, opens the chip's popover, as a click on the well does.
#[trial]
fn a_click_on_the_menu_mark_opens_the_popover() {
let mut fixture = Fixture::new(|ui| {
let mut paint = Paint::Solid(Srgba::rgb(0.2, 0.4, 0.8));
let _ = PaintChip::new("Fill", Bind::bound(&mut paint), Srgba::BLACK).popup_mark(PopupMark::Menu).show(ui);
});
fixture.settle();
let chip = fixture.by_role(Role::COLOR_WELL).first().copied().expect("the chip is a colour well");
// The mark's room is at the chip's end edge, past the well.
fixture.click_at(egui::pos2(chip.rect.right() - 2.0, chip.rect.center().y)).idle(4);
assert!(!fixture.by_role(Role::RADIO_BUTTON).is_empty(), "the popover's kind switch shows");
}
/// A swatch chip opens no popover: a click reports its modifiers for the host's command.
#[trial]
fn a_click_on_a_swatch_chip_opens_nothing_and_reports_the_click() {
let clicked = Rc::new(Cell::new(false));
let seen = Rc::clone(&clicked);
let mut fixture = Fixture::new(move |ui| {
let mut paint = Paint::None;
let out = PaintChip::new("None", Bind::bound(&mut paint), Srgba::BLACK).chip_size(PaintChipSize::Swatch).show(ui);
seen.set(seen.get() || out.clicked.is_some());
});
fixture.settle();
let chip = fixture.by_role(Role::COLOR_WELL).first().copied().expect("the chip is a colour well");
fixture.click(&chip).idle(4);
assert!(clicked.get(), "the click is reported");
assert!(fixture.by_role(Role::RADIO_BUTTON).is_empty(), "no popover opens");
}
+1 -1
View File
@@ -87,7 +87,7 @@ impl<'a> ArtboardProperties<'a> {
});
// A glyph-labelled number field; the pairs share a row, as W and H in the shape panel.
let field = |ui: &mut Ui, glyph: &Label, name: &Label, value: f64, range: &RangeInclusive<f64>| {
let side = SideLabel::new().kind(LabelKind::Glyph(GlyphLabel::text(glyph.clone()))).scrub(true);
let side = SideLabel::new().kind(LabelKind::Glyph(GlyphLabel::caption(glyph.clone()))).scrub(true);
Field::new(name.clone())
.side(side)
.show(ui, |ui, _| {
+1 -1
View File
@@ -527,7 +527,7 @@ impl<'p, 'a> Cells<'p, 'a> {
/// The side label of a cell shown by a short glyph (W, H) instead of its caption, which scrubs it.
pub(super) fn glyph_side(glyph: &Label) -> SideLabel {
SideLabel::new().kind(LabelKind::Glyph(GlyphLabel::text(glyph.clone()))).scrub(true)
SideLabel::new().kind(LabelKind::Glyph(GlyphLabel::caption(glyph.clone()))).scrub(true)
}
/// The change a Sides value makes: a whole number of sides in range.
@@ -503,7 +503,7 @@ impl Cells<'_> {
/// inside the field.
fn side_and_name(&self, field: TransformField, form: Form) -> (SideLabel, Label) {
let words = &self.words;
let beside = |glyph: &Label| SideLabel::new().kind(LabelKind::Glyph(GlyphLabel::text(glyph.clone())));
let beside = |glyph: &Label| SideLabel::new().kind(LabelKind::Glyph(GlyphLabel::caption(glyph.clone())));
let (side, name) = match field {
TransformField::X => (beside(&words.x_glyph), &words.x_name),
TransformField::Y => (beside(&words.y_glyph), &words.y_name),
+1 -2
View File
@@ -389,11 +389,10 @@ fn read_system() -> Region {
Region::from_tag(&sys_locale::get_locale().unwrap_or_default())
}
#[cfg(test)]
#[cfg(all(test, unix, not(any(target_vendor = "apple", target_os = "android"))))]
mod tests {
use super::*;
#[cfg(all(unix, not(any(target_vendor = "apple", target_os = "android"))))]
#[test]
fn each_locale_category_decides_its_own_part_and_lc_all_all_of_them() {
let env =
+3
View File
@@ -1,5 +1,6 @@
//! The in-window bar's own rules over the model.
use craft_host::target::Os;
use craft_menu::{Item, Menu, MenuBar, MenuBarUi, Node};
use craft_ui::contract::Tracked;
use craft_ui::testing::{Fixture, trial};
@@ -18,6 +19,8 @@ fn a_disabled_submenu_is_greyed_and_does_not_open() {
let mut fixture = Fixture::new(move |ui| {
MenuBarUi::new(&bar).show(ui);
});
// The in-window bar's rules; a Mac's menus are in the system bar.
fixture.os(Os::Linux);
fixture.settle();
let Some(file) = fixture.by_label("File") else { panic!("the bar shows File") };
fixture.click(&file).settle();
+2 -1
View File
@@ -1544,7 +1544,8 @@ impl KeyMoves {
/// Page Up and Down a screen less a key line (a row when not continuous, and with Cmd), Home and End the first
/// and last page, Up and Down a key line (not continuous, a turn once the row is at its edge that way), Left and
/// Right a key line sideways while the current page or spread has more to show that way, else a turn of a page or
/// spread; Cmd with Left or Right turns at once. Home and End with Shift or Cmd, and Page Up, Page Down, Up and
/// spread; Cmd with Left or Right turns at once. Home and End with Shift, or with Cmd off macOS (which gives Cmd
/// with them no move), and Page Up, Page Down, Up and
/// Down with Shift and Cmd together, go to the first or last page; Alt, and Shift alone with the other keys,
/// leave them to nothing.
fn of(
+5 -6
View File
@@ -1007,12 +1007,11 @@ fn shift_and_command_with_the_page_keys_and_arrows_go_to_the_ends() {
);
focus_canvas(&mut fixture);
let keys = [(Key::PageDown, both, 4), (Key::PageUp, both, 0), (Key::ArrowDown, both, 4), (Key::ArrowUp, both, 0)];
let ends = [
(Key::End, Modifiers::SHIFT, 4),
(Key::Home, Modifiers::SHIFT, 0),
(Key::End, Modifiers::COMMAND, 4),
(Key::Home, Modifiers::COMMAND, 0),
];
// Off macOS Ctrl+End and Ctrl+Home go to the ends too; macOS gives Cmd with Home and End no move.
let mut ends = vec![(Key::End, Modifiers::SHIFT, 4), (Key::Home, Modifiers::SHIFT, 0)];
if !cfg!(target_os = "macos") {
ends.extend([(Key::End, Modifiers::COMMAND, 4), (Key::Home, Modifiers::COMMAND, 0)]);
}
for (key, mods, want) in keys.into_iter().chain(ends) {
fixture.key(key, mods);
fixture.idle(2);
+5 -5
View File
@@ -2,23 +2,23 @@
//!
//! On Windows a file created in a folder inherits the folder's access list, and folders such as
//! a new folder at a drive root, `C:\Users\Public` or `C:\ProgramData` let every signed-in user
//! read what is created in them. [`restrict_to_owner`] replaces the whole list with the current
//! user and SYSTEM only, makes that user the owner, and checks the result. [`create_private_dir`]
//! read what is created in them. `restrict_to_owner` replaces the whole list with the current
//! user and SYSTEM only, makes that user the owner, and checks the result. `create_private_dir`
//! does the same for a new folder whose list the files created in it inherit, so a file can be
//! private from the moment it exists. [`read_with_sddl`] reads a file and its security descriptor
//! private from the moment it exists. `read_with_sddl` reads a file and its security descriptor
//! through one handle. [`foreign_access`] reads the descriptor in SDDL form, which names accounts
//! by SID and so reads the same in every Windows language, and says why another user could have
//! written or could read the file. They run the tools Windows ships rather than calling the
//! security API directly, which would need `unsafe`.
/// Why the file whose security descriptor is `sddl` (`O:` owner and `D:` access list, in SDDL or
/// as [`read_with_sddl`] writes it) can't be trusted as user `me`'s own: it is owned by someone else, it has no
/// as `read_with_sddl` writes it) can't be trusted as user `me`'s own: it is owned by someone else, it has no
/// access list (everyone may use it), or it lets an account other than `me` or SYSTEM use it.
/// Accounts are compared by SID; `None` means it is `me`'s alone.
///
/// Stricter than OpenSSH's rule for private keys, which also lets Administrators in: an entry for
/// the Administrators group would let another administrator read the token without taking the
/// file over. [`restrict_to_owner`] never grants it, so the app's own file always passes; a file
/// file over. `restrict_to_owner` never grants it, so the app's own file always passes; a file
/// that inherited it from a user's folder is refused.
pub fn foreign_access(sddl: &str, me: &str) -> Option<String> {
let me = me.trim();
+80 -59
View File
@@ -376,6 +376,11 @@ impl EditorMode {
}
}
/// `text` on one line: each line ending (`\r\n`, `\r` or `\n`) becomes one space.
fn one_line(text: &str) -> String {
text.replace("\r\n", " ").replace(['\r', '\n'], " ")
}
/// What the editor did this pass.
#[derive(Debug)]
#[non_exhaustive]
@@ -572,6 +577,80 @@ fn show_i_beam(cx: &mut Cx<'_, TextEditor<'_>>, phase: &PressPhase, vertical: bo
}
}
/// Applies one pass's editor steps to `edits` in order: typing, the marked text, moves, deletes, selections, the edit
/// commands and the commands keys fired. Returns the text a Copy or Cut put on the clipboard, and whether a command
/// asked for the character panel.
fn apply_steps(
edits: &mut Edits<'_>,
steps: Vec<EditorStep<TextEditorCommand>>,
mode: EditorMode,
masked: bool,
pasted: Option<&str>,
fallback: Rect,
) -> (Option<String>, bool) {
let mut copied: Option<String> = None;
let mut ending: Option<Range<usize>> = None;
let mut character_panel = false;
for step in steps {
// A commit or cancel ends the session; an input method's committed text still lands.
if (edits.done.commit || edits.done.cancel) && ending.is_none() {
break;
}
let input = match step {
EditorStep::Input(input) => input,
EditorStep::Command(command, _) => {
edits.command(command, &mut character_panel);
continue;
}
_ => continue,
};
if let Some(range) = ending.take() {
if let EditorInput::Text(text) = &input {
edits.commit_marked(range, text);
continue;
}
edits.drop_marked(range);
}
match input {
EditorInput::Preedit { text, cursor, .. } => {
let active = cursor.map(|bytes| byte_range_to_chars(&text, bytes));
ending = edits.preedit(&text, active);
}
EditorInput::ImeCommit => ending = edits.session.preedit.take(),
EditorInput::Text(text) => edits.done.changed |= edits.insert_typed(&text),
EditorInput::Newline { .. } if edits.session.preedit.is_none() && mode.multiline() => {
edits.done.changed |= edits.insert_text("\n", EditKind::Typed);
}
EditorInput::Tab if mode.takes_tab() => edits.done.changed |= edits.insert_text("\t", EditKind::Typed),
EditorInput::Move(step, mods) => edits.motion(step, mods),
EditorInput::Delete { forward, by, .. } => edits.done.changed |= edits.delete(forward, by),
EditorInput::DeleteSurrounding { before, after, unit, .. } => edits.done.changed |= edits.delete_around(before, after, unit),
EditorInput::Select { anchor, focus, .. } => {
let lines = lines_of(&mut *edits.host, fallback);
edits.end_composition();
edits.selection = TextSelection { anchor: char_at(&lines, anchor), caret: char_at(&lines, focus) };
}
EditorInput::Edit(EditCommand::SelectAll) => edits.select_all(),
EditorInput::Edit(EditCommand::Copy) if !masked => copied = edits.selected_text(),
EditorInput::Edit(EditCommand::Cut) if !masked => {
copied = edits.selected_text();
edits.done.changed |= edits.delete_selection();
}
EditorInput::Edit(EditCommand::Paste) => {
if let Some(text) = pasted {
let text = if mode.multiline() { text.to_string() } else { one_line(text) };
edits.done.changed |= edits.insert_text(&text, EditKind::Pasted);
}
}
_ => {}
}
}
if let Some(range) = ending {
edits.drop_marked(range);
}
(copied, character_panel)
}
/// The clipboard's text when the pass's input asks to paste and the clipboard has it ready.
fn pasted_text(cx: &mut Cx<'_, TextEditor<'_>>, steps: &[EditorStep<TextEditorCommand>]) -> Option<std::sync::Arc<str>> {
if !steps.iter().any(|step| matches!(step, EditorStep::Input(EditorInput::Edit(EditCommand::Paste)))) {
@@ -636,7 +715,6 @@ impl Component for TextEditor<'_> {
let now = cx.now();
let pasted = pasted_text(cx, &steps);
let (mode, masked) = (self.mode, self.masked);
let mut copied: Option<String> = None;
let mut session = std::mem::take(cx.memory::<Session>());
let mut edits = Edits {
host: &mut *self.host,
@@ -652,64 +730,7 @@ impl Component for TextEditor<'_> {
edits.reconcile();
let fallback = space.doc_rect(cx.rect);
let mut ending: Option<Range<usize>> = None;
let mut character_panel = false;
for step in steps {
// A commit or cancel ends the session; an input method's committed text still lands.
if (edits.done.commit || edits.done.cancel) && ending.is_none() {
break;
}
let input = match step {
EditorStep::Input(input) => input,
EditorStep::Command(command, _) => {
edits.command(command, &mut character_panel);
continue;
}
_ => continue,
};
if let Some(range) = ending.take() {
if let EditorInput::Text(text) = &input {
edits.commit_marked(range, text);
continue;
}
edits.drop_marked(range);
}
match input {
EditorInput::Preedit { text, cursor, .. } => {
let active = cursor.map(|bytes| byte_range_to_chars(&text, bytes));
ending = edits.preedit(&text, active);
}
EditorInput::ImeCommit => ending = edits.session.preedit.take(),
EditorInput::Text(text) => edits.done.changed |= edits.insert_typed(&text),
EditorInput::Newline { .. } if edits.session.preedit.is_none() && mode.multiline() => {
edits.done.changed |= edits.insert_text("\n", EditKind::Typed);
}
EditorInput::Tab if mode.takes_tab() => edits.done.changed |= edits.insert_text("\t", EditKind::Typed),
EditorInput::Move(step, mods) => edits.motion(step, mods),
EditorInput::Delete { forward, by, .. } => edits.done.changed |= edits.delete(forward, by),
EditorInput::DeleteSurrounding { before, after, unit, .. } => edits.done.changed |= edits.delete_around(before, after, unit),
EditorInput::Select { anchor, focus, .. } => {
let lines = lines_of(&mut *edits.host, fallback);
edits.end_composition();
edits.selection = TextSelection { anchor: char_at(&lines, anchor), caret: char_at(&lines, focus) };
}
EditorInput::Edit(EditCommand::SelectAll) => edits.select_all(),
EditorInput::Edit(EditCommand::Copy) if !masked => copied = edits.selected_text(),
EditorInput::Edit(EditCommand::Cut) if !masked => {
copied = edits.selected_text();
edits.done.changed |= edits.delete_selection();
}
EditorInput::Edit(EditCommand::Paste) => {
if let Some(text) = &pasted {
edits.done.changed |= edits.insert_text(text, EditKind::Pasted);
}
}
_ => {}
}
}
if let Some(range) = ending {
edits.drop_marked(range);
}
let (copied, character_panel) = apply_steps(&mut edits, steps, mode, masked, pasted.as_deref(), fallback);
// A press is the pass's last pointer event (H0), so the pass's editor input came before it.
match press.phase {
PressPhase::Down { start, .. } if start.button == craft_behavior::PointerButton::Primary => {
+1
View File
@@ -19,6 +19,7 @@
"options_narrow": 36.0,
"status": 30.0,
"tab": 30.0,
"tab_large": 38.0,
"title": 38.0
},
"checker": 4.0,
+1
View File
@@ -19,6 +19,7 @@
"options_narrow": 28.0,
"status": 24.0,
"tab": 26.0,
"tab_large": 32.0,
"title": 32.0
},
"checker": 4.0,
+4 -2
View File
@@ -153,8 +153,10 @@ fn size_lines(out: &mut Lines, size: &SizeTokens) {
let RailSizes { width, button } = rail;
out.line("size.rail.width", len(*width));
out.line("size.rail.button", len(*button));
let BarSizes { title, tab, status, options, options_narrow } = bar;
for (k, v) in [("title", title), ("tab", tab), ("status", status), ("options", options), ("options_narrow", options_narrow)] {
let BarSizes { title, tab, tab_large, status, options, options_narrow } = bar;
for (k, v) in
[("title", title), ("tab", tab), ("tab_large", tab_large), ("status", status), ("options", options), ("options_narrow", options_narrow)]
{
out.line(&format!("size.bar.{k}"), len(*v));
}
out.line("size.panel_header", len(*panel_header));
+1
View File
@@ -102,6 +102,7 @@ pub(crate) fn leaves(b: &mut Preset) -> Vec<Leaf<'_>> {
"base.size.rail.button" Num 16.0..=64.0 => s.rail.button;
"base.size.bar.title" Num 16.0..=80.0 => s.bar.title;
"base.size.bar.tab" Num 16.0..=64.0 => s.bar.tab;
"base.size.bar.tab_large" Num 16.0..=80.0 => s.bar.tab_large;
"base.size.bar.status" Num 16.0..=64.0 => s.bar.status;
"base.size.bar.options" Num 16.0..=80.0 => s.bar.options;
"base.size.bar.options_narrow" Num 16.0..=80.0 => s.bar.options_narrow;
+2
View File
@@ -225,6 +225,8 @@ pub struct BarSizes {
pub title: f32,
/// Tab strip.
pub tab: f32,
/// Tab strip in its large form: large document tabs.
pub tab_large: f32,
/// Status bar.
pub status: f32,
/// Tool options bar.
@@ -152,6 +152,7 @@ size.rail.width = 50
size.rail.button = 36
size.bar.title = 38
size.bar.tab = 30
size.bar.tab_large = 38
size.bar.status = 30
size.bar.options = 42
size.bar.options_narrow = 36
@@ -152,6 +152,7 @@ size.rail.width = 40
size.rail.button = 30
size.bar.title = 32
size.bar.tab = 26
size.bar.tab_large = 32
size.bar.status = 24
size.bar.options = 36
size.bar.options_narrow = 28
@@ -152,6 +152,7 @@ size.rail.width = 50
size.rail.button = 36
size.bar.title = 38
size.bar.tab = 30
size.bar.tab_large = 38
size.bar.status = 30
size.bar.options = 42
size.bar.options_narrow = 36
@@ -152,6 +152,7 @@ size.rail.width = 40
size.rail.button = 30
size.bar.title = 32
size.bar.tab = 26
size.bar.tab_large = 32
size.bar.status = 24
size.bar.options = 36
size.bar.options_narrow = 28
@@ -152,6 +152,7 @@ size.rail.width = 50
size.rail.button = 36
size.bar.title = 38
size.bar.tab = 30
size.bar.tab_large = 38
size.bar.status = 30
size.bar.options = 42
size.bar.options_narrow = 36
@@ -152,6 +152,7 @@ size.rail.width = 40
size.rail.button = 30
size.bar.title = 32
size.bar.tab = 26
size.bar.tab_large = 32
size.bar.status = 24
size.bar.options = 36
size.bar.options_narrow = 28
@@ -152,6 +152,7 @@ size.rail.width = 50
size.rail.button = 36
size.bar.title = 38
size.bar.tab = 30
size.bar.tab_large = 38
size.bar.status = 30
size.bar.options = 42
size.bar.options_narrow = 36
@@ -152,6 +152,7 @@ size.rail.width = 40
size.rail.button = 30
size.bar.title = 32
size.bar.tab = 26
size.bar.tab_large = 32
size.bar.status = 24
size.bar.options = 36
size.bar.options_narrow = 28
@@ -152,6 +152,7 @@ size.rail.width = 50
size.rail.button = 36
size.bar.title = 38
size.bar.tab = 30
size.bar.tab_large = 38
size.bar.status = 30
size.bar.options = 42
size.bar.options_narrow = 36
@@ -152,6 +152,7 @@ size.rail.width = 40
size.rail.button = 30
size.bar.title = 32
size.bar.tab = 26
size.bar.tab_large = 32
size.bar.status = 24
size.bar.options = 36
size.bar.options_narrow = 28
@@ -152,6 +152,7 @@ size.rail.width = 50
size.rail.button = 36
size.bar.title = 38
size.bar.tab = 30
size.bar.tab_large = 38
size.bar.status = 30
size.bar.options = 42
size.bar.options_narrow = 36
@@ -152,6 +152,7 @@ size.rail.width = 40
size.rail.button = 30
size.bar.title = 32
size.bar.tab = 26
size.bar.tab_large = 32
size.bar.status = 24
size.bar.options = 36
size.bar.options_narrow = 28
@@ -152,6 +152,7 @@ size.rail.width = 50
size.rail.button = 36
size.bar.title = 38
size.bar.tab = 30
size.bar.tab_large = 38
size.bar.status = 30
size.bar.options = 42
size.bar.options_narrow = 36
@@ -152,6 +152,7 @@ size.rail.width = 40
size.rail.button = 30
size.bar.title = 32
size.bar.tab = 26
size.bar.tab_large = 32
size.bar.status = 24
size.bar.options = 36
size.bar.options_narrow = 28
@@ -152,6 +152,7 @@ size.rail.width = 50
size.rail.button = 36
size.bar.title = 38
size.bar.tab = 30
size.bar.tab_large = 38
size.bar.status = 30
size.bar.options = 42
size.bar.options_narrow = 36
@@ -152,6 +152,7 @@ size.rail.width = 40
size.rail.button = 30
size.bar.title = 32
size.bar.tab = 26
size.bar.tab_large = 32
size.bar.status = 24
size.bar.options = 36
size.bar.options_narrow = 28
@@ -152,6 +152,7 @@ size.rail.width = 50
size.rail.button = 36
size.bar.title = 38
size.bar.tab = 30
size.bar.tab_large = 38
size.bar.status = 30
size.bar.options = 42
size.bar.options_narrow = 36
@@ -152,6 +152,7 @@ size.rail.width = 40
size.rail.button = 30
size.bar.title = 32
size.bar.tab = 26
size.bar.tab_large = 32
size.bar.status = 24
size.bar.options = 36
size.bar.options_narrow = 28
@@ -152,6 +152,7 @@ size.rail.width = 50
size.rail.button = 36
size.bar.title = 38
size.bar.tab = 30
size.bar.tab_large = 38
size.bar.status = 30
size.bar.options = 42
size.bar.options_narrow = 36
@@ -152,6 +152,7 @@ size.rail.width = 40
size.rail.button = 30
size.bar.title = 32
size.bar.tab = 26
size.bar.tab_large = 32
size.bar.status = 24
size.bar.options = 36
size.bar.options_narrow = 28
@@ -152,6 +152,7 @@ size.rail.width = 50
size.rail.button = 36
size.bar.title = 38
size.bar.tab = 30
size.bar.tab_large = 38
size.bar.status = 30
size.bar.options = 42
size.bar.options_narrow = 36
@@ -152,6 +152,7 @@ size.rail.width = 40
size.rail.button = 30
size.bar.title = 32
size.bar.tab = 26
size.bar.tab_large = 32
size.bar.status = 24
size.bar.options = 36
size.bar.options_narrow = 28
@@ -152,6 +152,7 @@ size.rail.width = 50
size.rail.button = 36
size.bar.title = 38
size.bar.tab = 30
size.bar.tab_large = 38
size.bar.status = 30
size.bar.options = 42
size.bar.options_narrow = 36
@@ -152,6 +152,7 @@ size.rail.width = 40
size.rail.button = 30
size.bar.title = 32
size.bar.tab = 26
size.bar.tab_large = 32
size.bar.status = 24
size.bar.options = 36
size.bar.options_narrow = 28
@@ -152,6 +152,7 @@ size.rail.width = 50
size.rail.button = 36
size.bar.title = 38
size.bar.tab = 30
size.bar.tab_large = 38
size.bar.status = 30
size.bar.options = 42
size.bar.options_narrow = 36
@@ -152,6 +152,7 @@ size.rail.width = 40
size.rail.button = 30
size.bar.title = 32
size.bar.tab = 26
size.bar.tab_large = 32
size.bar.status = 24
size.bar.options = 36
size.bar.options_narrow = 28
@@ -152,6 +152,7 @@ size.rail.width = 50
size.rail.button = 36
size.bar.title = 38
size.bar.tab = 30
size.bar.tab_large = 38
size.bar.status = 30
size.bar.options = 42
size.bar.options_narrow = 36
@@ -152,6 +152,7 @@ size.rail.width = 40
size.rail.button = 30
size.bar.title = 32
size.bar.tab = 26
size.bar.tab_large = 32
size.bar.status = 24
size.bar.options = 36
size.bar.options_narrow = 28
@@ -152,6 +152,7 @@ size.rail.width = 50
size.rail.button = 36
size.bar.title = 38
size.bar.tab = 30
size.bar.tab_large = 38
size.bar.status = 30
size.bar.options = 42
size.bar.options_narrow = 36
@@ -152,6 +152,7 @@ size.rail.width = 40
size.rail.button = 30
size.bar.title = 32
size.bar.tab = 26
size.bar.tab_large = 32
size.bar.status = 24
size.bar.options = 36
size.bar.options_narrow = 28
@@ -152,6 +152,7 @@ size.rail.width = 50
size.rail.button = 36
size.bar.title = 38
size.bar.tab = 30
size.bar.tab_large = 38
size.bar.status = 30
size.bar.options = 42
size.bar.options_narrow = 36
@@ -152,6 +152,7 @@ size.rail.width = 40
size.rail.button = 30
size.bar.title = 32
size.bar.tab = 26
size.bar.tab_large = 32
size.bar.status = 24
size.bar.options = 36
size.bar.options_narrow = 28
@@ -152,6 +152,7 @@ size.rail.width = 50
size.rail.button = 36
size.bar.title = 38
size.bar.tab = 30
size.bar.tab_large = 38
size.bar.status = 30
size.bar.options = 42
size.bar.options_narrow = 36
@@ -152,6 +152,7 @@ size.rail.width = 40
size.rail.button = 30
size.bar.title = 32
size.bar.tab = 26
size.bar.tab_large = 32
size.bar.status = 24
size.bar.options = 36
size.bar.options_narrow = 28
@@ -152,6 +152,7 @@ size.rail.width = 50
size.rail.button = 36
size.bar.title = 38
size.bar.tab = 30
size.bar.tab_large = 38
size.bar.status = 30
size.bar.options = 42
size.bar.options_narrow = 36
@@ -152,6 +152,7 @@ size.rail.width = 40
size.rail.button = 30
size.bar.title = 32
size.bar.tab = 26
size.bar.tab_large = 32
size.bar.status = 24
size.bar.options = 36
size.bar.options_narrow = 28
@@ -152,6 +152,7 @@ size.rail.width = 50
size.rail.button = 36
size.bar.title = 38
size.bar.tab = 30
size.bar.tab_large = 38
size.bar.status = 30
size.bar.options = 42
size.bar.options_narrow = 36
@@ -152,6 +152,7 @@ size.rail.width = 40
size.rail.button = 30
size.bar.title = 32
size.bar.tab = 26
size.bar.tab_large = 32
size.bar.status = 24
size.bar.options = 36
size.bar.options_narrow = 28
@@ -152,6 +152,7 @@ size.rail.width = 50
size.rail.button = 36
size.bar.title = 38
size.bar.tab = 30
size.bar.tab_large = 38
size.bar.status = 30
size.bar.options = 42
size.bar.options_narrow = 36
@@ -152,6 +152,7 @@ size.rail.width = 50
size.rail.button = 36
size.bar.title = 38
size.bar.tab = 30
size.bar.tab_large = 38
size.bar.status = 30
size.bar.options = 42
size.bar.options_narrow = 36
@@ -152,6 +152,7 @@ size.rail.width = 40
size.rail.button = 30
size.bar.title = 32
size.bar.tab = 26
size.bar.tab_large = 32
size.bar.status = 24
size.bar.options = 36
size.bar.options_narrow = 28
@@ -152,6 +152,7 @@ size.rail.width = 50
size.rail.button = 36
size.bar.title = 38
size.bar.tab = 30
size.bar.tab_large = 38
size.bar.status = 30
size.bar.options = 42
size.bar.options_narrow = 36
@@ -152,6 +152,7 @@ size.rail.width = 40
size.rail.button = 30
size.bar.title = 32
size.bar.tab = 26
size.bar.tab_large = 32
size.bar.status = 24
size.bar.options = 36
size.bar.options_narrow = 28
@@ -152,6 +152,7 @@ size.rail.width = 50
size.rail.button = 36
size.bar.title = 38
size.bar.tab = 30
size.bar.tab_large = 38
size.bar.status = 30
size.bar.options = 42
size.bar.options_narrow = 36
@@ -152,6 +152,7 @@ size.rail.width = 40
size.rail.button = 30
size.bar.title = 32
size.bar.tab = 26
size.bar.tab_large = 32
size.bar.status = 24
size.bar.options = 36
size.bar.options_narrow = 28
@@ -152,6 +152,7 @@ size.rail.width = 50
size.rail.button = 36
size.bar.title = 38
size.bar.tab = 30
size.bar.tab_large = 38
size.bar.status = 30
size.bar.options = 42
size.bar.options_narrow = 36
@@ -152,6 +152,7 @@ size.rail.width = 40
size.rail.button = 30
size.bar.title = 32
size.bar.tab = 26
size.bar.tab_large = 32
size.bar.status = 24
size.bar.options = 36
size.bar.options_narrow = 28
@@ -152,6 +152,7 @@ size.rail.width = 50
size.rail.button = 36
size.bar.title = 38
size.bar.tab = 30
size.bar.tab_large = 38
size.bar.status = 30
size.bar.options = 42
size.bar.options_narrow = 36
@@ -152,6 +152,7 @@ size.rail.width = 40
size.rail.button = 30
size.bar.title = 32
size.bar.tab = 26
size.bar.tab_large = 32
size.bar.status = 24
size.bar.options = 36
size.bar.options_narrow = 28
@@ -152,6 +152,7 @@ size.rail.width = 50
size.rail.button = 36
size.bar.title = 38
size.bar.tab = 30
size.bar.tab_large = 38
size.bar.status = 30
size.bar.options = 42
size.bar.options_narrow = 36
@@ -152,6 +152,7 @@ size.rail.width = 40
size.rail.button = 30
size.bar.title = 32
size.bar.tab = 26
size.bar.tab_large = 32
size.bar.status = 24
size.bar.options = 36
size.bar.options_narrow = 28
@@ -152,6 +152,7 @@ size.rail.width = 50
size.rail.button = 36
size.bar.title = 38
size.bar.tab = 30
size.bar.tab_large = 38
size.bar.status = 30
size.bar.options = 42
size.bar.options_narrow = 36
@@ -152,6 +152,7 @@ size.rail.width = 40
size.rail.button = 30
size.bar.title = 32
size.bar.tab = 26
size.bar.tab_large = 32
size.bar.status = 24
size.bar.options = 36
size.bar.options_narrow = 28
@@ -152,6 +152,7 @@ size.rail.width = 50
size.rail.button = 36
size.bar.title = 38
size.bar.tab = 30
size.bar.tab_large = 38
size.bar.status = 30
size.bar.options = 42
size.bar.options_narrow = 36
@@ -152,6 +152,7 @@ size.rail.width = 40
size.rail.button = 30
size.bar.title = 32
size.bar.tab = 26
size.bar.tab_large = 32
size.bar.status = 24
size.bar.options = 36
size.bar.options_narrow = 28
@@ -152,6 +152,7 @@ size.rail.width = 50
size.rail.button = 36
size.bar.title = 38
size.bar.tab = 30
size.bar.tab_large = 38
size.bar.status = 30
size.bar.options = 42
size.bar.options_narrow = 36
@@ -152,6 +152,7 @@ size.rail.width = 40
size.rail.button = 30
size.bar.title = 32
size.bar.tab = 26
size.bar.tab_large = 32
size.bar.status = 24
size.bar.options = 36
size.bar.options_narrow = 28
@@ -152,6 +152,7 @@ size.rail.width = 50
size.rail.button = 36
size.bar.title = 38
size.bar.tab = 30
size.bar.tab_large = 38
size.bar.status = 30
size.bar.options = 42
size.bar.options_narrow = 36
@@ -152,6 +152,7 @@ size.rail.width = 40
size.rail.button = 30
size.bar.title = 32
size.bar.tab = 26
size.bar.tab_large = 32
size.bar.status = 24
size.bar.options = 36
size.bar.options_narrow = 28
@@ -152,6 +152,7 @@ size.rail.width = 50
size.rail.button = 36
size.bar.title = 38
size.bar.tab = 30
size.bar.tab_large = 38
size.bar.status = 30
size.bar.options = 42
size.bar.options_narrow = 36
@@ -152,6 +152,7 @@ size.rail.width = 40
size.rail.button = 30
size.bar.title = 32
size.bar.tab = 26
size.bar.tab_large = 32
size.bar.status = 24
size.bar.options = 36
size.bar.options_narrow = 28
@@ -152,6 +152,7 @@ size.rail.width = 50
size.rail.button = 36
size.bar.title = 38
size.bar.tab = 30
size.bar.tab_large = 38
size.bar.status = 30
size.bar.options = 42
size.bar.options_narrow = 36
@@ -152,6 +152,7 @@ size.rail.width = 40
size.rail.button = 30
size.bar.title = 32
size.bar.tab = 26
size.bar.tab_large = 32
size.bar.status = 24
size.bar.options = 36
size.bar.options_narrow = 28
@@ -152,6 +152,7 @@ size.rail.width = 50
size.rail.button = 36
size.bar.title = 38
size.bar.tab = 30
size.bar.tab_large = 38
size.bar.status = 30
size.bar.options = 42
size.bar.options_narrow = 36
@@ -152,6 +152,7 @@ size.rail.width = 40
size.rail.button = 30
size.bar.title = 32
size.bar.tab = 26
size.bar.tab_large = 32
size.bar.status = 24
size.bar.options = 36
size.bar.options_narrow = 28
@@ -152,6 +152,7 @@ size.rail.width = 50
size.rail.button = 36
size.bar.title = 38
size.bar.tab = 30
size.bar.tab_large = 38
size.bar.status = 30
size.bar.options = 42
size.bar.options_narrow = 36
@@ -152,6 +152,7 @@ size.rail.width = 40
size.rail.button = 30
size.bar.title = 32
size.bar.tab = 26
size.bar.tab_large = 32
size.bar.status = 24
size.bar.options = 36
size.bar.options_narrow = 28
@@ -152,6 +152,7 @@ size.rail.width = 50
size.rail.button = 36
size.bar.title = 38
size.bar.tab = 30
size.bar.tab_large = 38
size.bar.status = 30
size.bar.options = 42
size.bar.options_narrow = 36
@@ -152,6 +152,7 @@ size.rail.width = 40
size.rail.button = 30
size.bar.title = 32
size.bar.tab = 26
size.bar.tab_large = 32
size.bar.status = 24
size.bar.options = 36
size.bar.options_narrow = 28
@@ -68,7 +68,7 @@ state.pressed = #593330ff
state.selected = #4c2e2eff
state.selected_hover = #604040ff
state.disabled_fill = #181b22ff
state.text_selection = #f26b5346
state.text_selection = #f06a528c
state.match = #f0dc005a
state.match_current = #f0a3306e
state.stripe = #262b3540
@@ -152,6 +152,7 @@ size.rail.width = 50
size.rail.button = 36
size.bar.title = 38
size.bar.tab = 30
size.bar.tab_large = 38
size.bar.status = 30
size.bar.options = 42
size.bar.options_narrow = 36
@@ -68,7 +68,7 @@ state.pressed = #593330ff
state.selected = #4c2e2eff
state.selected_hover = #604040ff
state.disabled_fill = #181b22ff
state.text_selection = #f26b5346
state.text_selection = #f06a528c
state.match = #f0dc005a
state.match_current = #f0a3306e
state.stripe = #262b3540
@@ -152,6 +152,7 @@ size.rail.width = 40
size.rail.button = 30
size.bar.title = 32
size.bar.tab = 26
size.bar.tab_large = 32
size.bar.status = 24
size.bar.options = 36
size.bar.options_narrow = 28
@@ -68,7 +68,7 @@ state.pressed = #593330ff
state.selected = #4c2e2eff
state.selected_hover = #604040ff
state.disabled_fill = #181b22ff
state.text_selection = #f06a5246
state.text_selection = #f06a528c
state.match = #f0dc005a
state.match_current = #f0a3306e
state.stripe = #262b3540
@@ -152,6 +152,7 @@ size.rail.width = 50
size.rail.button = 36
size.bar.title = 38
size.bar.tab = 30
size.bar.tab_large = 38
size.bar.status = 30
size.bar.options = 42
size.bar.options_narrow = 36
@@ -68,7 +68,7 @@ state.pressed = #593330ff
state.selected = #4c2e2eff
state.selected_hover = #604040ff
state.disabled_fill = #181b22ff
state.text_selection = #f06a5246
state.text_selection = #f06a528c
state.match = #f0dc005a
state.match_current = #f0a3306e
state.stripe = #262b3540
@@ -152,6 +152,7 @@ size.rail.width = 40
size.rail.button = 30
size.bar.title = 32
size.bar.tab = 26
size.bar.tab_large = 32
size.bar.status = 24
size.bar.options = 36
size.bar.options_narrow = 28
@@ -68,7 +68,7 @@ state.pressed = #edcbc8ff
state.selected = #eed2d0ff
state.selected_hover = #e2c7c5ff
state.disabled_fill = #f3f5f8ff
state.text_selection = #af1c0046
state.text_selection = #d9472f8c
state.match = #8378005a
state.match_current = #f0a3306e
state.stripe = #e3e7ed40
@@ -152,6 +152,7 @@ size.rail.width = 50
size.rail.button = 36
size.bar.title = 38
size.bar.tab = 30
size.bar.tab_large = 38
size.bar.status = 30
size.bar.options = 42
size.bar.options_narrow = 36
@@ -68,7 +68,7 @@ state.pressed = #edcbc8ff
state.selected = #eed2d0ff
state.selected_hover = #e2c7c5ff
state.disabled_fill = #f3f5f8ff
state.text_selection = #af1c0046
state.text_selection = #d9472f8c
state.match = #8378005a
state.match_current = #f0a3306e
state.stripe = #e3e7ed40
@@ -152,6 +152,7 @@ size.rail.width = 40
size.rail.button = 30
size.bar.title = 32
size.bar.tab = 26
size.bar.tab_large = 32
size.bar.status = 24
size.bar.options = 36
size.bar.options_narrow = 28
@@ -68,7 +68,7 @@ state.pressed = #edcbc8ff
state.selected = #eed2d0ff
state.selected_hover = #e2c7c5ff
state.disabled_fill = #f3f5f8ff
state.text_selection = #d9472f46
state.text_selection = #d9472f8c
state.match = #f0dc005a
state.match_current = #f0a3306e
state.stripe = #e3e7ed40
@@ -152,6 +152,7 @@ size.rail.width = 50
size.rail.button = 36
size.bar.title = 38
size.bar.tab = 30
size.bar.tab_large = 38
size.bar.status = 30
size.bar.options = 42
size.bar.options_narrow = 36
@@ -68,7 +68,7 @@ state.pressed = #edcbc8ff
state.selected = #eed2d0ff
state.selected_hover = #e2c7c5ff
state.disabled_fill = #f3f5f8ff
state.text_selection = #d9472f46
state.text_selection = #d9472f8c
state.match = #f0dc005a
state.match_current = #f0a3306e
state.stripe = #e3e7ed40
@@ -152,6 +152,7 @@ size.rail.width = 40
size.rail.button = 30
size.bar.title = 32
size.bar.tab = 26
size.bar.tab_large = 32
size.bar.status = 24
size.bar.options = 36
size.bar.options_narrow = 28
@@ -68,7 +68,7 @@ state.pressed = #633f3eff
state.selected = #573b3dff
state.selected_hover = #6b4e50ff
state.disabled_fill = #272c36ff
state.text_selection = #fc755c46
state.text_selection = #f06a528c
state.match = #f0dc005a
state.match_current = #f0a3306e
state.stripe = #353c4940
@@ -152,6 +152,7 @@ size.rail.width = 50
size.rail.button = 36
size.bar.title = 38
size.bar.tab = 30
size.bar.tab_large = 38
size.bar.status = 30
size.bar.options = 42
size.bar.options_narrow = 36
@@ -68,7 +68,7 @@ state.pressed = #633f3eff
state.selected = #573b3dff
state.selected_hover = #6b4e50ff
state.disabled_fill = #272c36ff
state.text_selection = #fc755c46
state.text_selection = #f06a528c
state.match = #f0dc005a
state.match_current = #f0a3306e
state.stripe = #353c4940
@@ -152,6 +152,7 @@ size.rail.width = 40
size.rail.button = 30
size.bar.title = 32
size.bar.tab = 26
size.bar.tab_large = 32
size.bar.status = 24
size.bar.options = 36
size.bar.options_narrow = 28
Loaded 100 of 211 files, more files were not shown because too many files have changed in this diff. Show more