Sha256: 3c1d697e7ba7feec44b7754018adf75396e6bac6a4969d8af73f5a28e2febe9f

Contents?: true

Size: 1.33 KB

Versions: 2

Compression:

Stored size: 1.33 KB

Contents

# :stopdoc:
# Copyright (c) 2023 M.J.N. Corino, The Netherlands
#
# This software is released under the MIT license.
# :startdoc:


class Wx::SystemSettings

  # Return the name of the current system appearance if available or empty string otherwise.
  #
  # This is currently only implemented for macOS and returns a not necessarily user-readable
  # string such as "NSAppearanceNameAqua" there and an empty string under all the other platforms.
  # @return [String]
  def get_appearance_name; end
  alias :appearance_name :get_appearance_name

  # Return true if the current system there is explicitly recognized as being a dark theme or if
  # the default window background is dark.
  #
  # This method should be used to check whether custom colours more appropriate for the default (light)
  # or dark appearance should be used.
  # return [true,false]
  def is_appearance_dark; end
  alias :appearance_dark? :is_appearance_dark

  # Return true if the default window background is significantly darker than foreground.
  #
  # This is used by #is_appearance_dark if there is no platform-specific way to determine whether a dark
  # mode is being used and is generally not very useful to call directly.
  # return [true,false]
  def is_appearance_using_dark_background; end
  alias :appearance_using_dark_background? :is_appearance_using_dark_background

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
wxruby3-0.9.1 lib/wx/doc/system_settings.rb
wxruby3-0.9.0 lib/wx/doc/system_settings.rb