+
    Ki[  c                   s    ^ RI H t ^ RIHtHtHt ^ RIHtHt ^ RI	H
t
 ^ RIHt ^ RIHt ^ RIHt ^ RIHt R	 t ! R
 R]4      t ! R R]4      tR# )i    )gettext)AnyDictOptional)GioGtk)settings)BaseConfigBox)WidgetGenerator)supports_status_iconread_settingc                  sj    \         P                  P                  4       p V P                  P                  # N)r   ZApplicationZget_defaultZstyle_managerZis_dark_by_default)Zapps    F/usr/lib/python3.14/site-packages/lutris/gui/config/preferences_box.py_is_system_dark_by_defaultr      s&    
//
%
%
'C///    c                   sn  a a ] tR t^t oRRR]! R4      RRR]! R4      /RR	R]! R
4      RRR]! R4      /RRR]! R4      RRRRR]! R4      /RRR]! R4      RRR]R]! R4      /RRR]! R4      RR/RRRRR]! R4      R]! R4      R3]! R4      R3]! R4      R 3.RRR]! R!4      /.tV 3R" ltR# tR$t	Vt
V ;t# )%InterfacePreferencesBoxoptionZhide_client_on_game_startlabelz'Minimize client when a game is launchedZtypeboolZhelpzTMinimize the Lutris window while playing a game; it will return when the game exits.Zhide_text_under_iconszHide text under iconszNRemoves the names from the Lutris window when in grid view, but not list view.Zhide_badges_on_iconsz'Hide badges on icons (Ctrl+p to toggle)Zacceleratorz
<Primary>pzMRemoves the platform and missing-game badges from icons in the Lutris window.Zshow_tray_iconzShow Tray IconZ	availablezAdds a Lutris icon to the tray, and prevents Lutris from exiting when the Lutris window is closed. You can still exit using the menu of the tray icon.Zdiscord_rpcz0Enable Discord Rich Presence for Available GamesZpreferred_themeZchoiceZThemeZchoiceszSystem DefaultdefaultZLightZlightZDarkZdarkz2Overrides Lutris's appearance to be light or dark.c                s   < \         SV `  4        Wn        V P                  V P	                  \        R 4      4      4       \        P                  ! R\        P                  P                  R7      p\        P                  ! RR7      pVP                  V4       V P                  VRR^ 4       \        V4      pVP                  P                  V P                  4       W@n        V P"                   F  pVP%                  V4       VP&                  '       g   K(  \        P(                  ! RR7      pVP+                  R4       VP-                  R4       VP                  VP&                  4       VP                  V4       K  	  VP/                  4        R# )zInterface optionsT)visibleZshadow_type)r   FN)super__init__acceleratorsZaddZget_section_label_r   ZFrameZ
ShadowTypeZ	ETCHED_INZListBox
pack_startPreferencesWidgetGeneratorZchangedZregisteron_setting_changedwidget_generatorsettings_optionsZgenerate_containerZoption_containerZ
ListBoxRowZset_selectableZset_activatableZupdate_widgets)selfr   ZframeZlistboxZgenr   Zlist_box_row	__class__s   &&     r   r   Z InterfacePreferencesBox.__init__D   s!   (''*=(>?@		$CNN4L4LM++d+		'ueQ/(1T445 #++F""6*###"~~d;++E2,,U3  !5!56L) , 	r   c                s2    \         P                  ! W4       R # r   )r   Zwrite_setting)r   
option_keyZ	new_value   &&&r   r   Z*InterfacePreferencesBox.on_setting_changed^   s    z5r   )r   r   )__name__
__module____qualname____firstlineno__r   r	   r   r   r   __static_attributes____classdictcell____classcell__r    __classdict__   @@r   r   r      sE     1Q@AFAlm		
 -Q./FAfg		
 ,Q@AF<Aef	
 &Q'(F-AF		
 mQIJF	
 'HQwZ#$i07W%6F#
 yAJK	
G/b46 6r   r   c                   sp   a a ] tR t^bt oRtV3R lR ltV3R lV 3R lltR	V3R lV 3R llltRtVt	V ;t
# )
r   zThis generator adjusts the spacing of the wrappers and packs widgets on the
right to get the interface preferences layout instead of the configuration one.c                s,   < V ^8  d   QhRS[ RS[RS[/# )   r!   r   return)strr   Zformatr+      "r   __annotate__'PreferencesWidgetGenerator.__annotate__f   s"     9 9c 9C 9C 9r   c                s    \        WR 7      # ))r   r
   )r   r!   r   r"   r   get_settingZ&PreferencesWidgetGenerator.get_settingf   s    J88r   c          	      sl   < V ^8  d   QhRS[ S[S[3,          RS[RS[RS[S[P
                  ,          /# )r-   r   valuer   r.   )r   r/   r   r   r   ZBoxr0   r1   r   r2   r3   i   s>      c3h  c V^_b_f_fVg r   c                s   < \         SV `  WV4      pV'       dE   VP                  ^4       VP                  ^4       VP	                  ^4       VP                  ^4       V# )i   )r   create_wrapper_boxZset_margin_topZset_margin_bottomZset_margin_rightZset_margin_left)r   r   r5   r   Zboxr    s   &&&& r   r6   Z-PreferencesWidgetGenerator.create_wrapper_boxi   sT    g(@r"!!"%  $#
r   c                s   < V ^8  d   QhRS[ S[S[3,          RS[S[P
                  ,          RS[RS[RS[S[P
                  ,          /# )r-   r   widgetno_labelexpandr.   )r   r/   r   r   r   ZWidgetr   r0   r1   r   r2   r3   r   sO      38n.6szz.BNRdh	#**	r   c                sH  < V'       d   \         SV `  WW4R 7      # \        P                  ! VR,          RRR7      pVP	                  ^ R4       V P
                  '       dD   V'       d<   V P
                  P                  VRR^ 4       V P
                  P                  W$V^ 4       V# ))r8   r9   r   T)r   Zwrapg      ?)r   build_option_widgetr   ZLabelZset_alignmentZwrapperr   Zpack_end)r   r   r7   r8   r9   r   r    s   &&&&& r   r:   Z.PreferencesWidgetGenerator.build_option_widgetr   s     7.v.``		&/4dCAs#<<<FLL##E4q9LL!!&&!<r    )FF)r#   r$   r%   r&   Z__doc__r4   r6   r:   r'   r(   r)   r*   r,   r   r   r   b   s.     W9 9   r   r   N)r    r   Ztypingr   r   r   Zgi.repositoryr   r   Zlutrisr   Z!lutris.gui.config.base_config_boxr   Z"lutris.gui.config.widget_generatorr   Zlutris.gui.widgets.status_iconr	   Zlutris.settingsr   r   r   r   r;   r   r   <module>r<      s@      & & "  ; > ? (0
M6m M6` r   