X resources
The outlook of program using Detroint engine can be finetuned by user by changing the settings in X resources file. X resources file is located at PREFIX/etc/PROGRAM_NAME.res, and is defined as follows:
! The fallback app-defaults for PROGRAM_NAME. ! ! This file will be consulted for visual settings if resources are not present ! in xrdb database, ~/.Xdefaults or ~/.Xresources. ! ! Settings for menus ! PROGRAM_NAME.menu.background: #fff7f9 PROGRAM_NAME.menu.foreground: #000000 PROGRAM_NAME.menu.bgSelected: #bec2d3 PROGRAM_NAME.menu.fgSelected: #fff7f9 PROGRAM_NAME.menu.fgDisabled: #787878 PROGRAM_NAME.menu.marginWidth: 1 PROGRAM_NAME.menu.marginHeight: 1 PROGRAM_NAME.menu.borderColor: #0a0a0a PROGRAM_NAME.menu.borderOpaque: 48 !PROGRAM_NAME.menu.itemFontFace: specify_path_to_font_file_here PROGRAM_NAME.menu.itemFontSize: 14 !PROGRAM_NAME.menu.titleFontFace: specify_path_to_font_file_here PROGRAM_NAME.menu.titleFontSize: 14 PROGRAM_NAME.menu.fontDPI: 0 ! ! Settings for widgets ! !PROGRAM_NAME.widget.profile: PROGRAM_NAME.widget.shadowColor: #101016 PROGRAM_NAME.widget.shadowOpaque: 192 PROGRAM_NAME.widget.sliderSlitColor: #161913 !PROGRAM_NAME.widget.fontFace: specify_path_to_font_file_here PROGRAM_NAME.widget.fontSize: 10 PROGRAM_NAME.widget.fontDPI: 0
Each setting should be self-explanatory. Basically menu and widget appearance can be modified by X resources file. PROGRAM_NAME is the name of the produced executable when program was compiled.
If widget.profile resource is set, widget files are looked from PREFIX/share/detroit/widgets/widget.profile-directory.
Copyright © 2024, Jani Salonen <salojan at goto10 piste co>. Piste is finnish word and means dot. All rights reserved.