Skip to content

StatusBarBandVerdict

What the row under the status bar’s content turned out to hold.

Verdict-as-data, like the compatibility and teardown checks: the reading and the throwing are separate, so a caller can ask what a frame looks like without having to catch an error to find out.

Import:

import type { StatusBarBandVerdict } from 'obsidian-integration-testing';

Signature:

export interface StatusBarBandVerdict

Properties

PropertyTypeDescription
backgroundColorStatusBarBandColorThe color the band would be filled with — read from the first scanned column of the sample row.
distinctColorCountnumberHow many distinct colors the scanned row holds. One is what an empty band looks like.
firstDifferentColornull | StatusBarBandColorThe color at StatusBarBandVerdict.firstDifferentColumnXInPixels, or null when the row is flat.
firstDifferentColumnXInPixelsnull | numberThe first scanned column that differs from StatusBarBandVerdict.backgroundColor, or null when the row is flat.
isClearbooleanWhether the row is one flat color, and so whether the band holds nothing but device chrome.
sampleRowYInPixelsnumberWhich row was read, as a distance from the top of the frame in pixels.

Links to this page: