% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/glass-theme.R
\name{glass_resolved_preset}
\alias{glass_resolved_preset}
\title{Resolved light or dark appearance}
\usage{
glass_resolved_preset(input, default = c("light", "dark"))
}
\arguments{
\item{input}{The server \code{input} object.}

\item{default}{Fallback if the client has not reported yet (\code{"light"} or
\code{"dark"}).}
}
\value{
\code{"light"} or \code{"dark"}.
}
\description{
When the user picks \strong{Auto}, \code{input$preset} stays \code{"auto"} so checks like
\code{identical(input$preset, "dark")} stay FALSE and plots keep light ink on a
dark page. The client publishes the \emph{resolved} appearance as
\code{input$glass_resolved_preset} (\code{"light"} or \code{"dark"}).
}
