|
@ -16,19 +16,25 @@ import { setTheme, setFont, setDynamicBackground } from '../../../redux/miscSlic |
|
|
import { |
|
|
import { |
|
|
songColumnPicker, |
|
|
songColumnPicker, |
|
|
songColumnList, |
|
|
songColumnList, |
|
|
|
|
|
songColumnListAuto, |
|
|
albumColumnPicker, |
|
|
albumColumnPicker, |
|
|
albumColumnList, |
|
|
albumColumnList, |
|
|
|
|
|
albumColumnListAuto, |
|
|
playlistColumnPicker, |
|
|
playlistColumnPicker, |
|
|
playlistColumnList, |
|
|
playlistColumnList, |
|
|
|
|
|
playlistColumnListAuto, |
|
|
artistColumnPicker, |
|
|
artistColumnPicker, |
|
|
artistColumnList, |
|
|
artistColumnList, |
|
|
|
|
|
artistColumnListAuto, |
|
|
genreColumnPicker, |
|
|
genreColumnPicker, |
|
|
genreColumnList, |
|
|
genreColumnList, |
|
|
|
|
|
genreColumnListAuto, |
|
|
} from '../ListViewColumns'; |
|
|
} from '../ListViewColumns'; |
|
|
|
|
|
|
|
|
const LookAndFeelConfig = () => { |
|
|
const LookAndFeelConfig = () => { |
|
|
const dispatch = useAppDispatch(); |
|
|
const dispatch = useAppDispatch(); |
|
|
const [currentLAFTab, setCurrentLAFTab] = useState('songList'); |
|
|
const [currentLAFTab, setCurrentLAFTab] = useState('songList'); |
|
|
|
|
|
const [resizableColumn, setResizableColumn] = useState(false); |
|
|
|
|
|
|
|
|
const songCols: any = settings.getSync('musicListColumns'); |
|
|
const songCols: any = settings.getSync('musicListColumns'); |
|
|
const albumCols: any = settings.getSync('albumListColumns'); |
|
|
const albumCols: any = settings.getSync('albumListColumns'); |
|
@ -87,6 +93,14 @@ const LookAndFeelConfig = () => { |
|
|
<br /> |
|
|
<br /> |
|
|
<ConfigPanel header="List-View" bordered> |
|
|
<ConfigPanel header="List-View" bordered> |
|
|
<p>Select the columns you want displayed on pages with a list-view.</p> |
|
|
<p>Select the columns you want displayed on pages with a list-view.</p> |
|
|
|
|
|
<StyledCheckbox |
|
|
|
|
|
defaultChecked={resizableColumn} |
|
|
|
|
|
onChange={() => { |
|
|
|
|
|
setResizableColumn(!resizableColumn); |
|
|
|
|
|
}} |
|
|
|
|
|
> |
|
|
|
|
|
Use resizable columns (check/uncheck this before selecting columns) |
|
|
|
|
|
</StyledCheckbox> |
|
|
<Nav |
|
|
<Nav |
|
|
style={{ paddingTop: '10px' }} |
|
|
style={{ paddingTop: '10px' }} |
|
|
activeKey={currentLAFTab} |
|
|
activeKey={currentLAFTab} |
|
@ -104,7 +118,7 @@ const LookAndFeelConfig = () => { |
|
|
title="Song List" |
|
|
title="Song List" |
|
|
defaultColumns={currentSongColumns} |
|
|
defaultColumns={currentSongColumns} |
|
|
columnPicker={songColumnPicker} |
|
|
columnPicker={songColumnPicker} |
|
|
columnList={songColumnList} |
|
|
columnList={resizableColumn ? songColumnList : songColumnListAuto} |
|
|
settingsConfig={{ |
|
|
settingsConfig={{ |
|
|
columnList: 'musicListColumns', |
|
|
columnList: 'musicListColumns', |
|
|
rowHeight: 'musicListRowHeight', |
|
|
rowHeight: 'musicListRowHeight', |
|
@ -118,7 +132,7 @@ const LookAndFeelConfig = () => { |
|
|
title="Album List" |
|
|
title="Album List" |
|
|
defaultColumns={currentAlbumColumns} |
|
|
defaultColumns={currentAlbumColumns} |
|
|
columnPicker={albumColumnPicker} |
|
|
columnPicker={albumColumnPicker} |
|
|
columnList={albumColumnList} |
|
|
columnList={resizableColumn ? albumColumnList : albumColumnListAuto} |
|
|
settingsConfig={{ |
|
|
settingsConfig={{ |
|
|
columnList: 'albumListColumns', |
|
|
columnList: 'albumListColumns', |
|
|
rowHeight: 'albumListRowHeight', |
|
|
rowHeight: 'albumListRowHeight', |
|
@ -132,7 +146,7 @@ const LookAndFeelConfig = () => { |
|
|
title="Playlist List" |
|
|
title="Playlist List" |
|
|
defaultColumns={currentPlaylistColumns} |
|
|
defaultColumns={currentPlaylistColumns} |
|
|
columnPicker={playlistColumnPicker} |
|
|
columnPicker={playlistColumnPicker} |
|
|
columnList={playlistColumnList} |
|
|
columnList={resizableColumn ? playlistColumnList : playlistColumnListAuto} |
|
|
settingsConfig={{ |
|
|
settingsConfig={{ |
|
|
columnList: 'playlistListColumns', |
|
|
columnList: 'playlistListColumns', |
|
|
rowHeight: 'playlistListRowHeight', |
|
|
rowHeight: 'playlistListRowHeight', |
|
@ -146,7 +160,7 @@ const LookAndFeelConfig = () => { |
|
|
title="Artist List" |
|
|
title="Artist List" |
|
|
defaultColumns={currentArtistColumns} |
|
|
defaultColumns={currentArtistColumns} |
|
|
columnPicker={artistColumnPicker} |
|
|
columnPicker={artistColumnPicker} |
|
|
columnList={artistColumnList} |
|
|
columnList={resizableColumn ? artistColumnList : artistColumnListAuto} |
|
|
settingsConfig={{ |
|
|
settingsConfig={{ |
|
|
columnList: 'artistListColumns', |
|
|
columnList: 'artistListColumns', |
|
|
rowHeight: 'artistListRowHeight', |
|
|
rowHeight: 'artistListRowHeight', |
|
@ -160,7 +174,7 @@ const LookAndFeelConfig = () => { |
|
|
title="Genre List" |
|
|
title="Genre List" |
|
|
defaultColumns={currentGenreColumns} |
|
|
defaultColumns={currentGenreColumns} |
|
|
columnPicker={genreColumnPicker} |
|
|
columnPicker={genreColumnPicker} |
|
|
columnList={genreColumnList} |
|
|
columnList={resizableColumn ? genreColumnList : genreColumnListAuto} |
|
|
settingsConfig={{ |
|
|
settingsConfig={{ |
|
|
columnList: 'genreListColumns', |
|
|
columnList: 'genreListColumns', |
|
|
rowHeight: 'genreListRowHeight', |
|
|
rowHeight: 'genreListRowHeight', |
|
@ -174,7 +188,7 @@ const LookAndFeelConfig = () => { |
|
|
title="Miniplayer List" |
|
|
title="Miniplayer List" |
|
|
defaultColumns={currentMiniColumns} |
|
|
defaultColumns={currentMiniColumns} |
|
|
columnPicker={songColumnPicker} |
|
|
columnPicker={songColumnPicker} |
|
|
columnList={songColumnList} |
|
|
columnList={resizableColumn ? songColumnList : songColumnListAuto} |
|
|
settingsConfig={{ |
|
|
settingsConfig={{ |
|
|
columnList: 'miniListColumns', |
|
|
columnList: 'miniListColumns', |
|
|
rowHeight: 'miniListRowHeight', |
|
|
rowHeight: 'miniListRowHeight', |
|
|