Sha256: 0815c61e1f59dface2acf0fffe14547bc192e5fe5877fd5c6d9c4672dd550d53
Contents?: true
Size: 1.37 KB
Versions: 2
Compression:
Stored size: 1.37 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-x64-mingw-ucrt | lib/wx/doc/system_settings.rb |
wxruby3-0.9.0-x64-mingw-ucrt | lib/wx/doc/system_settings.rb |