{"id":2709,"date":"2023-04-18T07:22:37","date_gmt":"2023-04-17T23:22:37","guid":{"rendered":"https:\/\/www.csslayer.info\/wordpress\/?p=2709"},"modified":"2023-04-18T07:22:37","modified_gmt":"2023-04-17T23:22:37","slug":"switch-fcitx-theme-based-on-system-color","status":"publish","type":"post","link":"https:\/\/www.csslayer.info\/wordpress\/fcitx-dev\/switch-fcitx-theme-based-on-system-color\/","title":{"rendered":"Switch fcitx theme based on system color"},"content":{"rendered":"\n<p>With the next version fcitx will be able to switch to an alternative dark theme when system dark\/light theme changes.<\/p>\n\n\n\n<p>The feature relies on xdg desktop portal implementation that supports this value.<\/p>\n\n\n\n<p>Hopefully accent-color in xdg portal can be merged soon so we could also support that.<\/p>\n\n\n\n<p>Demo:<\/p>\n\n\n\n<figure class=\"wp-block-video\"><video height=\"720\" style=\"aspect-ratio: 1280 \/ 720;\" width=\"1280\" controls src=\"https:\/\/www.csslayer.info\/wordpress\/wp-content\/uploads\/2023\/04\/2023-04-17-16-04-05.mp4\"><\/video><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>With the next version fcitx will be able to switch to an alternative dark theme when system dark\/light theme changes. The feature relies on xdg desktop portal implementation that supports this value. Hopefully accent-color in xdg portal can be merged &hellip; <a href=\"https:\/\/www.csslayer.info\/wordpress\/fcitx-dev\/switch-fcitx-theme-based-on-system-color\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[44],"tags":[12,248,208],"class_list":["post-2709","post","type-post","status-publish","format-standard","hentry","category-fcitx-dev","tag-fcitx","tag-fcitx5","tag-linux"],"_links":{"self":[{"href":"https:\/\/www.csslayer.info\/wordpress\/wp-json\/wp\/v2\/posts\/2709","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.csslayer.info\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.csslayer.info\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.csslayer.info\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.csslayer.info\/wordpress\/wp-json\/wp\/v2\/comments?post=2709"}],"version-history":[{"count":1,"href":"https:\/\/www.csslayer.info\/wordpress\/wp-json\/wp\/v2\/posts\/2709\/revisions"}],"predecessor-version":[{"id":2711,"href":"https:\/\/www.csslayer.info\/wordpress\/wp-json\/wp\/v2\/posts\/2709\/revisions\/2711"}],"wp:attachment":[{"href":"https:\/\/www.csslayer.info\/wordpress\/wp-json\/wp\/v2\/media?parent=2709"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.csslayer.info\/wordpress\/wp-json\/wp\/v2\/categories?post=2709"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.csslayer.info\/wordpress\/wp-json\/wp\/v2\/tags?post=2709"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}