django-autocomplete-light
django-autocomplete-light copied to clipboard
Dark mode support
Django 3.2 introduces dark mode in its admin website. DAL looks very poorly and need to take the same (or similar) styles as django autocomplete.
Agreed, anyone wants to give it a go in a PR?
Need this please!!!!
This would be a very welcome addition.
I second this... as a hotfix, you can still create a <YOURAPP>/templates/admin/base_site.html and put the following lines in:
{% block extrahead %}
<style>
.select2-selection__choice{
color: #000;
}
.select2-results__option {
color:#000;
}
</style>
{% endblock %}
Tried to fix this dark mode compatibility issue in the PR #1280, it just needed to be reviewed.
It still doesn't work for me. What am I missing? Django==4.0.3 django-autocomplete-light==3.9.4
admin add page

forms.py
class AdressForm(forms.ModelForm):
class Meta:
model = Address
fields = ('__all__')
widgets = {
'city': autocomplete.ModelSelect2(url='city-autocomplete',
forward=['country', 'region'],
attrs = {'data-placeholder': '...',
}),
'region': autocomplete.ModelSelect2(url='region-autocomplete',
forward=['country'],
attrs = {'data-placeholder': '...',
})
}
Still no dark mode support in 3.9.4 :(
django==3.2.13
I opened #1308 to add support for dark mode.