Ticket #58835: tt1-darkmode.diff
File tt1-darkmode.diff, 1.5 KB (added by , 14 months ago) |
---|
-
src/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-custom-colors.php
23 23 add_action( 'wp_enqueue_scripts', array( $this, 'custom_color_variables' ) ); 24 24 25 25 // Enqueue color variables for editor. 26 add_action( 'enqueue_block_ editor_assets', array( $this, 'editor_custom_color_variables' ) );27 26 add_action( 'enqueue_block_assets', array( $this, 'editor_custom_color_variables' ) ); 27 28 28 // Add body-class if needed. 29 29 add_filter( 'body_class', array( $this, 'body_class' ) ); 30 30 } -
src/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-dark-mode.php
20 20 public function __construct() { 21 21 22 22 // Enqueue assets for the block-editor. 23 add_action( 'enqueue_block_ editor_assets', array( $this, 'editor_custom_color_variables' ) );23 add_action( 'enqueue_block_assets', array( $this, 'editor_custom_color_variables' ) ); 24 24 25 25 // Add styles for dark-mode. 26 26 add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ) );