mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-26 09:08:11 +00:00
Merge pull request #3562 from aiongg/unreached-read-only-contract
CI: unreached-rs skips craft-pdf's read-only contract; compact is a derived prop
This commit is contained in:
@@ -122,10 +122,12 @@ jobs:
|
||||
cache-version: &cache-version v2-${{ needs.platforms.outputs.profile }}
|
||||
cold-build: ${{ github.event.schedule == '17 0 * * *' || github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/next' }}
|
||||
lint-cache: false
|
||||
# The vendored crates are on the workspace `exclude` list, so unreached-rs has no module tree for them.
|
||||
# The vendored crates are on the workspace `exclude` list and craft-pdf's read-only contract is a
|
||||
# workspace of its own (pdf.yml tests it), so unreached-rs has no module tree for them.
|
||||
unreached-rs-allow: |
|
||||
**/fixtures/**
|
||||
vendor/**
|
||||
crates/pdf/read-only-contract/**
|
||||
timeout-minutes: &timeout 120
|
||||
# Every leg runs its tests with nextest, and its doctests with cargo test (.config/nextest.toml).
|
||||
tools: &tools cargo-nextest@0.9.150
|
||||
|
||||
@@ -734,6 +734,7 @@ pub struct FontPicker<'a> {
|
||||
host_picked: Option<String>,
|
||||
/// Whether the font picker uses compact bar sizing (`size.length.field.sm` / `size.length.short`).
|
||||
#[style_key]
|
||||
#[prop]
|
||||
compact: bool,
|
||||
}
|
||||
|
||||
@@ -787,13 +788,6 @@ impl<'a> FontPicker<'a> {
|
||||
.enabled(catalog.is_ready())
|
||||
}
|
||||
|
||||
/// Sets whether the font picker uses compact bar sizing (`size.length.field.sm` / `size.length.short`).
|
||||
#[must_use]
|
||||
pub fn compact(mut self, compact: bool) -> Self {
|
||||
self.compact = compact;
|
||||
self
|
||||
}
|
||||
|
||||
/// The adornments at the end of the field: the missing mark when `missing`, then the chevron. The mark is a glyph
|
||||
/// whose part carries the note.
|
||||
fn trailing(name: Label, missing: bool, arrow: DropdownArrow) -> Vec<Adornment> {
|
||||
|
||||
@@ -100,6 +100,7 @@ pub struct ComboBox<'a> {
|
||||
preview: Preview<String>,
|
||||
/// Whether the combo box sizes to its options alone, as in a toolbar or ribbon.
|
||||
#[style_key]
|
||||
#[prop]
|
||||
compact: bool,
|
||||
}
|
||||
|
||||
@@ -120,13 +121,6 @@ impl<'a> ComboBox<'a> {
|
||||
.label(label)
|
||||
}
|
||||
|
||||
/// Sets whether the combo box sizes to its options alone, as in a toolbar or ribbon.
|
||||
#[must_use]
|
||||
pub fn compact(mut self, compact: bool) -> Self {
|
||||
self.compact = compact;
|
||||
self
|
||||
}
|
||||
|
||||
/// Previews `text`, led by the pointer or by the keys. The pass reports it only when the previewed text changes,
|
||||
/// so a second pass of a frame, which sees the lead its first pass stored, reports nothing.
|
||||
fn show_preview(&mut self, cx: &mut Cx<'_, Self>, text: String, by_pointer: bool) {
|
||||
|
||||
Reference in New Issue
Block a user