{"action":"created","issue":{"url":"https://api.github.com/repos/reduxframework/redux-framework/issues/2096","labels_url":"https://api.github.com/repos/reduxframework/redux-framework/issues/2096/labels{/name}","comments_url":"https://api.github.com/repos/reduxframework/redux-framework/issues/2096/comments","events_url":"https://api.github.com/repos/reduxframework/redux-framework/issues/2096/events","html_url":"https://github.com/reduxframework/redux-framework/pull/2096","id":59354526,"number":2096,"title":"Added: Linked for color field","user":{"login":"Ninos","id":1012403,"avatar_url":"https://avatars.githubusercontent.com/u/1012403?v=3","gravatar_id":"","url":"https://api.github.com/users/Ninos","html_url":"https://github.com/Ninos","followers_url":"https://api.github.com/users/Ninos/followers","following_url":"https://api.github.com/users/Ninos/following{/other_user}","gists_url":"https://api.github.com/users/Ninos/gists{/gist_id}","starred_url":"https://api.github.com/users/Ninos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ninos/subscriptions","organizations_url":"https://api.github.com/users/Ninos/orgs","repos_url":"https://api.github.com/users/Ninos/repos","events_url":"https://api.github.com/users/Ninos/events{/privacy}","received_events_url":"https://api.github.com/users/Ninos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-02-28T19:30:15Z","updated_at":"2015-04-28T08:50:07Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/reduxframework/redux-framework/pulls/2096","html_url":"https://github.com/reduxframework/redux-framework/pull/2096","diff_url":"https://github.com/reduxframework/redux-framework/pull/2096.diff","patch_url":"https://github.com/reduxframework/redux-framework/pull/2096.patch"},"body":"With this changes you can link a changed color of the defined color field to other fields. So for example if you change the primary_color field to ```#000000```, all linked fields will also be changed to ```#000000```. It also supports alpha values.\r\n\r\nAtm linked fields can just be defined for the color field. The supported linked fields are background, border, color, color_gradient, color_rgba, link_color & typography.\r\n\r\nHere's an example of code:\r\n```\r\narray(\r\n\t'id'\t\t\t\t\t=> 'color_primary',\r\n\t'type'\t\t\t\t\t=> 'color',\r\n\t'title'\t\t\t\t\t=> 'Primary Color',\r\n\t'default'\t\t\t\t=> '#ffffff',\r\n\t'linked'\t\t\t\t=> array(\r\n\t\t'color_secondary' => array(\r\n\t\t\t'color' => true  // color of \"color_secondary\" will be rewritten with the new color of \"color_primary\" (default)\r\n\t\t),\r\n\t\t'background_header' => array(\r\n\t\t\t'color' => true, // color of \"background_header\" will be rewritten with the new color of \"color_primary\" (default)\r\n\t\t\t'alpha' => '0.5' // alpha of \"background_header\" will be changed to 0.5 (if exists)\r\n\t\t),\r\n\t\t'background_footer' => array(\r\n\t\t\t'color' => true,\r\n\t\t\t'alpha' => true // alpha of \"background_header\" will not be changed (default)\r\n\t\t)\r\n\t)\r\n)\r\n```\r\n\r\nyou could also write:\r\n```\r\narray(\r\n\t'id'\t\t\t\t\t=> 'color_primary',\r\n\t'type'\t\t\t\t\t=> 'color',\r\n\t'title'\t\t\t\t\t=> 'Primary Color',\r\n\t'default'\t\t\t\t=> '#ffffff',\r\n\t'linked'\t\t\t\t=> array(\r\n\t\t'color_secondary' => array(),\r\n\t\t'background_header' => array(\r\n\t\t\t'alpha' => '0.5'\r\n\t\t),\r\n\t\t'background_footer' => array()\r\n\t)\r\n)\r\n```\r\n\r\nSo true is the default value and means, if available, take the value of the color field you linked from, otherwise use the already existing value of the linked field. If the value is defined, this one will always be used."},"comment":{"url":"https://api.github.com/repos/reduxframework/redux-framework/issues/comments/96980369","html_url":"https://github.com/reduxframework/redux-framework/pull/2096#issuecomment-96980369","issue_url":"https://api.github.com/repos/reduxframework/redux-framework/issues/2096","id":96980369,"user":{"login":"Ninos","id":1012403,"avatar_url":"https://avatars.githubusercontent.com/u/1012403?v=3","gravatar_id":"","url":"https://api.github.com/users/Ninos","html_url":"https://github.com/Ninos","followers_url":"https://api.github.com/users/Ninos/followers","following_url":"https://api.github.com/users/Ninos/following{/other_user}","gists_url":"https://api.github.com/users/Ninos/gists{/gist_id}","starred_url":"https://api.github.com/users/Ninos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ninos/subscriptions","organizations_url":"https://api.github.com/users/Ninos/orgs","repos_url":"https://api.github.com/users/Ninos/repos","events_url":"https://api.github.com/users/Ninos/events{/privacy}","received_events_url":"https://api.github.com/users/Ninos/received_events","type":"User","site_admin":false},"created_at":"2015-04-28T08:50:07Z","updated_at":"2015-04-28T08:50:07Z","body":"Ah ok :D"}}